3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
119
3
CCPU_X_In_BitEx
This function reads an input signal (X) in bit (1-point) units.
■
Format
short CCPU_X_In_BitEx (short sFlg, unsigned short usXNo, unsigned short* pusData)
■
Argument
■
Description
• This function reads an input signal (X) specified to the input signal (usXNo) in bit (1-point) units.
• A read value of an input signal (X) is stored in the data storage destination (pusData).
• This function operates to the mounted module corresponding to the specified input signal (usXNo) regardless of the type of
the parameter setting (I/O assignment). When the specified area is "empty", this function ends normally without processing
(read data: 0). When it is "output module", the I/O assignment error occurs.
■
Return value
■
Relevant functions
• Page 120 CCPU_X_In_WordEx
• Page 123 CCPU_Y_Out_BitEx
• Page 124 CCPU_Y_Out_WordEx
• Page 121 CCPU_Y_In_BitEx
• Page 122 CCPU_Y_In_WordEx
Argument
Name
Description
IN/OUT
sFlg
Access flag
Specify an access flag.
• 0: Normal access
• Others: Reserved
IN
usXNo
Input signal
Specify an input signal (X).
IN
pusData
Data storage destination
Specify the storage destination of read data.
Either of the following values is stored depending on the value of the input signal (X).
• 0: OFF
• 1: ON
OUT
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Summary of Contents for MELSEC iQ-R C
Page 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Page 2: ......
Page 201: ...I 199 MEMO ...
Page 203: ...I 201 MEMO ...
Page 207: ......