5 - 22 5 - 22
5 MELSEC FUNCTIONS
5.5.19 32-bit BIN increment DINC_M
The specified BIN 32-bit data is incremented (by 1).
Function definition
BOOL DINC_M (BOOL EN, ANY32 D);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when the
result is TRUE)
D
IN/OUT
Increment data, incrementing result (BIN 32-bit data)
Return Value
Description
BOOL Execution
condition
Example of use
(* When execution condition X0 turns ON, the data stored in dwData1 is
*)
(* incremented by 1.
*)
DINC_M (X0, dwData1);
Corresponding MELSEC command
DINC (BIN 32-bit increment)
5.5.20 32-bit BIN decrement DDEC_M
The specified BIN 32-bit data is decremented (by 1).
Function definition
BOOL DDEC_M (BOOL EN, ANY32 D);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when the
result is TRUE)
D IN/OUT
Decrement data, decrementing result (BIN 32-bit data)
Return Value
Description
BOOL Execution
condition
Example of use
(* When execution condition X0 turns ON, the data stored in dwData1 is
*)
(* decremented by 1.
*)
DDEC_M (X0, dwData1);
Corresponding MELSEC command
DDEC (BIN 32-bit decrement)
For the usable data type, refer to "3.2.2
About ANY type".
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......