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

Controller module
Table of Contents

Advertisement

CCPU_ReadMCUnitLabelBit
This function reads data from module labels of a C Controller module in bit units.
Format
short CCPU_ReadMCUnitLabelBit (unsigned long ulUnitLabel, unsigned short* pusDataBuf, unsigned long ulUnitLabelID)
Argument
Argument
Name
ulUnitLabel
Module label
pusDataBuf
Data storage destination
ulUnitLabelID
Module label ID
Description
• This function reads data from the module label of C Controller module, which is specified for the module label (ulUnitLabel),
to the specified data storage destination (pusDataBuf).
• To use the CCPU_ReadMCUnitLabelBit function, include a header file that has the information of module labels output by
CW Configurator, and specify a module label.
• The read data is stored in the data storage destination (pusDataBuf). (0: OFF/1: ON)
Specifying a module label
• For the module label (ulUnitLabel), specify a bit-type module label. Specifying a module label other than bit type causes
unintended data to be read.
Specifying a module label ID
• For the module label ID (ulUnitLabelID), specify a macro defined in the header file, which includes the information of
module labels output by CW Configurator. For an example of specifying a module label ID, refer to 'Specification method for
a module label ID' in the 'CCPU_WriteMCUnitLabel function' section. (Page 156 Specification method for a module
label ID)
• When specifying '0' for the module label ID (ulUnitLabelID), data will be read from the module label without checking the
module label ID.
Return value
Return value
0 (0000H)
Other than 0
Relevant function
• Page 158 CCPU_WriteMCUnitLabelBit
3 DETAILS OF FUNCTION
124
3.1 C Controller Module Dedicated Functions
Description
Specify a module label.
Specify the storage destination of read data.
Specify a module label ID.
Description
Normal
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST
IN/OUT
IN
OUT
IN

Advertisement

Table of Contents
loading

Table of Contents