beautypg.com

Applicable program areas flags function, Precautions, Sample program – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 342: 2 instructions

background image

2 Instructions

2-306

CP1E CPU Unit Instructions Reference Manual(W483)

DI

Applicable Program Areas

Flags

Function

DI(693) is executed from the main program to temporarily disable all interrupt tasks (I/O interrupts,
scheduled interrupts).

Precautions

All interrupt tasks will remain disabled until EI(694) is executed.

DI(693) cannot be executed from an interrupt task.

Sample program

Instruction

Mnemonic

Variations

Function

code

Function

DISABLE INTERRUPTS

DI

@DI

693

Disables execution of all interrupt tasks except the
power OFF interrupt.

Symbol

DI

Area

Step program areas

Subroutines

Interrupt tasks

Usage

OK

OK

Not allowed

Name

Label

Operation

Error Flag

P_ER

ON if DI(693) is executed from an interrupt task.

OFF in all other cases.

When CIO 0.00 is ON in the following example,
DI(693) disables all interrupt tasks.

DI(693)

Disables execution of
all interrupt tasks

0.00

DI

This manual is related to the following products: