EasyManua.ls Logo

Panasonic FP Series - Page 616

Panasonic FP Series
1345 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Comparison instructions
615
Part III FP Instructions
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:= input_value , s2_Min:= -10.0 , s3_Max:= 10.0 );
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;

Table of Contents

Other manuals for Panasonic FP Series

Related product manuals