I cannot get an interrupt to become active.
I can see from Display > Digital Inputs that the trigger Input 16 is really coming on... and it really is OFF in the beginning.
I use the simplest textbook example.
Code
DEF InterruptTest ( )
INTERRUPT DECL 10 WHEN $IN[16]==TRUE DO UP1()
INTERRUPT ON
BAS (#INITMOV,0 )
PTP xHome
LIN CardboardSearchStart
LIN CardboardSearchStop
PTP xHome
END
;------------------------
DEF UP1()
PTP $POS_INT
;Turn vacuum on
LIN CardboardSearchStart
END
Display More
I test it in T1 mode... and the program acts like the interrupt doesn't exist... not stopping, no message...
What is a real copy-paste sample KRL code that definitely works.