EasyManua.ls Logo

YASKAWA XTRAWARE - V3.0 - Label

YASKAWA XTRAWARE - V3.0
263 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Command Reference
LABEL
Table explanation
Group Program Flow Control
Syntax LABEL <n>
Op. Code 88
Modes Program
Description 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.
Syntax
Arguments
n The label number.
Serial
1 U
Example 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
Example
Explanation
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.
See Also GO_TO, LOOP, END, CALL, RUN
Parameters Pn2CC - Auto start
XtraWare User Manual 133

Table of Contents