Msg_set_mask – Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual
Page 229
Advertising
API Library of Routines
Appendix B
MSG_SET_MASK
B-98
Sets the bit associated with the specified message number.
C Syntax
#include <copro.h>
unsigned MSG_SET_MASK (mask,msg_num)
unsigned *mask;
unsigned msg_num;
Parameters
mask
Address of the read or write mask used with the MSG_WAIT function.
This function will set the bit corresponding to the message number.
msg_num
Number of the PLC-5 programmable-controller message (0-31).
Returns
Status
Symbolic Name
Meaning
0
CC_SUCCESS
Operationsuccessful
133
CC_E_BAD_MSGID
Message number invalid
Description
Use the MSG_SET_MASK function to set bits in the message
read/write masks.
C Example
See MSG_WAIT on page B-102 for a complete example of asynchronous
message processing.
MSG_SET_MASK
Advertising