High
−
level Instructions
3
−
719
Outline
Converts real number data to 32-bit integer data (the largest integer not
exceeding the floating point real number data).
For the FP0R/FP
Σ
/FP
−
X/FP0/FP
−
e, the P type high
−
level instruction
“P328 (PDINT)” is not available.
Program example
Ladder Diagram
Boolean
Ladder Diagram
Address
Instruction
S
Trigger
D
F328 DINT, DT10, DT20
10
R0
10
11
ST
R
0
F328
(DINT)
DT
10
DT
20
S
Real number data (2 words) or lower 16-bit area of 32-bit data (source)
D
Lower 16-bit area of 32-bit data for storing converted data (destination)
Operands
Operand
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
N/A
A
A
A
*
N/A
D
N/A
A
A
A
A
A
A
A
A
A
N/A N/A N/A
A
N/A
*
Index modification of a real number is not possible.
Explanation of example
When the real number data “12345.67” is in DT10 and DT11, as shown below.
DT10:
DT11:
(f12345.67)
When the real number data “
−
12345.67” is in DT10 and DT11, as shown below.
DT10:
DT11:
(f
−
12345.67)
DT20:
DT21:
(K12345)
DT20:
DT21:
(K
−
12346)
F328
P328
(PDINT)
(DINT)
Floating point real number data
→
32-bit integer data
(largest integer not exceeding the floating point real
number data)
A: Available
N/A: Not Available
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Summary of Contents for FP-X
Page 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...