6 Motion Control Programming
6-20
NJ/NX-series CPU Unit Motion Control Userās Manual (W507)
6-6 System-defined Variables for Motion
Control
This section describes the variables of the MC Function Module.
The NJ/NX-series Controller is compliant with the IEC 61131-3 standard. Parameter settings, status
information, and other data are handled as variables in the user program in the NJ/NX-series Con-
troller. Of these, system-defined variables that belong to the MC Function Module are called system-
defined variables for motion control.
The following table lists all of the types of system-defined variables for motion control.
ļ¬ MC Common Variable
You can monitor the overall status of the MC Function Module with the MC Common Variable. The
variable name is _MC_COM.
ļ¬ Axis Variables
Use these variables to handle EtherCAT slaves, Servo Drives, encoder input terminals, NX-series
Position Interface Units, virtual Servo Drives, and virtual encoder input terminals.
You can use either the system-defined variables or the variables that are set on the Sysmac Studio
to specify the Axes Group Variables in the user program.
You can change any of the Axis Variables that you create on the Sysmac Studio.
6-6-1 Overview of System-defined Variables for Motion Control
Types of System-defined Variables for Motion Control
Level 1 Level 2 Level 3 Description
System-defined
variables
System-defined vari-
ables for motion
control
MC Common
Variable
You can monitor the overall status of the
MC Function Module.
Axis Variables You can monitor axis status and the set-
tings of part of the axis parameters.
Axes Group
Variables
You can monitor axes group status and the
settings of part of the axes group parame-
ters.
⢠Axes Group Variables in the system-defined
variables
: _MC_AX[0] to _MC_AX[255]
: _MC1_AX[0] to _MC1_AX[255]
: _MC2_AX[0] to _MC2_AX[255]
⢠Default Axes Group Variables when axes
groups are created on Sysmac Studio
: MC_Axis000 to MC_Axis255 (default)