Program Execution Control; Interrupt Disable; Interrupt Enable - Mitsubishi MELSEC-q Programming Manual

Melsec q series; melsec l series
Hide thumbs Also See for MELSEC-q:
Table of Contents

Advertisement

5 MELSEC FUNCTIONS

5.8 Program Execution Control

5.8.1 Interrupt disable

If the interrupt factor of an interrupt program occurs, the execution of the interrupt program is disabled until
EI_M is executed.
Function definition

5.8.2 Interrupt enable

The interrupt disable status during DI_M execution is reset, and the execution of the interrupt program of the
interrupt pointer number enabled by IMASK is enabled.
Function definition
5 - 37
DI_M
BOOL DI_M (BOOL EN);
Argument Name
EN
Return Value
BOOL
Execution condition (always TRUE)
Example of use
(* The execution of the interrupt program is disabled until until EI_M is executed. *)
DI_M (TRUE);
Corresponding MELSEC command
DI (Interrupt disable)
EI_M
BOOL EI_M (BOOL EN);
Argument Name
EN
Return Value
BOOL
Execution condition (always TRUE)
Example of use
(* The interrupt disable status during DI_M execution is reset.
EI_M (TRUE);
Corresponding MELSEC command
EI (Interrupt enable)
IN/OUT
Execution condition
IN
(Only value TRUE indicating that the result is always
valid or normally ON device SM400 can be specified.)
IN/OUT
Execution condition
IN
(Only value TRUE indicating that the result is always
valid or normally ON device SM400 can be specified.)
Description
Description
Description
Description
*)
5 - 37

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents