beautypg.com

Map descriptor example 3: clock read, Map descriptor example 4: clock write, Map descriptor example 5: read cpu cycle times – FieldServer Omron FINS FS-8704-16 User Manual

Page 15

background image

FS-8704-16 Omron FINS Manual Page 15 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.6 Map Descriptor Example 3: Clock Read:

This Map Descriptor reads the PLC clock and stores the information in a Data Array DA_CLK. For detail on how the Driver stores clock information see Appendix
A.

Map_Descriptor_Name

,Data_Array_Name

,Data_Array_Offset

,Function

,Node_Name

,Length

,Command_Name

,Unit_Number

CMD_CLKr

,DA_CLKr

,0

,RDBC

,PLC1

,7

,CLOCK READ

,0

4.5.7 Map Descriptor Example 4: Clock Write:

Write-thru is not possible for Clock write. A dedicated Map Descriptor is required to overwrite the PLC clock. This Map Descriptor overwrites the clock
whenever an upstream device updates the DA_CLKw Data Array. See Appendix A for details.

Map_Descriptor_Name

,Data_Array_Name

,Data_Array_Offset

,Function

,Node_Name

,Length

,Command_Name

,Unit_Number

CMD_CLKw

,DA_CLKw

,0

,WRBX

,PLC1

,7

,CLOCK WRITE

,0

Note: All elements must be updated in DA_CLKw to set the clock as expected. Whenever any element updates, the Driver will write all seven values to the PLC
along with the one updated value. If all elements are updated by the upstream device in a single operation then the Driver will also set the all elements at the
PLC in a single operation.

4.5.8 Map Descriptor Example 5: Read CPU Cycle Times:

This Map Descriptor reads the CPU cycle time at the PLC and stores the data in a Data Array DA_CYCT. Average, maximum and minimum cycle times will be
stored in three consecutive locations starting with the location indicated by the Data_Array_Offset parameter. See Appendix A

Map_Descriptor_Name

,Data_Array_Name

,Data_Array_Offset

,Function

,Node_Name

,Length

,Command_Name

,Unit_Number

CMD_CYCT

,DA_CYCT

,0

,RDBC

,PLC1

,3

,CLOCK READ

,0s

The Driver stores these values as it gets them from the PLC. Scaling can provided to determine the unit in which the value is stored. Default is 10 times
milliseconds.