6-13
6 Motion Control Programming
NJ/NX-series CPU Unit Motion Control Userās Manual (W507)
6-4 Execution and Status of Motion Control Instructions
6
6-4-2 Execution Timing Charts
*3 If the condition expressions or set values for ST Structure instructions do not match, the instructions in that
statement are not executed. For details, refer to the NJ/NX-series Motion Control Instructions Reference Man-
ual (Cat. No. W508).
*4 Refer to the NJ/NX-series Motion Control Instructions Reference Manual (Cat. No. W508) for an output vari-
able timing chart.
Precautions for Correct UsePrecautions for Correct Use
⢠Confirm that EtherCAT process data communications are active and normal before you exe-
cute motion control instructions.
Refer to 10-2-1 Monitoring EtherCAT Communications and Turning ON Servos for details.
⢠Write the user program so that Execute is FALSE during the first period in which the instruction
is executed.
The motion control instructions in the MC Function Module are function blocks that are unconditionally
executed. This section calls instructions that are executed according to the Execute input variable "exe-
cute-type instructions" and instructions that are executed according to the Enable input variable
"enable-type instructions."
Precautions for Correct UsePrecautions for Correct Use
The timing in the timing charts that are given in this manual may not necessarily be the same as
the timing displayed for data traces on the Sysmac Studio. Refer to the NJ/NX-series CPU Unit
Software Userās Manual (Cat. No. W501) for details on data tracing.
6-4-2 Execution Timing Charts
Execution condition Description
Execute variable These motion control instructions are executed when the input variable Execute to the
instruction changes to TRUE. These instructions will continue execution until one of the
following status occurs.
⢠The specified operation is completed.
⢠Another motion control instruction is executed and interrupts operation.
⢠The instruction is restarted when Execute changes from FALSE to TRUE again.
Values for the other input variables are input when Execute changes to TRUE.
Enable variable These motion control instructions are executed every period while the input variable
Enable to the motion control instruction is TRUE. As long as Enable is TRUE, the other
input variables are also input every period. However, MC_MoveJog input variables
Velocity, Acceleration, and Deceleration are an exception to this rule. The values when
PositiveEnable or NegativeEnable changes to TRUE are used for these input variables.