Fortune Telling Collection - Comprehensive fortune-telling - Mitsubishi PLC 4- Character Transfer Point

Mitsubishi PLC 4- Character Transfer Point

The four-character conversion point of Mitsubishi PLC4 refers to four operation instructions of binary floating-point number.

The four operation instructions of floating-point number include addition instruction EADD(FNC 120), subtraction instruction ESUB(FNC 12 1), multiplication instruction EMVL(FNC 122) and division instruction EDIV(FNC 123).

The purpose of four arithmetic instructions is to operate floating-point numbers in two source operands and send them to the target operand. When the divisor is 0, an operation error occurs and the instruction is not executed. This instruction only has 32-bit operations, accounting for 13 program steps. The operation results affect the flag bits M8020 (zero flag), M802 1 (borrow flag) and M8022 (carry flag). The source operand can be K, H, D, and the target operand is D. If there is a constant involved in the operation, it will be automatically converted to a floating-point number.