beautypg.com

Return – Yaskawa FSP Amplifier FlexWorks User Manual

Page 167

background image

Command Reference

167

RETURN

G

ROUP

Program Flow Control

S

YNTAX

RETURN

O

P

. C

ODE

77

M

ODES

Program

D

ESCRIPTION

Returns from a subroutine to the command following the

CALL command that called the subroutine.

E

XAMPLE

LABEL 1
CONTROL ON
DELAY 1000

JERK_TIME 700
MOVE_D 7200 1
CALL 2

SET_OUTPUT 2 OFF
CONTROL OFF
END

LABEL 2
SET_OUTPUT 2 ON
JERK_TIME 350

MOVE_D -7200 -1
RETURN

E

XAMPLE

E

XPLANATION

Servo enabled, jerk time (See section 12.2.3.) is set to
700 ms, MOVE command executes, and subroutine
LABEL 2 is called.
Within the subroutine: output 2 is set ON; jerk time is
set to 350 ms; movement in the negative direction;
return to the main program; command that follows the

CALL code line is executed: output 2 is set OFF, servo
disabled, end of program.

S

EE

A

LSO

LABEL, CALL

This manual is related to the following products: