EasyManua.ls Logo

Panasonic FP-E - Page 957

Panasonic FP-E
1334 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
High−level Instructions
3 − 693
Outline Triangle functions, This instruction calculates cosine [COS ( )].
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
“P315 (PCOS)” is not available.
Program example
Ladder
Diagram
Boolean
Ladder Diagram
Address Instruction
S
Trigger
D
F315 COS, DT10, DT2010
R0
10
11
ST R 0
F315 (COS)
DT 10
DT 20
S Angle data (2 words) or lower 16-bit area of 32-bit data where angle data is
stored
D Lower 16-bit area of 32-bit data where calculated result is stored
Operands
O
p
erand
Relay Timer/Counter Register
Index
register
Constant
Index
modifier
Integer
device
Operand
WX WY WR WL SV EV DT LD FL I K H f
modifier device
S A A A A A A A A A A A A A A* A
D N/A A A A A A A A A A N/A N/A N/A A A
* Index modification of a real number is not possible.
Description
The COS ([S+1 and S]) of an angle data (units are radians) specified by S+1 and S is calculated and the result
stored in D+1 and D.
COS ([S+1, S]) → [D+1, D]
Specifying the integer device with [S], the integer data is internally converted to real numbers before
operations continue.
F315 COS, % DT 0, DT 4
R0
F315
P315
(PCOS)
(COS)
Floating point data Cosine operation
A
:
A
vailable
N/A: Not Available
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com