Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
6-85
INT(P),DINT(P)
1
2
3
4
4
6
7
8
6.3 Data conversion instructions
6.3.5
Conversion from floating decimal point data to BIN16- and 32-bit data (Single precision)
(INT(P),DINT(P))
(2) The following program converts the 32-bit floating decimal point type real number at D20
and D21 to BIN 32-bit data and stores the result at D0 and D1.
[Ladder Mode] [List Mode]
[Operation]
Step
Instruction
Device
Integer
conversion
Integer
conversion
An operation error occurs
since "setting data > 2147483647."
32-bit floating-point
real number
D21
2147483649.22
D20
32-bit floating-point
real number
D21
-574968.321
D20
BIN value
D1
-574968
D0