beautypg.com

Map descriptor example 3 – handling bits – FieldServer FS-8700-66 User Manual

Page 13

background image

FS-8700-66 GE-SNP Driver Manual

Page 13 of 28

FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web: www.fieldserver.com

Tel: (408) 262 2299 Fax: (408) 262 2269 Toll Free: (888) 509 1970 email: [email protected]

5.3.6 Map Descriptor Example 3 – Handling BITs

This example writes data from the FieldServer Data Array called DA_AO to the PLC identified as NODE1. The write is repeated every 5 seconds. Ten word values are
written to the PLC’s %AQ Data Table starting at location 20.

Map_Descriptor_Name , Data_Array_Name , Data_Array_Offset , Function , Node_Name , Address , Length , Scan_Interval , Data_Type , Format
Read_DI

,DA_T

, 100

, Rdbc

, PLC-1

, 8

, 2

, 2.0

, %T

, Bit

The format parameter tells the driver to override the default
data type and read Bits specifically. In this case the Bits are
stored in the Data Array in two separate elements at DA_T[100]
and DA_T[101]