Panasonic FP-E Programming Manual page 991

Fp series
Table of Contents

Advertisement

F332
(DROFF)
P332
(PDROFF)
Outline
Converts real number data to 32-bit integer data (rounding the first
decimal point off to integer).
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
"P332 (PDROFF)" is not available.
Program example
Trigger
R0
10
F332 DROFF, 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 "45678.51" is in DT10 and DT11, as shown below.
DT10:
(f45678.51)
DT11:
DT20:
(K45679)
DT21:
When the real number data "−45678.51" is in DT10 and DT11, as shown below.
DT10:
(f−45678.51)
DT11:
DT20:
(K−45679)
DT21:
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Floating point real number data → 32-bit integer data
(rounding the first decimal point off to integer)
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
F332
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
(DROFF)
10
20
Integer
device
N/A
N/A
3 − 727

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents