Selection Instructions
881
Part III FP Instructions
For Relay T/C Register Constant
s1_Min, s2_Max,
s3_In
DWX DWY DWR DWL DSV DEV DDT DLD DFL dec. or hex.
d - DWY DWR DWL DSV DEV DDT DLD DFL -
No. IEC address Set If
R9007 %MX0.900.7 permanently
R9008 %MX0.900.8 for an instant
the value at s1_Min > s2_Max
R900B %MX0.900.11 permanently the result of processing is between the
upper and lower limits.
In this example, the input variable input_value is declared. However, you can write a constant
directly at the input contact of the function instead.
Operands
Error flags
Example
In this example, the same POU header is used for all programming languages. For an example
using IL (instruction list), please refer to the online help.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
When the variable start is set to TRUE, the function is carried out. The constant -123456 (lower
limit) and 654321 (upper limit) are assigned to inputs s1 and s2. However, you can declare
variables in the POU header and write them in the function in the body at the inputs.
LD
ST
When programming with structured text, enter the following:
IF start THEN
F286_DLIMT( 123456, 654321, input_value, output_value);
END_IF; (* 123456= lower limit, 654321=upper limit *)