3 . I n s t r u c t i o n S e t
M N050 03003E F or mo re infor ma tio n vi sit:
w w w. e a t o n . c o m
3-13
3.4 Interrupt Pointers
Mnemonic Function
Program steps
I
Interrupt program marker
1
ELC ELCB
ELCM
PB
PC/PA/PH
PV
PB
PH/PA
Description:
Interrupt programs begin with an interrupt pointer
(
I
□□□)
and end with the application command
to terminate the interrupt and return (IRET). A special numbering system is used based on the
interrupt type and input trigger method used.
Additional application instructions:
Interrupts must be used with application commands API 03 IRET, API 04 EI, API 05 DI.
Program Example:
Y1
EI
X1
I 001
DI
FEND
Y2
X2
IRET
Range for inserting
program interrupt
Program interrupt insert
into subroutine
Interrupt
Service
program
pointer
Instruction:
Operation:
EI
; Interrupt Enable
LD
X1
; Load A contact of X1
OUT Y1 ;
Energize
Y1
:
DI
; Interrupt Disable
:
FEND
; Program end
I001
; Insert interrupt point
LD
X2
; Load A contact of X2
OUT Y2 ;
Energize
Y2
:
IRET
; Interrupt return
Input Interrupts:
1.
ELC-PB and ELCB-PB have 4 input interrupts: (I001, X0), (I101, X1), (I201, X2) and (I301,
X3).
2.
ELC-PC/PA/PH have 6 input interrupts: (I001, X0), (I101, X1), (I201, X2), (I301, X3), (I401, X4)
and (I501, X5).
3.
In ELC-PC/PA V1.2 and above, when I401 (X4) works with X0 (C235, C251 or C253), the
value of (C243 or C255) will be stored in (D1180, D1181) and I501 (X5) works with X1 (C236),
the value of high-speed counter (C236) will be stored in (D1198, D1199)
4.
In ELC-PH V1.2 and above, when I401 (X4) works with X10 (C243 or C255), the value of
high-speed counter (C243 or C255) will be stored in (D1180, D1181) and I501 (X5) works with
X11 (C245), the value of high-speed counter (C243 or C255) will be stored in (D1198, D1199).
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...