Panasonic FP Series Programming Manual page 408

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Data types
Variable
Data type
WORD
s1
WORD
s2
WORD
d
Operands
For
s1, s2
d
Error flags
No.
IEC address
%MX0.900.11
R900B
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.
Body
When the variable start is set to TRUE, the function is carried out.
LD
ST
IF
start
THEN
F52_BDIV(dividend, divisor, output_value);
END_IF;
Function
dividend, 16-bit area for BCD data or 4-digit BCD equivalent
constant
divisor, 16-bit area for BCD data or 4-digit BCD equivalent constant
quotient, 16-bit area for BCD data (remainder stored in special data
register DT9015/DT90015)
Relay
WX
WY
WR
WL
-
WY
WR
WL
Set
for an instant
T/C
Register
SV
EV
DT
LD
SV
EV
DT
LD
If
 the result calculated is 0.
Arithmetic instructions
Constant
FL
dec. or hex.
FL
-
407

Advertisement

Table of Contents
loading

Table of Contents