5. HOW TO USE THE PROGRAM
5 - 15
(c) Input/output commands (OUTON/OUTOF) and trip point commands (TRIP/TRIPI)
POINT
Using [Pr. PT23] to [Pr. PT25], you can set the time until OUT1 (Program output
1) to OUT3 (Program output 3) are switched off. The commands are switched off
under the following conditions.
The commands are switched off by the OUTOF command.
The commands are switched off by a program stop.
The "TRIP" and "TRIPI" commands have the following restrictions.
The "MOV" or "MOVA" command cannot be used in combination with the
"TRIPI" command.
The "MOVI" or "MOVIA" command cannot be used in combination with the
"TRIP" command.
The "TRIP" and "TRIPI" commands do not execute the next step until the
servo motor passes the set address or travel distance. Set the commands
within the travel command range.
Whether the servo motor has passed the set address or travel distance is
determined by checking the actual position (for each command). It is also
determined by checking both edges of the address increasing/decreasing
directions.
1) Program example 1
OUT1 (Program output 1) is switched on upon a program execution. When the program ends,
OUT1 (Program output 1) is switched off.
Command Description
SPN (1000) Servo motor speed 1000 [r/min]
STA (200) Acceleration time constant 200 [ms]
STB (300) Deceleration time constant 300 [ms]
MOV (500) Absolute value travel command 500 [×10
STM
μm]
OUTON (1) Switch on OUT1 (Program output 1). a)
TIM (100) Dwell 100 [ms]
MOV (250) Absolute value travel command 250 [×10
STM
μm]
TIM (50) Dwell 50 [ms]
STOP Program stop b)
Servo motor
speed
OUT1
(Program output 1)
ON
OFF
Dwell
(100 ms)
Dwell
(50 ms)
a)
b)
Reverse rotation
0 r/min
Forward rotation