5 Categories and Use of Basic Application InstructionsDVP-PM Operation Instruction5-132API Mnemonic Operands Function147 D SWAP P Byte swapControllers20PM 10PMBit Devices Word devices Program StepsTypeOP X Y M S K H KnX KnY KnM KnS T C D V ZS * * * * * * * * *SWAP, SWAPP: 3 stepsDSWAP, DSWAPP: 5 stepsOperands:S: Device for byte swap.Explanations:1. For 16-bit instruction, high byte and low byte of the register will be swapped.2. For 32-bit instruction, byte swap is conducted on the 2 registers separately.3. When SWAP is used as 16-bit instruction, Z device cannot be adopted; when SWAP is used as 32-bitinstruction, V device cannot be adopted.4. 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).5. This instruction adopts pulse execution instructions (SWAPP, DSWAPP)Program Example 1:When X0 = ON, high byte and low byte of D0 will be swapped.D0SWAPPX0D0High Byte Low ByteProgram Example 2:When X0 = ON, high byte and low byte of D11 will be swapped as well as the high byte and low byte of D10.D10DSWAPX0D11High Byte Low ByteD 01High Byte Low Byte