Increment; Decrement - 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.5.17 Increment

The specified BIN 16-bit data is incremented (by 1).
Function definition

5.5.18 Decrement

The specified BIN 16-bit data is decremented (by 1).
Function definition
5 - 21
INC_M
BOOL INC_M (BOOL EN, ANY16 D);
Argument Name
EN
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the data stored in D0 is incremented by 1. *)
INC_M (X0, D0);
Corresponding MELSEC command
INC (BIN 16-bit increment)
DEC_M
BOOL DEC_M (BOOL EN, ANY16 D);
Argument Name
EN
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the data stored in D0 is decremented by 1. *)
DEC_M (X0, D0);
Corresponding MELSEC command
DEC (BIN 16-bit decrement)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN/OUT
Increment data, incrementing result (BIN 16-bit data)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Decrement data, decrementing result (BIN 16-bit data)
IN/OUT
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
Description
Description
5 - 21

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents