xLadder user manual-V2.0.0.6

6.9.3 ATCH

Input/output

Operand

Data type

INT

Constant 0 - 127

Byte

EVNT

Constant 0 - 33

Byte

ATCH: 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

144

Made with FlippingBook - Online magazine maker