DVP- ES2/ EX2/ SS2/ SA2/ SX2/ SE&TP O pe r a t i on Ma nua l - Pr ogr am m i ng3- 96API Mnemonic Operands Function ControllersES2/EX2 SS2 SA2SE SX236 WSFR P Word Shift RightTypeOPBit Devices Word devices Program StepsX Y M S K H KnX KnY KnM KnS T C D E F WSFR, WSFRP: 9 stepsS * * * * * * *D * * * * * *n1 * *n2 * *PULSE 16-bit 32-bitES2/EX2 SS2 SA2SE SX2 ES2/EX2 SS2 SA2SE SX2 ES2/EX2 SS2 SA2SE SX2Operands:S: Start No. of source device D: Start No. of destination device n 1: Length of data to beshifted n 2: Number of devices to be shifted as a groupExplanations:1. This instruction performs a right shift from source device of n 2 registers starting from S todestination device of n 1 registers starting from D.2. This instruction is generally used in pulse execution mode (WSFRP).3. The type of devices designated by S and D has to be the same, e.g. KnX, KnY, KnM, and KnSas a category and T, C, and D as another category4. Provided the devices designated by S and D belong to Kn type, the number of digits of Kn in Sand D has to be the same.5. Valid range of operand n1, n2 : 1≤ n2 ≤ n1 ≤512Program Example 1:1. When X0 is triggered, WSFRP instruction shifts D10~D13 into data stack D20~D35 andD20~D35 also shift to the right with a group of 4 registers.2. The figure below illustrates the right shift of the registers in one scan. D23~D20 → Carry D27~D24 → D23~D20 D31~D28 → D27~D24 D35~D32 → D31~D28 D13 ~D10 → D35~D32 completedX0WSFRP D10 K16D20 K4D13 D12 D11 D10D35 D34 D33 D32 D31 D30 D29 D28 D27 D26 D25 D24 D23 D22 D21 D20123454 registers in one group shift to the rightCarry