3-19
3 I/O Ports, Slave Configuration, and Unit Configuration
NJ-series CPU Unit Software User’s Manual (W501)
3-5 Creating the Axes and Assigning Them to the Servo
Drives/Encoder Input Slaves
3
3-5-3 Creating and Using Axes and Axis Variables
Set the Axis Basic Settings from the Sysmac Studio.
3
Use the Sysmac Studio to specify the settings required for Test Mode operation (Unit Conver-
sion, Count Mode, Limits, etc.) and the settings required for actual system operation. Then
transfer the settings to the CPU Unit with the project.
4
In the user program, an axis variable name is specified for the in-out variable Axis in motion con-
trol instructions.
For the axis variable name, specify the axis name (axis variable name) that was specified in the
Motion Control Setup or the system-defined variable _MC_AX[0..63].
You can execute motion control for the assigned Servo Drive or encoder input slave. An example
that specifies the axis variable name MyAxis1 is shown below.
Example:
Refer to 3-5-2 Axis Variables and Axes Group Variables for information on Axis Variables.
Classification Parameter name Setting
Axis Basic Set-
tings
Axis Number Axis numbers are automatically set in the order that the axes
are created.
Axis Use Select Used Axis.
Axis Type Select a servo axis or encoder axis.
Input Device/
Output Device
Specify the node address of the EtherCAT slave that is
assigned to the axis.
MyAxis1 Axis Axis
Enable
MyAxis1
MyAxis1On
MC_Power
MyAxis1OnStatus
MyAxis1OnBusy
MyAxis1OnError
MyAxis1OnErrorID
Status
Busy
Error
ErrorID
ServoOn
In-out variable Axis
Specify an axis
variable name.