32-Bit Data Bit Zone 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.6 32-bit data bit zone control

The output value is zone-controlled with a bias value added to the specified BIN 32-bit data.
Function definition
5- 104
DZONE_MD
BOOL DZONE_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 S3 (input value) < 0
......................S3 (input value) + S1 (negative bias value)
When S3 (input value) = 0 ...............................................0
When S3 (input value) > 0
....................... S3 (input value) + S1 (positive bias value)
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the bias value specified in iData1 or
(* iData2 is added to the input value specified in iData3, and the result is stored *)
(* into Result.
DZONE_MD (X0, dData1, dData2, dData3, Result);
Corresponding MELSEC command
DZONE (32-bit zone control)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Negative bias value added to input value (BIN 32-bit
IN
data)
IN
Positive bias value added to input value (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- 104

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents