Call – Yaskawa FSP Amplifier FlexWorks User Manual
Page 111
Advertising

Command Reference
111
CALL
G
ROUP
Program Flow Control
S
YNTAX
CALL <n>
O
P
. C
ODE
66
M
ODES
Program
D
ESCRIPTION
Calls a subroutine. The program flow is transferred to
the subroutine. The called subroutine must begin with a
LABEL command and end with a RETURN command.
S
YNTAX
A
RGUMENTS
n
The label number at which the subroutine
begins.
Serial 1 U
E
XAMPLE
LABEL 1
INPUT_CASE 3 2
CALL 2
END
LABEL 2
SLIDE 1000
DELAY 500
SLIDE 0
RETURN
E
XAMPLE
E
XPLANATION
The program checks if a certain input combination has
occurred. If the combination exists, it will call the
subroutine LABEL 2. A SLIDE motion will occur for 500
ms. Otherwise the CALL 2 code line is skipped. End of
program.
S
EE
A
LSO
LABEL, RETURN
Advertising
This manual is related to the following products: