32-Bit Data Dead Band Control - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5 MELSEC FUNCTIONS

5.19.4 32-bit data dead band control

The output value is controlled depending on whether the specified BIN 32-bit data is within the upper/lower limit
range of the specified dead band or not.
Function definition
5- 102
BOOL DBAND_MD (BOOL EN, ANY32 S1, ANY32 S2, ANY32 S3, ANY32 D);
Argument Name
EN
S1
S2
S3
D
Remarks: The output value is controlled as described below.
When S1 (lower limit value) > S3 (input value)
............................ S3 (input value) - S1 (lower limit value)
When S2 (upper limit value) < S3 (input value)
............................S3 (input value) - S2 (upper limit value)
When S1 (lower limit value) ≤ S3 (input value) ≤ S2 (upper limit value)
..........................................................................................0
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the output value is stored into Result *)
(* depending on whether or not the input value specified in iData3 is within the
(* upper/lower limit range of the dead band specified in iData1 and iData2.
DBAND_MD (X0, dData1, dData2, dData3, Result);
Corresponding MELSEC command
DBAND (32-bit dead band control)
DBAND_MD
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Lower limit value data of dead band (BIN 32-bit data)
IN
Upper limit value data of dead band (BIN 32-bit data)
IN
Input value (BIN 32-bit data)
OUT
Output value (BIN 32-bit data)
For the usable data type, refer to "3.2.2
About ANY type".
Description
Description
D (output value)
D (output value)
D (output value)
*)
*)
5- 102

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents