6-15
6 Motion Control Programming
NJ-series CPU Unit Motion Control User’s Manual (W507)
6-6
S
y
stem
-de
fined
V
ariab
les f
o
r Mo
tio
n
Co
ntr
o
l
6
6-6-1 Ov
er
vie
w
of Syste
m
-defined V
ar
iab
les f
or Motion Con
trol
6-6
System-defined Variables for Motion
Control
This section describes the variables of the MC Function Module.
The NJ-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-series Controller.
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.
z
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
.
z
Axis Variables
Use these variables to handle EtherCAT slaves, Servo Drives, encoder input terminals, 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 Axis Variables in the user program.
You can change any of the Axis Variables that you create on the Sysmac Studio.
•
Axis Variables in the system-defined variables:
_MC_AX[0]
to
_MC_AX[63]
•
Default Axis Variables when axes are created on Sysmac Studio:
MC_Axis000
to
MC_Axis063
z
Axes Group Variables
Use these variables to handle multiple axes as a single group.
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 Axes Group Variables that you create on the Sysmac Studio.
•
Axes Group Variables in the system-defined variables:
_MC_GRP[0]
to
_MC_GRP[31]
•
Default Axes Group Variables when axes groups are created on Sysmac Studio:
MC_Group000
to
MC_Group031
Refer to the
NJ-series CPU Unit Software User's Manual
(Cat. No. W501) for details on the variables
that are used by an NJ-series Controller.
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 con-
trol
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.
Summary of Contents for NJ501-1300
Page 12: ...Sections in this Manual 10 NJ series CPU Unit Motion Control User s Manual W507...
Page 18: ...16 NJ series CPU Unit Motion Control User s Manual W507 CONTENTS...
Page 22: ...Read and Understand this Manual 20 NJ series CPU Unit Motion Control User s Manual W507...
Page 34: ...Revision History 32 NJ series CPU Unit Motion Control User s Manual W507...
Page 86: ...3 Configuring Axes and Axes Groups 3 28 NJ series CPU Unit Motion Control User s Manual W507...
Page 122: ...5 Motion Control Parameters 5 24 NJ series CPU Unit Motion Control User s Manual W507...
Page 158: ...6 Motion Control Programming 6 36 NJ series CPU Unit Motion Control User s Manual W507...
Page 166: ...7 Manual Operation 7 8 NJ series CPU Unit Motion Control User s Manual W507...
Page 182: ...8 Homing 8 16 NJ series CPU Unit Motion Control User s Manual W507...
Page 346: ...10 Sample Programming 10 92 NJ series CPU Unit Motion Control User s Manual W507...
Page 422: ...Appendices A 18 NJ series CPU Unit Motion Control User s Manual W507...
Page 423: ...Index 1 NJ series CPU Unit Motion Control User s Manual W507 I Index...
Page 430: ...Index 8 NJ series CPU Unit Motion Control User s Manual W507 Index...