2-13
2 CPU Unit Operation
NJ-series CPU Unit Software User’s Manual (W501)
2-3 Accessing I/O
2
2-3-2 Accessing I/O with Variables
In the CPU Unit, variables are used in the user program. Variables access the data of the assigned I/O.
The following table shows how I/O and variables are assigned in the CPU Unit. The type of variable that
is used by a CJ-series Special Unit depends on the data to access.
*1 With the Sysmac Studio version 1.09 or higher, the EtherCAT slaves to which axes are assigned can also be
accessed via EtherCAT slave device variables.
*2 This data is for extended functions and slave I/O that you assign by specifying addresses in memory. You can-
not access assigned memory area data with device variables.
The method that is used to access an EtherCAT slave depends on the type of EtherCAT slave.
*1 With the Sysmac Studio version 1.09 or higher, the EtherCAT slaves to which axes are assigned can also be
accessed via EtherCAT slave device variables.
*2 For a Servo Drive, one Servomotor is assigned as one axis to one Axis variable. For an encoder input slave,
one counter is assigned as one axis to one Axis variable.
Note EtherCAT slaves that cannot be assigned to axes are called general-purpose slaves. EtherCAT slaves that
can be assigned to axes are called Servo Drive and encoder input slaves. Refer to the NJ-series CPU Unit
Motion Control User’s Manual (Cat. No. W507) for details on Servo Drive and encoder input slaves.
2-3-2 Accessing I/O with Variables
I/O Data Variables
EtherCAT slaves EtherCAT slaves to which
axes are not assigned
*1
--- Device variables for Ether-
CAT slaves
EtherCAT slaves to which
axes are assigned
--- Axis variables
CJ-series Units Basic I/O Units --- Device variables for CJ-
series Units
Special Units • Operating data
• Setup data
Device variables for CJ-
series Units
Assigned memory area data
*1
User-defined variables
Accessing EtherCAT Slaves
Type of EtherCAT slave Access method
• Servo Drive and encoder input slaves that are not
assigned to axes
*1
• General-purpose slaves
These slaves are accessed through I/O ports by using
device variables for EtherCAT slaves.
Servo Drive and encoder input slaves that are
assigned to axes
These slaves are accessed directly with Axis variables.
*1
User program
Special Units
Assigned
memory areas
Servo Drive and
encoder input slaves
that are assigned to axes
Variables
User-defined
variables
I/O
Operating data
Setup data
Axis variables
CPU Unit
Device variables for
EtherCAT slaves
Device variables for CJ-series Units
Basic
I/O Units
Servo Drive, encoder input,
and general-purpose slaves
that are not assigned to axes