Panasonic FP Series Programming Manual page 356

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Error flags
No.
IEC address
%MX0.900.11
R900B
%MX0.900.9
R9009
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 changes from FALSE to TRUE, the function is carried out.
LD
ST
IF
start
THEN
F42_BADD2(summand_1, summand_2, output_value);
END_IF;
Set
If
for an instant
 the calculated result is 0.
for an instant
 the result exceeds the range of 4-digit
BCD data (overflow).
Arithmetic instructions
355

Advertisement

Table of Contents
loading

Table of Contents