5- 101 5- 101
5 MELSEC FUNCTIONS
5.19.3 Dead band control BAND_MD
The output value is controlled depending on whether the specified BIN 16-bit data is within the upper/lower limit
range of the specified dead band or not.
Function definition
BOOL BAND_MD (BOOL EN, ANY16 S1, ANY16 S2, ANY16 S3, ANY16 D);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when the
result is TRUE)
S1
IN
Lower limit value data of dead band (BIN 16-bit data)
S2
IN
Upper limit value data of dead band (BIN 16-bit data)
S3
IN
Input value (BIN 16-bit data)
D
OUT
Output value (BIN 16-bit data)
Remarks: The output value is controlled as described below.
When S1 (lower limit value) > S3 (input value)
............................ S3 (input value) - S1 (lower limit value) D (output value)
When S2 (upper limit value) < S3 (input value)
............................S3 (input value) - S2 (upper limit value) D (output value)
When S1 (lower limit value)
≤
S3 (input value)
≤
S2 (upper limit value)
..........................................................................................0 D (output value)
Return Value
Description
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.
*)
BAND_MD (X0, iData1, iData2, iData3, Result);
Corresponding MELSEC command
BAND (16-bit dead band control)
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: ......