Mitsubishi — 5.6 Application Instructions

5 Categories and Use of Basic Application Instructions API 129 Operands: S : Source device D : Operation result Explanations: 1. The binary floating point value in the register S is converted to BIN integer and stored in register D . The decimal of the operation result will be left out 3. Only 32-bit instructions DINT and DINTP are applicable. 2. This instruction is the opposite of the API 49 (FLT) instruction 4. Flags: a) If the conversion result is 0, zero flag will be ON. b) If there is any decimal left out, borrow flag will be ON. c) If the result exceeds the range (-2,147,483,648~2,147,483,647), carry flag will be ON. Program Example:

When X1 = ON, the binary floating point value of (D21, D20) will be converted to BIN integer and the result is stored in (D31, D30). The decimal of the result will be left out. DVP-PM Application Manual 5-109 Mnemonic Operands Function Controllers 20PM 10PM D INT P Float to Integer Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D V Z D S * D * OX O100 Zero flag M1808 M1968 Borrow flag M1809 M1969 Carry flag M1810 M1970 DINT D20 D30