5 - 37 5 - 37
5 MELSEC FUNCTIONS
5.8 Program Execution Control
5.8.1 Interrupt disable DI_M
If the interrupt factor of an interrupt program occurs, the execution of the interrupt program is disabled until
EI_M is executed.
Function definition
BOOL DI_M (BOOL EN);
Argument Name
IN/OUT
Description
EN IN
Execution condition
(Only value TRUE indicating that the result is always
valid or normally ON device SM400 can be specified.)
Return Value
Description
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)
5.8.2 Interrupt enable EI_M
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
BOOL EI_M (BOOL EN);
Argument Name
IN/OUT
Description
EN IN
Execution condition
(Only value TRUE indicating that the result is always
valid or normally ON device SM400 can be specified.)
Return Value
Description
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)
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......