Utility function – Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual
Page 65

Chapter 5
Developing Programs
5-5
Table 5.E
DTL Conversion Functions
Function
What It Converts
DTL_GET_WORD 2Ćbyte array to host dataĆtype word
DTL_GET_FLT
Raw 32Ćbit IEEE float data, in 4Ćbyte array, to host type float
DTL_GET_3BCD
A 3Ćdigit BCD value stored in a 2Ćbyte array to a controlĆcoprocessor unsigned
¬
DTL_GET_4BCD
A 4Ćdigit BCD value stored in a 2Ćbyte array to a controlĆcoprocessor unsigned
¬
DTL_PUT_WORD ControlĆcoprocessor unsigned to a 2Ćbyte array
¬
DTL_PUT_FLT
ControlĆcoprocessor float to a 4Ćbyte array in IEEE 32Ćbit binary format
DTL_PUT_3BCD
ControlĆcoprocessor unsigned to 2Ćbyte, 3Ćdigit BCD value
¬
DTL_PUT_4BCD
ControlĆcoprocessor unsigned to 2Ćbyte, 4Ćdigit BCD value
¬
¬
Unsigned is the same as unsigned integer or unsigned long
ControlĆCoprocessor Memory Functions
Use DTL_SIZE and DTL_TYPE functions to determine the size and
location of control-coprocessor memory required to store the contents of
the data item in the control-coprocessor format. See Table 5.F.
Table 5.F
DTL Memory Functions
Function
What It Does
DTL_SIZE
Determines the amount of controlĆcoprocessor memory necessary to store the defined block of data
DTL_TYPE Gets the data type of the defined block of data specified in DTL_C_DEFINE
Utility Function
Use the DTL_CLOCK function to synchronize the control-coprocessor
date and time with that of the PLC-5 programmable controller. The
control-coprocessor time is synchronized within 1 second of the PLC-5
programmable-controller clock. This is a one-time-only synchronization.
The application can maintain synchronization by calling DTL_CLOCK at
regular intervals.