Panasonic FP Series Programming Manual page 439

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Arithmetic instructions
-
DWY DWR
d
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
%MX0.900.11
R900B
%MX0.900.9
R9009
In this example, the same POU header is used for all programming languages. For an example
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.
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 3.0 and 10.0 are assigned to the inputs s1_Min (lower limit of the deadband) and
s2_Max (upper limit of the deadband). However, you can declare two variables in the POU header
and write them in the function in the body at the inputs. When the variable start is set to TRUE, the
function is carried out. Since the input_value = 12.0 is larger than the value of the upper limit of
the deadband at s2_Max, the output_value = 12.0 -10.0 = 2.0.
LD
438
DWL
DSV
DEV
DDT
DLD
Set
If
permanently
 the values at inputs s1_Min, s2_Max,
for an instant
to TRUE
 the result is 0.
for an instant
 the result causes an overflow.
DFL
-
and s3_In are not REAL numbers or the
value at s1_Min > s2_Max.

Advertisement

Table of Contents
loading

Table of Contents