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

Controller module
Table of Contents

Advertisement

CCPU_FromBufHG_ISR
This function reads data from the fixed cycle communication area of the CPU module mounted on the specified module
position.
Format
short CCPU_FromBufHG_ISR (unsigned short usIoNo, unsigned long ulOffset, unsigned long ulSize,
unsigned short* pusDataBuf)
Argument
Argument
Name
usIoNo
Module position
ulOffset
Offset
ulSize
Data size
pusDataBuf
Data storage destination
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 (usIoNo), 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 to the offset (ulOffset).
• The fixed cycle communication area can be accessed only when the fixed cycle communication area setting under the
multiple CPU setting is configured.
Do not execute this function in a routine other than an interrupt routine.
WARNING
• If any function in which an invalid argument is specified is executed, an error such as hardware failure (3C02H) may occur
on C Controller module.
• This function does not check the specified argument.
When creating a program, note the following:
An address specified to the read data is a multiple of 2.
A data area for the size (words) of the read data is reserved.
A non-existent fixed cycle communication area is not specified.
Return value
Return value
0 (0000H)
Other than 0
Relevant function
• Page 167 CCPU_FromBuf_ISR
• Page 180 CCPU_ToBuf_ISR
• Page 182 CCPU_ToBufHG_ISR
3 DETAILS OF FUNCTION
168
3.2 C Controller module dedicated functions for ISR
Description
Specify the module position as follows.
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.
Description
Normal
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST
IN/OUT
IN
IN
IN
OUT

Advertisement

Table of Contents
loading

Table of Contents