Example - input interrupt – Yaskawa SMC–4000 User Manual
Page 355
Advertising
345
SMC–4000 User Manual
Example - Input Interrupt
Instruction
Interpretation
#A
Label #A
II 1
Enable input 1 for interrupt function
JG 30000,-20000
Set speeds on A and B axes
BG AB
Begin motion on A and B axes
#B
Label #B
TP AB
Report A and B axes positions
WI 1000
Wait 1000 milliseconds
JP #B
Jump to #B
EN
End of program
#INNT
Interrupt subroutine
MG “Interrupt has occured”
Displays the message
ST AB
Stops motion on A and B axes
#LOOP;JP#LOOP,@IN[1]=0
Loop until Interrupt cleared
JG 15000,10000
Specify new speeds
WT300
Wait 300 milliseconds
BG AB
Begin motion on A and B axes
RI
Return from Interrupt subroutine
Advertising