Mitsubishi Electric MELSEC iQ-R C Programming Manual page 70

Melsec iq-r series programmable controller
Hide thumbs Also See for MELSEC iQ-R C:
Table of Contents

Advertisement

CCPU_FromBufHG
This function reads data from the fixed cycle communication area of the CPU module mounted on the specified module
position.
■Format
short CCPU_FromBufHG(unsigned short usIoNo, unsigned long short ulOffset, unsigned long ulSize,
unsigned short* pusDataBuf, unsigned long ulBufSize)
■Argument
Argument
Name
usIoNo
Module position
ulOffset
Offset
ulSize
Data size
pusDataBuf
Data storage destination
ulBufSize
Data storage destination size
■Description
• This function reads data for the size specified to the data size (ulSize) from the fixed cycle communication area of a CPU
module specified to the module position (usloNo), and stores it in the data storage destination (pusDataBuf). Data is read
by specifying an offset address from the start of the fixed cycle communication area.
• The fixed cycle communication area can be accessed only when the fixed cycle communication area setting under the
multiple CPU setting is configured.
Precautions
Note that the size of data storage destination (ulBufSize) should be equal to or bigger than the data size (ulSize).
■Return value
Return value
0 (0000H)
Other than 0
■Relevant functions
• Page 67 CCPU_FromBuf
• Page 108 CCPU_ToBuf
• Page 109 CCPU_ToBufHG
3 DETAILS OF FUNCTION
68
3.1 C Controller Module Dedicated Functions
Description
Specify the module position.
Start I/O number divided by 16 (3E0H to 3E3H)
Specify the offset in word units.
Specify the read data size in word units.
Specify the storage destination of read data.
Specify the data storage destination size in word units.
Description
Normal
Error
For details on the error, refer to the following chapter.
Page 174 ERROR CODE LIST
IN/OUT
IN
IN
IN
OUT
IN

Advertisement

Table of Contents
loading

Table of Contents