Panasonic FP-E Programming Manual page 949

Fp series
Table of Contents

Advertisement

F311
(F−)
P311
(PF−)
Outline
Subtracts real nuumber data from the minuend and stores the result in
the specified area.
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
"P311 (PF−)" is not available.
Program example
Trigger
R0
10
F311 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
Subtracts the real number data (2 words) specified by S2 from the real number data (32-bit) specified by S1
when the trigger turns on. The subtracted 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
F311 F−, % DT 0, % DT 2, DT 4
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Floating point data subtraction
Ladder Diagram
Ladder Diagram
S1
S2
Real number data (2 words) or lower 16-bit area of 32-bit data (for minuend)
Real number data (2 words) or lower 16-bit area of 32-bit data (for subtrahend)
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
F311
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 − 685

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents