17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. Instruction Set<br />

API Mnemonic Function<br />

03 IRET Interrupt Return<br />

Controllers<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

SE<br />

<strong>SX2</strong><br />

OP Descriptions Program Steps<br />

N/A<br />

No contact to drive the instruction is required.<br />

IRET ends the processing of an interrupt subroutine and<br />

returns execution back to the main program<br />

IRET: 1 step<br />

PULSE 16-bit 32-bit<br />

<strong>SA2</strong><br />

<strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong><br />

SE<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

SE<br />

<strong>SA2</strong><br />

SE<br />

<strong>SX2</strong><br />

API Mnemonic Function<br />

04 EI Enable Interrupt<br />

Controllers<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

SE<br />

<strong>SX2</strong><br />

OP Descriptions Program Steps<br />

No contact to drive the instruction is required.<br />

EI: 1 step<br />

N/A<br />

Enables Interrupts, explanation of this instruction also<br />

coincides with the explanation of the DI (disable interrupts<br />

instruction), see the DI instruction for more information.<br />

M1050~M1059<br />

PULSE 16-bit 32-bit<br />

<strong>SA2</strong><br />

<strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong><br />

SE<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

SE<br />

<strong>SA2</strong><br />

SE<br />

<strong>SX2</strong><br />

API Mnemonic Function<br />

05 DI Disable Interrupt<br />

Controllers<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

SE<br />

<strong>SX2</strong><br />

OP Descriptions Program Steps<br />

No contact to drive the instruction is required.<br />

DI: 1 step<br />

DI instruction disables PLC to accept interrupts.<br />

N/A<br />

When the special auxiliary relay M1050 ~ M1059 for<br />

disabling interruption is driven, the corresponding<br />

interruption request will not be executed even in the range<br />

allowed for interruptions.<br />

PULSE 16-bit 32-bit<br />

<strong>SA2</strong><br />

<strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong><br />

SE<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

SE<br />

<strong>SA2</strong><br />

SE<br />

<strong>SX2</strong><br />

Explanations:<br />

1. EI instruction allows interrupting subroutine in the program, e.g. external interruption, timer<br />

interruption, and high-speed counter interruption.<br />

2. In the program, interruption subroutines are enabled between EI and DI instructions. If there<br />

is no section requires to be interrupt-disabled, DI instruction can be omitted.<br />

3-49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!