7-7
7 Manual Operation
NJ/NX-series CPU Unit Motion Control Userās Manual (W507)
7-3 Jogging
7
7-3-4 Programming Example
The following programming example jogs an axis named Axis1 in the positive direction for the value of
bit A and in the negative direction for the value of bit B.
In this example, Velocity (Target Velocity) is Velo1, Acceleration is Acce1, and Deceleration is Dece1.
Set the values for each variable in the user program in advance to operate the axis with the example
input variable settings.
⢠Velo1 = 30,000
⢠Acce1 = 3,000,000
⢠Dece1 = 3,000,000
For details on the MC_MoveJog (Jog) instruction, refer to the NJ/NX-series Motion Control Instructions
Reference Manual (Cat. No. W508).
7-3-4 Programming Example
PositiveEnable
ErrorID
MC_MoveJog_instance
Error
MC_MoveJog
Axis Axis
Busy
CommandAborted
NegativeEnable
Velocity
Acceleration
Deceleration
A
B
Axis1
Velo1
Acce1
Dece1