Mitsubishi — 5.6 Descriptions of the Applied Instructions

Chapter 5 Applied Instructions Explanation  S 1 : Minimum binary floating-point value; S 2 : Maximum binary floating-point value; S : Binary floating-point value; D : Comparison result (D occupies three consecutive devices.)  The instruction is used to compare the binary floating-point value in S with that in S 1 , and compare the binary floating-point value in S with that in S 2 . The comparison result is stored in D .  If S 1 is a floating-point number, the instruction will be used to compare the floating-point number with the binary floating-point value in S 2 .

If S 2 is a floating-point number, the instruction will be used to compare the binary floating-point value in S 1 with the floating-point number.  If the binary floating-point value in S 1 is greater than that in S 2 , the binary floating-point value in S 1 will be taken as the maximum/minimum value during the execution of the instruction EZCP.  If the operand D is M0, M0, M1, and M2 will be occupied automatically.  When X0.0 is ON, the instruction DEZCP is executed, and M0, M1, or M2 is ON. When X0.0 is OFF, the execution of the instruction DEZCP stops, and the states of M0, M1, and M2 remain unchanged .

 If users want to reset M0, M1, or M2, they can use the instruction RST or Example ZRST. Additional remark  Please refer to section 5.3 for more information about performing operations on floating-point numbers. 5-79 API Instruction code Operand Function Binary floating-point 111 D EZCP P S , S , S, D 1 2 zonal comparison Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z S 1    S 2    S    D    Pulse instruction 16 -bit instruction 32-bit instruction (12 steps )  –  X0.0 DEZCP D0 D10 D20 M0 M0 If the value in (D1, D0) >the value in (D2 M1 If the value in (D1, D0) the value in (D DEZCP D0 D10 D20 M0