5 MELSEC FUNCTIONS
5.5.19 32-bit BIN increment
The specified BIN 32-bit data is incremented (by 1).
Function definition
5.5.20 32-bit BIN decrement
The specified BIN 32-bit data is decremented (by 1).
Function definition
5 - 22
DINC_M
BOOL DINC_M (BOOL EN, ANY32 D);
Argument Name
EN
D
Return Value
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)
DDEC_M
BOOL DDEC_M (BOOL EN, ANY32 D);
Argument Name
EN
D
Return Value
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)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN/OUT
Increment data, incrementing result (BIN 32-bit data)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Decrement data, decrementing result (BIN 32-bit data)
IN/OUT
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
Description
Description
*)
*)
*)
*)
5 - 22