3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
109
3
CCPU_ToBufHG
This function writes data to the fixed cycle communication area of the CPU module mounted on the specified module position.
■
Format
short CCPU_ToBufHG(unsigned short usIoNo, unsigned long ulOffset, unsigned long ulSize, unsigned short* pusDataBuf,
unsigned long ulBufSize)
■
Argument
■
Description
• This function writes data in the data storage destination (pusDataBuf) for the size specified to the data size (ulSize) to the
fixed cycle communication area of a CPU module specified to the module position (usIoNo). Data is written 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.
• When executing this function while the operating status of a CPU module is not RUN, the STOP/PAUSE error (-28640)
occurs.
■
Return value
■
Relevant functions
• Page 67 CCPU_FromBuf
• Page 108 CCPU_ToBuf
• Page 68 CCPU_FromBufHG
Argument
Name
Description
IN/OUT
usIoNo
Module position
Specify the module position as follows.
Start I/O number divided by 16 (3E0H to 3E3H)
IN
ulOffset
Offset
Specify the offset in word units.
IN
ulSize
Data size
Specify the write data size in word units.
IN
pusDataBuf
Data storage destination
Specify the storage destination of write data.
IN
ulBufSize
Data storage destination size
Specify '0'.
IN
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Содержание MELSEC iQ-R C
Страница 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Страница 2: ......
Страница 201: ...I 199 MEMO ...
Страница 203: ...I 201 MEMO ...
Страница 207: ......