Panasonic FP Series Programming Manual page 410

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Data types
Variable
Data type
DWORD
s1
DWORD
s2
DWORD
d
Operands
For
DWX DWY
s1, s2, s3
d
Error flags
No.
IEC address
%MX0.900.11
R900B
In this example the function has been programmed in ladder diagram (LD) and structured text
Example
(ST).The same POU header is used for all programming languages.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
When the variable start is set to TRUE, the function is carried out.
LD
ST
IF
start
THEN
F53_DBDIV(dividend, divisor, output_value);
END_IF;
Function
dividend, 32-bit area for BCD data or 8-digit BCD equivalent
constant
divisor, 32-bit area for BCD data or 8-digit BCD equivalent
constant
quotient, 32-bit area for BCD data (remainder stored in
special data register DT9016 and DT9015/DT90016 and
DT90015)
Relay
DWR
DWL
DSV
-
DWY
DWR
DWL
DSV
Set
for an instant
T/C
Register
DEV
DDT
DLD
DFL
DEV
DDT
DLD
DFL
If
 the result calculated is 0.
Arithmetic instructions
Constant
dec. or hex.
-
409

Advertisement

Table of Contents
loading

Table of Contents