6F3B0250

7. Instructions

FUN 141

DI

Disable interrupt

Expression

Input -[ DI ]- Output

Function

When the input is ON, this instruction disables the execution of user designated interrupt operation, i.e. timer interrupt program and I/O interrupt programs.

Execution condition

Input

 

Operation

Output

OFF

No execution

 

OFF

ON

Execution

 

ON

Operand

No operand is required.

Example

In the above example, the interrupt is disabled when R000 is ON, and it is enabled when R000 is OFF.

Note

·Refer to the EI instruction (FUN 140).

·If an interrupt factor is occurred during the interrupt disabled state, the interrupt is kept waiting and it will be executed just after the EI instruction is executed.

·The DI instruction can be used only in the main program.

Basic Hardware and Function 227

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

Page 229
Image 229
Toshiba 6F3B0250, PROSEC T1 T1S user manual FUN Disable interrupt