Mitsubishi Electric MELSEC iQ-R C Series Programming Manual page 161

Controller module
Table of Contents

Advertisement

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
Argument
Name
sFlg
Access flag
usXNo
Input signal
pusData
Data storage destination
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
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST
Relevant functions
• Page 160 CCPU_X_In_WordEx
• Page 163 CCPU_Y_Out_BitEx
• Page 164 CCPU_Y_Out_WordEx
• Page 161 CCPU_Y_In_BitEx
• Page 162 CCPU_Y_In_WordEx
Description
Specify an access flag.
• 0: Normal access
• Others: Reserved
Specify an input signal (X).
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
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
3
IN/OUT
IN
IN
OUT
159

Advertisement

Table of Contents
loading

Table of Contents