3 Data Exchange with the CPU Unit
I/O data
Input001, Bit 1
Input100, Bit 15
The user program accesses the I/O data with BOOL-type variables.
When the user program accesses the I/O data with both WORD type and BOOL type, use the
union-type user-defined variables Slave_OutData_C and Slave_InData_C defined in the example. The
user-defined variables and I/O data of the EtherCAT Slave Unit are allocated as follows:
I/O data
Output001
Output100
Input001
Input100
The user program accesses the I/O data with WORD-type or BOOL-type variables.
Additional Information
Refer to the Sysmac Studio Version 1 Operation Manual (Cat. No. W504) for details on memory
used for CJ-series Unit, variable allocation and user-defined variable registration.
3 - 8
User-defined variable name
Slave_InData_B[0,1]
...
Slave_InData_B[99,15]
User-defined variable name
WORD type
Slave_OutData_C[0].w
BOOL type
Slave_OutData_C[0].b[0] to
Slave_OutData_C[0].b[15]
...
WORD type
Slave_OutData_C[99].w
BOOL type
Slave_OutData_C[99].b[0] to
Slave_OutData_C[99].b[15]
WORD type
Slave_InData_C[0].w
BOOL type
Slave_InData_C[0].b[0] to
Slave_InData_C[0].b[15]
...
WORD type
Slave_InData_C[99].w
BOOL type
Slave_InData_C[99].b[0] to
Slave_InData_C[99].b[15]
CJ-series EtherCAT Slave Units Operation Manual for NJ-series CPU Unit (W542)
Address
3300.01
...
3399.15
3200
3200.00
3200.15
...
3299
3299.00
3299.15
3300
3300.00
3300.15
...
3399
3399.00
3399.15
...
Address
...
...