Panasonic FP Series Programming Manual page 616

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

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.
Body
The constants -10.0 and 10.0 are assigned to the inputs s2_Min (lower limit) and s3_Max (upper
limit). You may, however, declare two variables in the POU header instead. When the variable
start is set to TRUE, the function is carried out. The values of special internal relays R900A (>
flag), R900B (= flag) and R900C (< flag) are transferred to the variables larger_area, middle_area
and smaller_area. Since the input_value = 3.111 is within the range of the limits set (-10.0 to
10.0), the = relay and hence the variable middle_area are set to TRUE.
LD
ST
When programming with structured text, enter the following:
input_value:=3.111;
IF
start
THEN
F346_FWIN( s1_In:=
END_IF;(* -10.0 =lower limit, 10.0 upper limit *)
IF
R900A
THEN
larger_area:=TRUE;
END_IF;
IF
R900B
THEN
middle_area:=TRUE;
END_IF;
IF
R900C
THEN
smaller_area:=TRUE;
END_IF;
input_value
, s2_Min:=
Comparison instructions
-10.0
, s3_Max:=
10.0
);
615

Advertisement

Table of Contents
loading

Table of Contents