5 Categories and Use of Basic Application InstructionsDVP-PM Application Manual 5-49API Mnemonic Operands Function31 D ROL P Rotate LeftControllers20PM 10PMBit Devices Word devices Program StepsTypeOP X Y M S K H KnX KnY KnM KnS T C D E FD * * * * * * * *n * *ROL, ROLP: 5 stepsDROL, DROLP: 9 stepsOperands:D: Device to be rotated n: Number of bits to be rotated in 1 rotationExplanation:1. This instruction rotates bit status of the device D to the left for n bits2. The status of the last bit rotated (marked with ※) is copied to the carry flag M1970.3. This instruction is generally used in pulse execution mode (ROLP, DROLP).4. When BMOV is used as 16-bit instruction, Z device cannot be adopted; when BMOV is used as 32-bitinstruction, V device cannot be adopted.5. When specifying the bit device of KnX(Y/M/S), the starting No. should be a multiple of 16 in octal or decimalformat. For example, K1X0, K4Y20 (octal); K1M0, K4S16 (decimal).6. If operand D is specified as KnY, KnM or KnS, only K4 (16-bit) or K8 (32-bit) is valid.7. Valid range of operand n: 1≤ n ≤16 (16-bit), 1≤ n ≤32 (32-bit)Program Example:When X0 goes from OFF to ON, all the 16 bits (4 bits as a group) in D10 will rotate to the left, as shown in the figurebelow. The bit marked with ※ will be sent to carry flag M1970.X0D10 K41 1 1 1 1 1 0 0 0 0 01 1 0 0 01 1 0 0 0 0 0 1 100 11 0 11 116 bitsRotate to the leftAfter one rotationto the leftCarryflagCarryflagD10D10Upper bitUpper bit Lower bitLower bitROLPM1022M1022