beautypg.com

Wait_stop – Yaskawa FSP Amplifier FlexWorks User Manual

Page 189

background image

Command Reference

189

E

XAMPLE

E

XPLANATION

Only when Input 2 is set ON does the first movement
commence. The second WAIT command pauses the
next movement for 10000 ms (10 seconds) or until
the input is set OFF.

S

EE

A

LSO

INPUT_CASE, IF_INPUT

WAIT_STOP

G

ROUP

Wait

S

YNTAX

WAIT_STOP

O

P

. C

ODE

148

M

ODES

Program, Sequential

D

ESCRIPTION

Halts program execution until the theoretical motion
is over or until the time limit is exceeded, before
proceeding to the next command.

S

YNTAX

A

RGUMENTS

n

The time period to wait.
[ms]
Setting this value to –1 delays the program for
an infinite period of time, i.e., until the motion
ends.

Serial 4 V

E

XAMPLE

LABEL 1
MOVE 4096 –800

SET_OUTPUT 1 ON

WAIT_STOP -1
SET_OUTPUT 1 OFF
END

E

XAMPLE

E

XPLANATION

Motor moves 4096uu in the positive direction.
Immediately after the motion begins, output 1 is set
to ON. The WAIT_STOP command delays execution of
the next command until the theoretical motion is over
(800 ms). Then output 1 is set to OFF.

N

OTE

The MOVE command followed by WAIT_STOP

performs the same operation as the MOVE_D
command, but enables the execution of commands
while the motion is in progress.

S

EE

A

LSO

MOVE

This manual is related to the following products: