Int_return – Yaskawa FSP Amplifier FlexWorks User Manual

Page 146

Advertising
background image

Command Reference

146

INT_RETURN

G

ROUP

Interrupt

S

YNTAX

INT_RETURN <Label>

O

P

. C

ODE

140

M

ODES

Program

D

ESCRIPTION

This command indicates the end of an interrupt

service routine, and specifies how the program should
continue. See 4.11.7.3, INT_RETURN.

S

YNTAX

A

RGUMENTS

Label

Specifies the label number from which
the program must continue running once
the interrupt service routine has been

completed.
If set to –1, the program will continue
running from the point at which it was
interrupted.

Serial 1 U

E

XAMPLE

MOVE_D 655360 –1
SET_OUTPUT 1 OFF
END
INT Target_velocity >= 400
SET_OUTPUT 1 ON
INT_RETURN –1

E

XAMPLE

E

XPLANATION

A motor movement to position 655360 is started.
When, during the motion, the value of the variable
Target_velocity reaches or exceeds 400, Output 1 will
be set ON. The program will then continue from the
point at which it was interrupted: once the motor
motion has finished, Output 1 will be set OFF.

S

EE

A

LSO

EXT_INT, INT
Variables: Interrupt_mask, Interrupt_request,
Interrupt_pending

Advertising
This manual is related to the following products: