DVP-ES3 Series Programming Manual Symbol S 1 : Minuend S 2 : Subtrahend D : Difference _6 Explanation 1. This instruction subtracts the 32-bit single-precision floating-point number in S 2 from the 32-bit single-precision floating-point numbers number in S 1 , and stores the difference in D . 2. Instruction flags: SM600 (zero flag), SM601 (borrow flag), and SM602 (carry flag) When the operation result is zero, SM600 is ON. When the absolute value of the operation result is less than the value that can be represented by the minimum floating-point number, the value in D is 16#FF800000 and SM601 is ON.
When the absolute value of the operation result is larger than the value that can be represented by the maximum floating-point number, the value in D is 16#7F800000 and SM602 is ON. S S 1 +1 S 2 S S 1 +1 S 2 S D+1 D b31.........b16 b15...........b0 - b31.........b16 b15...........b0 b31.........b16 = b15...........b0 6-58 API Instruction code Operand Function 0105 F- P S1,S2,D Subtracting floating-point numbers Device X Y M S T C HC D FR SM SR E K 16# “$” F S1 S2 D BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1 S2 D Pulse instruction 16-bit instruction 32-bit instruction ES3 - ES3