Panasonic FP Series Programming Manual page 444

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.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
When the variable start is set to TRUE, the function is carried out. It adds the corresponding
positive offset value = 2 to the positive input value = 18. The constants 5 (negative offset) and 2
(positive offset) are assigned to inputs s1 and s2 respectively. However, you can declare variables
in the POU header and write them in the function in the body at the inputs.
LD
ST
IF
start
THEN
F290_DZONE( s1_NegBias:= 5,
s2_PosBias:= 2,
s3_In:= input_value,
d=> output_value);
END_IF;
Relay
DWL
DSV
-
DWY DWR
DWL
DSV
Set
for an instant
for an instant
(*5=neg. offset, 2=pos. offset *)
T/C
Register
DEV
DDT
DLD
DFL
DEV
DDT
DLD
DFL
If
 the calculation results in an overflow or
an underflow of output d.
 the input value s3 is 0.
Arithmetic instructions
Constant
dec. or hex.
-
443

Advertisement

Table of Contents
loading

Table of Contents