beautypg.com

Yaskawa LEGEND-MC User Manual

Page 142

background image

132

LEGEND-MC User’s Manual

RELATED COMMANDS:

EXAMPLES:

"RI" Return

from

Interrupt

#ININT

Interrupt Subroutine Special label

"AI"

Trippoint for input

#A

Program A

II 7,,,64

Specify interrupt on input #7 going high

(0100 0000).

JG 5000

Specify jog speed

BG

Begin motion

#LOOP; JP #LOOP

Loop

EN

End Program

#ININT

Interrupt subroutine

ST; MG "INTERRUPT"

Stop X, print message

AM

After stopped

#CLEAR; JP#CLEAR,@IN[1]=0

Check for interrupt clear

BG

Begin motion

RI

Return to main program