beautypg.com

Map descriptor example 6: run-stop plc, Map descriptor example 7: read cpu status – FieldServer Omron FINS FS-8704-16 User Manual

Page 16

background image

FS-8704-16 Omron FINS Manual Page 16 of 38

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

Tel: (408) 262-2299 Fax: (408) 262-9042 Toll_Free: 888-509-1970 email: [email protected]

4.5.9 Map Descriptor Example 6: Run-Stop PLC:

Defining this Map Descriptor Driver can change the PLC mode to STOP (Program), MONITOR or RUN mode. The Driver issues a change mode command to the
PLC whenever the value at the declared offset is updated.

Map_Descriptor_Name

,Data_Array_Name

,Data_Array_Offset

,Function

,Node_name

,Length

,Command_Name

,Unit_Number

CMD_RUN_ST

,DA_RUN_ST

,0

,WRBX

,PLC1

,1

,RUN-STOP

,0s

The Driver will change PLC modes depending upon the value poked by the upstream device at offset (0 in this case). See section Appendix A for values
corresponding to PLC modes.

4.5.10 Map Descriptor Example 7: Read CPU Status:

Defining this Map Descriptor Driver reads the CPU status and stores it in the Data Array DA_STATUS.

Map_Descriptor_Name

,Data_Array_Name

,Data_Array_Offset

,Function

,Node_name

,Length

,Command_Name

,Unit_Number

CMD_STATUS

,DA_STATUS

,0

,REBC

,PLC1

,67

,CPU UNIT STATUS READ

,0s

The Driver stores the status information in the named Data Array at consecutive locations starting with Data_Array_Offset.

See Appendix A for further information.