Argument specification
This section shows the argument specifications of the C Controller module dedicated functions.
Device type
The following tables show the device types specified to the C Controller module dedicated functions.
Devices are defined in the header file "CCPUFunc.h".
Either a code or a device name can be specified as a device type.
Device types for accessing internal user devices and internal system devices
Device type can be specified to the argument sDevType of the CCPU_WriteDevice/CCPU_ReadDevice/CCPU_SetDevice/
CCPU_ResetDevice/CCPU_WriteDevice_ISR/CCPU_ReadDevice_ISR/CCPU_SetDevice_ISR/CCPU_ResetDevice_ISR
functions.
Device name (Device)
Internal relay (M)
Special relay (SM)
Data register (D)
Special register (SD)
Link relay (B)
Link register (W)
File register (ZR)
Device types for accessing link devices
Device type can be specified to the argument sDevType of the CCPU_WriteLinkDevice/CCPU_ReadLinkDevice functions.
Device name (Device)
*1
Link input (Jn\X)
*1
Link output (Jn\Y)
*1
Link relay (Jn\B)
*1
Link register (Jn\W)
*1,*2
Link special relay (Jn\SB)
*1,*2
Link special register (Jn\SW)
*1 To directly access link devices, access them as link direct devices (J\) depending on network module specifications. An access
target device varies depending on a device number to be specified. Therefore, a device number which is actually accessed may be
different from the specified device number.
For specification method for accessing link direct devices (J\) using C Controller module dedicated functions, refer to the following:
MELSEC iQ-R C Controller Module User's Manual
*2 For motion modules (RD78G/GH), only link special relays (Jn\SB) and link special registers (Jn\SW) can be accessed.
Device type
Code
Decimal
Hexadecimal
4
4H
5
5H
13
DH
14
EH
23
17H
24
18H
220
DCH
Device type
Code
Decimal
Hexadecimal
1000
3E8H
2000
7D0H
23000
59D8H
24000
5DC0H
25000
61A8H
28000
6D60H
1 COMMON ITEMS
1.2 C Controller Module Dedicated Functions
1
Device name
Dev_CCPU_M
Dev_CCPU_SM
Dev_CCPU_D
Dev_CCPU_SD
Dev_CCPU_B
Dev_CCPU_W
Dev_CCPU_ZR
Device name
Dev_LX
Dev_LY
Dev_LB
Dev_LW
Dev_LSB
Dev_LSW
13