Mitsubishi PLC floating-point arithmetic instructions - Solutions - Huaqiang Electronic Network

SMD aluminum electrolytic capacitor
Brand AVX TPSE226M035R0125 Low impedance tantalum capacitor AVX 22
Electronic scale crystal oscillator 3.2*2.5mm 3225 16M (16.000MHZ) 12PF 10PPM 20PPM 30PPM
Huaqiang Square crystal original spot stock

The floating-point arithmetic instruction (FNC110-FNC1320) is used for floating-point processing. The floating-point number is 32-bit, including 13 instructions such as comparison, conversion, four-square operation, square-square operation, and trigonometric function of floating-point numbers. All floating-point processing instructions are 32-bit instructions. When used, the mnemonics of most instructions must be preceded by the 32-bit arithmetic identifier "D". They are distributed among the instruction numbers FNC110 to FNC119, FNC120 to FNC129, and FNC130 to FNC139.

Binary floating point comparison instruction ECMP

(1) Binary floating point comparison instruction ECMP (FNC110) The use of the DECMP (P) instruction is as shown in Fig. 1, and the two source operands are compared, and the comparison result is reflected in the target operand. If the operand is constant, it is automatically converted to binary floating point value processing. The instruction source operands can take K, H, and D, and the target operands can be Y, M, and S. It is a 32-bit arithmetic instruction, accounting for 17 program steps.


Figure 1 Binary floating-point comparison instruction using binary floating-point interval comparison instruction EZCP
(2) Binary floating-point interval comparison instruction EZCP (FNC111) The function of the EZCP (P) instruction is to compare the contents of the source operand with the range of the upper and lower two points specified by the binary floating-point value, and the corresponding result is reflected by ON/OFF. On the target operand, as shown in Figure 2. This instruction is a 32-bit arithmetic instruction, accounting for 17 program steps. The source operands can be K, H, and D; the destination operands are Y, M, and S. [S1.] should be less than [S2.], and the operand will be automatically converted to binary floating point value processing when it is constant.


Figure 2 The use of binary floating-point interval comparison instructions

Addition instruction EADD

Subtraction instruction ESUB

Multiplication instruction EMVL

Division instruction EDIV

(3) Four arithmetic operations of binary floating point numbers Four arithmetic instructions of floating point numbers include four instructions: addition instruction EADD (FNC120), subtraction instruction ESUB (FNC121), multiplication instruction EMVL (FNC122), and division instruction EDIV (FNC123). The instructions for the use of the four arithmetic instructions are shown in Figure 3. They are all calculated by the floating point numbers of the two source operands and then sent to the destination operand. When the divisor is 0, an operation error occurs and the instruction is not executed. Such instructions have only 32-bit operations and occupy 13 program steps. The result of the operation affects the flag bits M8020 (zero flag), M8021 (borrow flag), and M8022 (carry flag). The source operand can take K, H, and D, and the destination operand is D. If a constant participates in the operation, it is automatically converted to a floating point number.


Figure 3 Binary floating-point number Four arithmetic instructions use binary floating-point operations and open square, trigonometric functions and other instructions, not explained here.

Polycrystalline Solar Panel

A Solar Panel, or photo-voltaic (PV) module, is an assembly of photo-voltaic cells mounted in a framework for installation. Solar panels use sunlight as a source of energy to generate direct current electricity.


The main two types of solar panels. Each of these types of solar cells is made in a unique way and has a different aesthetic appearance.

  1. Mono crystalline
  2. Poly crystalline
ERG 310P

Polycrystalline Solar Cells,Solar Mono Panel,Poly Solar Cell,Mono Or Poly Solar Panels

NANTONG RONGCHANG IMPORT&EXPORT CO.,LTD , https://www.ergsolarcn.com