6.9.2 RETI instruction
Operand
Data type
Nothing
Nothing
RETI : When the Logic in front of the RETI instruction is 1,
PLC execution returns from interrupt.
Interrupt Events:
I1.2 Rising edge PLC_EVENT_INPUTP0 0 Highest priority
I1.4 Rising edge PLC_EVENT_INPUTP1 1 High priority
Timer interrupt 0 PLC_EVENT_TIMER0 10 Low priority
Timer interrupt 1 PLC_EVENT_TIMER1 11 Lowest priority
Interrupt use guide
Interrupt routine offers a quick response to a particular internal or external event.
Interrupt routine should be concise and efficient, so it can accelerate the speed of
execution.
Limit: DISI, ENI, HDEF, LSCR, and END instructions can not be used in the interrupt
routine.
Example:
143
Made with FlippingBook - Online magazine maker