14 byte swap instruction (bswap) – Yaskawa Ladder Works Programming Manual User Manual
Page 120
Advertising
6.14 BYTE SWAP Instruction (BSWAP)
6-23
6.14 BYTE SWAP Instruction (BSWAP)
[Outline]
The BSWAP instruction swaps the higher-place and lower-place bytes of the designated register (Dest).
a
Upper
Lower
After swap
b
a
b
Before swap
VWxxxxx
VWxxxxx
V=S, I, O, M, D
Upper
Lower
[Format]
Symbol : BSWAP
Full Name : Byte Swap
Category : MOVE
Icon :
[Parameter]
Parameter Name
Setting
Dest
· Any integer type register (except for # and C registers)
· Any integer type register with subscript (except for # and C registers)
[Program Example]
The upper and lower bytes of MW00100 to MW00102 are swapped.
Advertising