13 - 43
13. POSITIONING MODE
2) Program example 2
If the travel distance of the "ITP" command is less than the travel distance necessary for deceleration,
the actual deceleration time constant becomes less than the set value of the "STB" command.
Program
Description
SPN(500)
STA(200)
STB(300)
MOV(1000)
Speed (Motor speed)
Acceleration time constant
Deceleration time constant
Absolute move command
500[r/min]
200[ms]
300[ms]
1000[×10
STM
μm]
SYNC(1)
Step is suspended until program input (PI1) turns ON.
a)
b)
ITP(50)
STOP
Interrupt positioning command
Program end
50[×10
STM
μm]
0r/min
Servo motor
speed
Program input 1
(PI1)
ON
OFF
P1
Waiting for PI1 to be turned
ON by SYNC (1) (a)).
P1 + b) (50 10
STM
m)
Forward
rotation
(f) External pulse counter (COUNT)
When the number of input pulses of the manual pulse generator becomes greater than the value set
with the "COUNT" command, the next step is started. Set "0" to erase the accumulated input pulses.
Program
Description
COUNT(500) The next step is held until the number of input pulses of the manual pulse generator reaches 500 [pulses]. a)
SPN(500)
STA(200)
STB(300)
MOV(1000)
TRIP(500)
COUNT(0)
STOP
Speed (Motor speed)
Acceleration time constant
Deceleration time constant
Absolute move command
Trip point
Cumulative input pulses are cleared.
Program end
500[r/min]
200[ms]
300[ms]
1000[×10
STM
μm]
500[×10
STM
μm]
b)
c)
b) 500[ 10
STM
m]
0r/min
ON
OFF
c) Accumulated input pulses are erased.
a) 500[pulse]
Manual pulse generator
Cumulative input pulses