3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
67
3
CCPU_FromBuf
This function reads data from the CPU buffer memory of the CPU module and the buffer memory of the intelligent function
module which are mounted on the specified module position. (FROM instruction)
■
Format
short CCPU_FromBuf (unsigned short usIoNo, unsigned long ulOffset, unsigned long ulSize, unsigned short* pusDataBuf,
unsigned long ulBufSize)
■
Argument
■
Description
• This function reads data for the size specified to the data size (ulSize) from the CPU buffer memory of a CPU module and
the buffer memory of an intelligent function module which are 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 CPU buffer memory of a CPU module and the buffer
memory of an intelligent function module.
• To access the CPU buffer memory of the module in a multiple CPU system (CPU No.1 to No.4), specify 3E0H to 3E3H
(CPU No.1 to No.4) to the module position (usIoNo). However, the CPU buffer memory can be accessed only when 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
■
Relevant function
Argument
Name
Description
IN/OUT
usIoNo
Module position
Specify the module position.
Start I/O number divided by 16 (0H to FFH, 3E0H to 3E3H)
IN
ulOffset
Offset
Specify the offset in word units.
IN
ulSize
Data size
Specify the read data size in word units.
IN
pusDataBuf
Data storage destination
Specify the storage destination of read data.
OUT
ulBufSize
Data storage destination size
Specify the data storage destination size in word units.
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: ......