5 Categories and Use of Basic Application InstructionsDVP-PM Operation Instruction5-100API Mnemonic Operands Function121 D ESUB P Binary Floating Point SubtractionControllers20PM 10PMBit Devices Word Devices Program StepsTypeOP X Y M S F H KnX KnY KnM KnS T C D V ZS1 * *S2 * *D *DESUB, DESUBP: 9 stepsOperands:S1: Minuend S 2: Subtrahend D: Subtraction resultExplanations:1. S1 − S2 = D. The floating point value in S2 is subtracted from the floating point value in S1 and the result is storedin D. The subtraction is conducted in binary floating point format.2. F refers to floating point input. Be sure to add a decimal point when using it.3. Only 32-bit instructions DEADD and DEADDP are applicable.4. If S1 or S2 is specified with floating point value F, the instruction will operate in binary floating point.5. S1 and S2 can designate the same register. In this case, if the instruction is specified as “continuous executioninstruction” (generally DESUBP instruction) and the drive contact is ON, the register will be subtracted once inevery scan.7. Flags:OX O100Zero flag M1808 M1968Borrow flag M1809 M1969Carry flag M1810 M1970a) If the absolute value of the result exceeds the max. floating point value, carry flag will be ON.b) If the absolute value of the result is less than min. floating point value, borrow flag will be ON.c) If the conversion result is 0, zero flag will be ON.Program Example 1:When X0 = ON, binary floating point value (D1, D0) minuses binary floating point value (D3, D2) and the result isstored in (D11, D10).X0DESUB D0 D2 D10Program Example 2:When X2 = ON, F1234.0 (automatically converted into binary floating point value) minuses binary floating point (D1,D0) and the result is stored in (D11, D10).X2DESUB D0F1234.0 D10Points to note:For floating point operations, see “5.3 Numeric Values for Data Processing”.