Panasonic FP-E Programming Manual page 953

Fp series
Table of Contents

Advertisement

F313
(F%)
P313
(PF%)
Outline
Divides real number data by the divisor and stores the divided result in
the specified 32-bit area.
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
"P313 (PF%)" is not available.
Program example
Trigger
R0
10
F313 F%, DT10, DT20, DT30
S1
S2
D
Operands
Relay
Operand
Operand
WX WY WR WL
S1
A
A
S2
A
A
D
N/A
A
Description
The real number data (2 words) specified by S1 is divided by the real number data (2 words) specified by S2
when the trigger turns on. The result is stored in D+1 and D.
[S1+1, S1] ÷ [S2+1, S2] → [D+1, D]
Specifying the integer device with [S1] and [S2], the integer data is internally converted to real numbers
before operations continue.
R0
F313 F%, % DT 0, % DT 2, DT4
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Floating point data division
Ladder Diagram
Ladder Diagram
S1
S2
Real number data (2 words) or lower 16-bit area of 32-bit data (for dividend)
Real number data (2 words) or lower 16-bit area of 32-bit data (for divisor)
Lower 16-bit area of 32-bit data (for result)
Timer/Counter
SV
EV
A
A
A
A
A
A
A
A
A
A
A
A
D
Index
Register
register
DT
LD
FL
I
A
A
A
A
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
F313
DT
DT
DT
Constant
Index
modifier
modifier device
K
H
f
A
A
A
A*
A
A
A
A*
N/A N/A N/A
A
A:
Available
N/A: Not Available
0
(F%)
10
20
30
Integer
device
A
A
A
3 − 689

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents