Panasonic FP Series Programming Manual page 423

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Arithmetic instructions
POU header
In the POU header, all input and output variables are declared that are used for programming this
function.
In this example, the input variable input_value is declared. However, you can write a constant (e.g.
16#89 for 89°) directly at the input contact of the function.
Body
When the variable start is set to TRUE, the function is carried out. The input_value was initialized
with the value 16#89 (89°) in the POU header. The result is written to the ARRAY output_value.
Here in the first element of the ARRAY, the output_value = 16# (+ sign). In the second element,
16#57 represents the number before the decimal point, and 16#2899 comes after the decimal point
in the third element.
LD
ST
IF
start
THEN
F302_BTAN(input_value, output_value);
END_IF;
422

Advertisement

Table of Contents
loading

Table of Contents