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-39
API Mnemonic
Function
03
IRET Interrupt
Return
OP Range
Program
Steps
N/A
IRET ends the processing of an interrupt subroutine and returns
execution back to the main program
IRET: 1 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P 32 16 P 32 16
P
API Mnemonic
Function
04
EI Enable
Interrupt
OP Range
Program
Steps
N/A
Enables Interrupts. This instruction is used with the DI (disable
interrupts) instruction. See the DI instruction for more
information.
M1050~M1059, M1299
EI: 1 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P 32 16 P 32 16
P
API Mnemonic
Function
05
DI Disable
Interrupt
OP Range
Program
Steps
N/A
EI instruction enables the ELC to accept interrupts; like Time
interrupts or High-speed counter interrupts.
Even in the allowed range of an interrupt, when interrupting
special M-bits M1050 to M1059, M1299, the interrupt request
will not be activated.
DI: 1 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P 32 16 P 32 16
P
Description:
1.
Interrupt subroutines must be placed after the FEND instruction.
2.
Other interrupts are not allowed during execution of a current interrupt routine.
3.
Priority is given to the interrupt occurring first. If interrupts occur simultaneously, the interrupt
with the lower pointer number will be given the higher priority.
4.
Any interrupt request occurring between DI and EI instructions will not be executed
immediately. The interrupt will be saved and executed when the next EI instruction occurs.
5.
Care should be used when using external interrupts and using the same inputs for high speed
counter inputs.
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...