FieldServer Map Descriptor Example 1 Simple Read, 12 of 29FS-8700-66GE-SNP Manual

Page 12

Page 12 of 29FS-8700-66_GE-SNP Manual

Page 12 of 29

4.4.4.Map Descriptor Example 1 – Simple Read

This example provides a Map Descriptor to read 10 bytes of Discrete Input states, starting at the very first Discrete Input. The data is stored in a Data Array called DA_DI and the first input is stored at location 100 in the array (101st element). The PLC is polled every 2 seconds

Map_Descriptor_Name,

Data_Array_Name,

Data_Array_Offset,

Function,

Node_Name

Address

Length

Scan_Interval,

Data_Type

Read D1,

DA_D1,

100,

RDBC,

PLC-1,

1,

10,

.0,

%1

 

 

 

 

 

 

 

 

 

Map Descriptor names may be used in driver error messages. It is not essential, but it is useful to use unique names.

Location in the Data Array where the first element of data will be stored. The arrays are zero referenced so an offset of 100 indicates the 101st element of the array.

The Node must

have been defined in the Nodes section of the CSV file. The Node Name connects this Map Descriptor to a Node which

The address and length specify the first element and the number of elements that must be read from the PLC’s data tables. GE PLC’s reference data tables starting at element 1.

Read will be performed every 2.0s.

Use the % symbol

The name of the Data Array in which the driver will store the data. The name must correspond to a Data Array defined in the Data Array section of the CSV file

RDBC = read block continuous. The driver will read data from the PLC continuously.

in turn connects

the Map Descriptor to a port.

Unless otherwise specified, the driver reads bytes and words. This Map Descriptor reads bytes of data covering %I1 to %I79

as you would if you were programming a

GE PLC.

4.4.5.Map Descriptor Example 2 – Simple Write

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

Write_AO,

DA_AO,

0,

WRBC,

Node1,

20,

10,

5.0,

%AQ

 

 

 

 

 

 

 

 

 

Write continuously

Write to PLC Table element number 20 to

29 inclusive (10 elements)

 

Write to the %AQ (Analog Output) table in the PLC.

FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.fieldServer.com Tel: (408) 262-2299 Fax: (408) 262-2296 Toll_Free: 888-509-1970 email: support@fieldServer.com

Image 12
Contents FS-8700-66 GE SNP Applicability & EffectivityTable of Contents Gesnp Description 3 of 29FS-8700-66GE-SNP Manual4 of 29FS-8700-66GE-SNP Manual Hardware Connections 5 of 29FS-8700-66GE-SNP Manual6 of 29FS-8700-66GE-SNP Manual FS-8917-01 From FieldServer7 of 29FS-8700-66GE-SNP Manual GE LogicmasterConfiguring the FieldServer as a Gesnp Client Data Arrays/Descriptors8 of 29FS-8700-66GE-SNP Manual Client Side Connection Descriptors 9 of 29FS-8700-66GE-SNP ManualSNP Client Side Node Descriptors 10 of 29FS-8700-66GE-SNP ManualRDBC, WRBC, Wrbx DescriptorDriver Related Map Descriptor Parameters Timing Parameters11 of 29FS-8700-66GE-SNP Manual Map Descriptor Example 1 Simple Read Map Descriptor Example 2 Simple Write12 of 29FS-8700-66GE-SNP Manual Map Descriptor Example 3 Handling Bits 13 of 29FS-8700-66GE-SNP ManualConfiguring the FieldServer as a Gesnp Server Server Side Connection Descriptors14 of 29FS-8700-66GE-SNP Manual 19200 Odd NoneServer Side Node Descriptors 15 of 29FS-8700-66GE-SNP ManualDriver Specific Map Descriptor Parameters 16 of 29FS-8700-66GE-SNP Manual17 of 29FS-8700-66GE-SNP Manual Map Descriptor Example 18 of 29FS-8700-66GE-SNP ManualTabler Appendix A. Troubleshooting Tips 19 of 29FS-8700-66GE-SNP ManualAppendix B. Error Messages 20 of 29FS-8700-66GE-SNP ManualPage 20SNP9 Edit the CSV, correct the problem and reset the FieldServer Appendix B.1. Driver Stats Drvdlltimeout DrvdllerrorDrvdllerrorcode Gestatmboxplcstat GestatmboxprivlvlGestatcdupdictimeout GestatdrvactnodatarGestatdrvactnonoder GestatdrvactnakrAppendix C. Advanced Topics Appendix C.1. SNP Node Names 25 of 29FS-8700-66GE-SNP ManualMinor Error Status Codes Appendix C.2. Scaling26 of 29FS-8700-66GE-SNP Manual 27 of 29FS-8700-66GE-SNP Manual Minor Error Status Codes Program Load and Store Requests 28 of 29FS-8700-66GE-SNP Manual0BF 0BD29 of 29FS-8700-66GE-SNP Manual This page Intentionally Left Blank