6.9.4 DTCH
Input/output
Operand
Data type
Constant ( 0 - 33 )
EVNT
Byte
Interrupt separation (DTCH) instruction cancels the
association between interrupt event (EVNT) and interrupt
routine, and disables the interrupt event.
The interrupt event (EVNT) is connected to the interrupt
routine number (INT) by the “ATCH” instruction , and then
activates the interrupt event.
You can attach more than one interrupt events to an interrupt routine.However, an
interrupt event can not be attached to the multiple interrupt routines.When you
attach an interrupt event to an interrupt routine, the interrupt is automatically
enabled.When the DISI instruction is used, the interrupt events will be queued.
If you want to disable a single interrupt event, you can use the "DTCH" instruction.
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
147
Made with FlippingBook - Online magazine maker