2 CPU Unit Operation
2-10
NJ-series CPU Unit Software User’s Manual (W501)
2-3 Accessing I/O
The CPU Unit uses variables to access I/O. This section describes how variables are used to access
I/O.
In this manual, I/O on EtherCAT slaves and CJ-series Units are treated as I/O. Refer to the NJ-series
CPU Unit Built-in EtherNet/IP Port User’s Manual (Cat. No. W506) for details on how to access data in
other Controllers with tag data links.
In an NJ-series CPU Unit, you use variables in the user program to access I/O and memory in the CPU
Unit.
The type of a variable depends on whether it has attributes that are set by the user, and what it can
access.
*1 Refer to Device Variable Attributes on page 3-11 for the attributes that can be set.
*2 “EtherCAT slaves” includes any NX Units on EtherCAT Slave Terminals.
*3 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.
The user defines all of the attributes of a user-defined variable. Refer to 6-3 Variables for details on
user-defined variables.
2-3-1 Types of Variables
Variables
Attribute set-
tings
Accessed data
User-defined variables All attributes can
be set.
CPU Unit
Semi-user-defined
variables
Device variables Device variables
for EtherCAT
slaves
Some attributes
can be set.
*1
EtherCAT slaves to which axes
are not assigned
*2*3
Device variables
for CJ-series
Units
CJ-series Basic I/O Units and
CJ-series Special Units
Cam data variables Servo Drives, encoder input
slaves, and CPU Unit
System-defined
variables
System-defined variables for PLC
Function Module
No attributes can
be set.
CPU Unit
System-defined
variables for
motion control
MC Common
Variable
Servo Drives, encoder input
slaves, and CPU Unit
Axis Variables
Axes Group Vari-
ables
System-defined variables for Ether-
Net/IP
Built-in EtherNet/IP port
System-defined variables for Ether-
CAT master
Built-in EtherCAT master port
User-defined Variables