High−level Instructions
3 − 731
Outline This instruction rounds off the decimal part of real number data.
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
“P334 (PFRINT)” is not available.
Program example
Boolean
Ladder Diagram
Address Instruction
S
Trigger
D
F334 FRINT, DT10, DT2010
R0
10
11
ST R 0
F334 (FRINT)
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
O
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 “1234.567” is in DT10 and DT11, as shown below.
DT10:
DT11:
(f1234.567)
DT20:
DT21:
(f1235.000)
When the real number data “−1234.567” is in DT10 and DT11, as shown below.
DT10:
DT11:
(f−1234.567)
DT20:
DT21:
(f−1235.000)
F334
P334
(PFRINT)
(FRINT)
Floating point real number data rounding the first
decimal point off