Label – Yaskawa FSP Amplifier FlexWorks User Manual
Page 149
Advertising

Command Reference
149
LABEL
G
ROUP
Program Flow Control
S
YNTAX
LABEL <n>
O
P
. C
ODE
88
M
ODES
Program
D
ESCRIPTION
Defines the beginning of a program or subroutine. May
be used to mark the beginning of a code line in order to
use the GO_TO, CALL or LOOP commands or for program
auto-start after power-up.
S
YNTAX
A
RGUMENTS
n
The label number.
Serial 1 U
E
XAMPLE
LABEL 1
CONTROL ON
DELAY 1000
GO_D 10000 –1
IF_INPUT 1 = 1 THEN CALL 2
CONTROL OFF
END
LABEL 2
SET_OUTPUT 1 ON
RETURN
E
XAMPLE
E
XPLANATION
Servo enabled, motor moves to position 10000, if INPUT
1 is true, calls LABEL 2 subroutine. The subroutine sets
OUTPUT 1 as true.
If INPUT 1 is false, servo is disabled, program ends.
S
EE
A
LSO
GO_TO, LOOP, END, CALL, RUN
Parameters Pn2CC - Auto start
Advertising
This manual is related to the following products: