32
3.6 Program making and transfer to the CPU Unit
Create the instructions to perform linear interpolation of two axes.
The following instructions are created. To do so, we will use axis variables, an axes group, and
motion control instructions.
Rung 0: Axes Servo ON
Rung 1: Axes homing to zero position preset
Rung 2: Axis group enable
Rung 3: Absolute position assigned to input variables
Rung 4: Movement cycle (50mm>2sec>50mm>2sec repeating)
Please refer to A-2 Appendix for the equivalent Structured Text program example
Refer to the NJ/NX-series Startup Guide for CPU Units (Cat. No. W513) for details on how to create ladder
diagrams.
Precautions for Correct Use
The sample programming that is provided in this Guide includes only the programming
that is required to operate the Servomotors. When programming actual applications,
also program EtherCAT communications, device interlocks, I/O with other devices, and
other control procedures.