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

Controller module
Table of Contents

Advertisement

CCPU_WriteMCUnitLabel
This function writes data to module labels of a C Controller module in word units.
Format
short CCPU_WriteMCUnitLabel (unsigned long ulUnitLabel, unsigned long ulOffset, unsigned long ulSize, unsigned short*
pusDataBuf, unsigned long ulBufSize ,unsigned long ulUnitLabelID)
Argument
Argument
Name
ulUnitLabel
Module label
ulOffset
Offset
ulSize
Data size
pusDataBuf
Data storage destination
ulBufSize
Data storage destination size
ulUnitLabelID
Module label ID
Description
• This function writes data, which is stored in the data storage destination (pusDataBuf), to the module label of a C Controller
module, which is specified for the module label (ulUnitLabel), for the size specified in the data size (ulSize).
• To use the CCPU_WriteMCUnitLabel function, include a header file that has the information of module labels output by CW
Configurator, and specify a module label.
3 DETAILS OF FUNCTION
154
3.1 C Controller Module Dedicated Functions
Description
Specify a module label.
Specify the offset from the specified module label in word units.
Specify the write data size in word units.
Specify the storage destination of write data.
Specify '0'.
Specify a module label ID.
IN/OUT
IN
IN
IN
IN
IN
IN

Advertisement

Table of Contents
loading

Table of Contents