Panasonic FP Series Programming Manual page 446

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Operands
For
DWX DWY DWR
s1, s2, s3
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 constant -1.23 is assigned to input s1 (negative offset) and the constant 5.55 is assigned to
input s2 (positive offset). 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 is negative (-10.0), the negative offset -1.23 is added to it.
The result here is: output_value = -11.23.
LD
Relay
DWL
DSV
-
DWY DWR
DWL
DSV
Set
permanently
for an instant
to TRUE
for an instant
T/C
Register
DEV
DDT
DLD
DFL
DEV
DDT
DLD
DFL
If
 the values at inputs s1, s2, and s3 are
not REAL numbers.
 the result is 0.
 the result causes an overflow.
Arithmetic instructions
Constant
dec. or hex.
-
445

Advertisement

Table of Contents
loading

Table of Contents