Dtl_write_w – Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual
Page 213

API Library of Routines
Appendix B
DTL_WRITE_W
B-82
Writes data from the control-coprocessor memory to the PLC-5
programmable -controller data table.
C Syntax
#include <copro.h>
unsigned DTL_WRITE_W (name_id, variable, iostat)
unsigned name_id;
void *variable;
unsigned *iostat;
Parameters
name_id
DTL_C_ DEFINE returns this handle when the data item to be written
was defined.
variable
The address of a buffer that contains the data to be written to the PLC-5
programmable controller. Ensure the declared variable is the right type
to match the data size that was specified in DTL_C_DEFINE.
iostat
Returns a final completion status. Possible completion status values are:
Value
Meaning
0
DTL_SUCCESS = operation completed successfully
27
DTL_E_NOATMPT = I/O operation not attempted; see status variable for reason
xxx
¬
PCCC_E_xxx = operation refused by the PLCĆ5 programmable controller
¬
See Table B.A for PCCC errors.
DTL_WRITE_W