Panasonic FP-E Programming Manual page 995

Fp series
Table of Contents

Advertisement

F334
(FRINT)
P334
(PFRINT)
Outline
This instruction rounds off the decimal part of real number data.
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
"P334 (PFRINT)" is not available.
Program example
Trigger
R0
10
F334 FRINT, DT10, DT20
S
D
Operands
Relay
Operand
Operand
WX WY WR WL
S
A
A
D
N/A
A
Explanation of example
When the real number data "1234.567" is in DT10 and DT11, as shown below.
DT10:
(f1234.567)
DT11:
DT20:
(f1235.000)
DT21:
When the real number data "−1234.567" is in DT10 and DT11, as shown below.
DT10:
(f−1234.567)
DT11:
DT20:
(f−1235.000)
DT21:
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Floating point real number data rounding the first
decimal point off
Ladder Diagram
Ladder Diagram
S
Real number data (2 words) or lower 16-bit area of 32-bit data (source)
Lower 16-bit area of 32-bit data for storing converted data (destination)
Timer/Counter
SV
EV
A
A
A
A
A
A
A
A
D
Index
Register
register
DT
LD
FL
I
A
A
A
A
A
A
A
A
* Index modification of a real number is not possible.
High−level Instructions
Boolean
Address
Instruction
10
ST
R
11
F334
DT
DT
Constant
Index
modifier device
modifier
K
H
f
N/A
A
A
A*
N/A N/A N/A
A
A:
Available
N/A: Not Available
0
(FRINT)
10
20
Integer
device
N/A
N/A
3 − 731

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents