3. Instruction Set

API

03

Mnemonic

Function

 

 

IRET

Interrupt Return

 

 

Controllers

ES2/EX2

SS2

SA2

SX2

SE

 

OP

 

 

Descriptions

 

 

 

 

 

Program Steps

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

No contact to drive the instruction is required.

 

 

 

 

IRET: 1 step

 

 

N/A

IRET ends the processing of an interrupt subroutine and

 

 

 

 

 

 

 

 

returns execution back to the main program

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

16-bit

 

 

 

 

32-bit

 

 

 

 

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

 

SA2

SX2

ES2/EX2

SS2

 

SA2

SX2

 

 

SE

 

SE

 

SE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

API

04

Mnemonic

Function

 

 

EI

Enable Interrupt

 

 

Controllers

ES2/EX2

SS2

SA2

SX2

 

 

SE

 

OP

Descriptions

 

 

 

No contact to drive the instruction is required.

 

Enables Interrupts, explanation of this instruction also

N/A

coincides with the explanation of the DI (disable interrupts

 

instruction), see the DI instruction for more information.

 

M1050~M1059

Program Steps

EI: 1 step

 

PULSE

 

 

16-bit

 

 

 

32-bit

 

 

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

 

SA2

SX2

ES2/EX2

SS2

 

SA2

SX2

SE

 

SE

 

SE

 

 

 

 

 

 

 

 

 

 

 

API

05

Mnemonic

Function

 

 

DI

Disable Interrupt

 

 

Controllers

ES2/EX2 SS2 SA2SE SX2

OP

 

 

Descriptions

 

 

 

 

 

Program Steps

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

No contact to drive the instruction is required.

 

 

 

 

DI: 1 step

 

 

 

DI instruction disables PLC to accept interrupts.

 

 

 

 

 

 

 

 

 

 

N/A

When the special auxiliary relay M1050 ~ M1059 for

 

 

 

 

 

 

 

 

disabling interruption is driven, the corresponding

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

interruption request will not be executed even in the range

 

 

 

 

 

 

 

 

allowed for interruptions.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

 

16-bit

 

 

 

 

32-bit

 

 

 

 

ES2/EX2

SS2

SA2

SX2

ES2/EX2

 

SS2

 

SA2

SX2

ES2/EX2

SS2

 

SA2

SX2

 

 

SE

 

 

SE

 

SE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Explanations:

1.EI instruction allows interrupting subroutine in the program, e.g. external interruption, timer interruption, and high-speed counter interruption.

2.In the program, interruption subroutines are enabled between EI and DI instructions. If there is no section requires to be interrupt-disabled, DI instruction can be omitted.

3 - 4 9

Page 165
Image 165
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE Iret, Interrupt Return, Mnemonic Function Enable Interrupt Controllers, Descriptions