EasyManua.ls Logo

Panasonic FP Series

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...
Arithmetic instructions
418
Part III FP Instructions
In this example, the input variable input_value is declared. However, you can write a constant (e.g.
16#45 for 45°) directly at the input contact of the function.
Body
In the body, the value 90° is assigned to the variable input_value. When the variable start is set to
TRUE, the function F300_BSIN is carried out. It stores the result in the variable output_value. If
the input_value is between 181° and 359°, output_value has a minus sign. The function
WORD_TO_BOOL sets the variable input_181_to_359 to TRUE. With an input_value of 90° or
270°, the output_value is 1, which represents the value before the decimal point. If this is the
case, then WORD_TO_BOOL sets the value of the variable input_90_or_270 to TRUE.
LD
ST
input_value:=16#90;
IF start THEN
F300_BSIN( input_value, output_value );
END_IF;
input_181_to_359:=WORD_TO_BOOL(output_value[0]);
input_90_or_270:=WORD_TO_BOOL(output_value[1]);

Table of Contents

Other manuals for Panasonic FP Series

Related product manuals