beautypg.com

Msg_clr_mask – Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual

Page 219

background image

API Library of Routines

Appendix B

MSG_CLR_MASK

B-88

Clears the bit associated with the specified message number.

C Syntax

#include

unsigned MSG_CLR_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 reset 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

Operation successful

133

CC_E_BAD_MSGID

Message number invalid

Description

Use the MSG_CLR_MASK function to clear 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_CLR_MASK