5 Categories and Use of Basic Application InstructionsDVP-PM Operation Instruction5-40API Mnemonic Operands Function23 D DIV P DivisionControllers20PM 10PMBit Devices Word Devices Program StepsTypeOP X Y M S K H KnX KnY KnM KnS T C D V ZS1 * * * * * * * * * * *S2 * * * * * * * * * * *D * * *DIV, DIVP: 7 stepsDDIV, DDIVP: 9 stepsOperands:S1: Dividend S 2: Divisor D: Quotient and remainderExplanations:1. DIV instruction divides S1 and S2 in BIN format and stores the result in D. Care should be taken onpositive/negative signs of S1, S2 and D when doing 16-bit and 32-bit operations.2. When DIV is used as 16-bit instruction, Z device cannot be adopted; when DIV is used as 32-bit instruction, Vdevice cannot be adopted.3. DIV will not be executed when the divisor is 0.4. In 16-bit BIN division:+1=/Quotient RemainderS 1 S 25. In 32-bit BIN division:+1/ =+1 +1 +3 +2S 1 S 2S 1 S 2Quotient RemainderProgram Example:When X0 = ON, D0 will be divided by D10, and the quotient will be stored in D20 while remainder in D21. ON/OFF ofMSB indicates the positive/negative status of the result.X0DIV D0 D10 D20D0 D10 K4Y0DIV