DTL_PCCC_MSG

The DTL_PCCC_MSG functions allow the client application to send PCCC commands directly to processors. This function has three forms: DTL_PCCC_MSG is the asynchronous version; DTL_PCCC_MSG_W is the synchronous version; and, DTL_PCCC_MSG_CB is the callback version.
DTL_RETVAL DTL_PCCC_MSG(
plc, command, src_buf, src_size, dst_buf, dst_size, io_stat, timeout, wait_id
)
DTSA_TYPE *
plc
;
/* pointer to target processor
UNSIGNED CHAR
command
;
/* command value
UNSIGNED CHAR *
src_buf
;
/* pointer to source buffer
UNSIGNED LONG
src_size
;
/* source message size
UNSIGNED CHAR *
dst_buf
;
/* pointer to destination buffer
UNSIGNED LONG *
dst_size
;
/* pointer to destination buffer size
UNSIGNED LONG *
io_stat
;
/* pointer to I/O status buffer
UNSIGNED LONG
timeout
;
/* I/O timeout value
UNSIGNED LONG
wait_id
;
/* wait identifier
DTL_RETVAL DTL_PCCC_MSG_W(
plc, command, src_buf, src_size, dst_buf, dst_size, io_stat, timeout
)
DTSA_TYPE *
plc
;
/* pointer to target processor
UNSIGNED CHAR
command
;
/* command value
UNSIGNED CHAR *
src_buf
;
/* pointer to source buffer
UNSIGNED LONG
src_size
;
/* source message size
UNSIGNED CHAR *
dst_buf
;
/* pointer to destination buffer
UNSIGNED LONG *
dst_size
;
/* pointer to destination buffer size
UNSIGNED LONG *
io_stat
;
/* pointer to I/O status buffer
UNSIGNED LONG
timeout
;
/* I/O timeout value
DTL_RETVAL DTL_PCCC_MSG_CB(
plc, command, src_buf, src_size, dst_buf, dst_size, timeout, callback_proc, callback_param
)
DTSA_TYPE *
plc
;
/* pointer to target processor
UNSIGNED CHAR
command
;
/* command value
UNSIGNED CHAR *
src_buf
;
/* pointer to source buffer
UNSIGNED LONG
src_size
;
/* source message size
UNSIGNED CHAR *
dst_buf
;
/* pointer to destination buffer
UNSIGNED LONG *
dst_size
;
/* pointer to destination buffer size
UNSIGNED LONG
timeout
;
/* I/O timeout value
DTL_CALLBACK
callback_proc
;
/* callback procedure number
UNSIGNED LONG
callback_param
;
/* callback parameter value
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal