DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-227
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
ASCII Swap Bytes (SWAPB)
The ASCII Swap Bytes instruction swaps byte positions (high–byte to low–byte and low–byte
to high–byte) within each V–memory register of a series of V–memory registers for a specified
number of bytes.
DS Used
HPP
N/A
A B C D E xx
V2477
V2500
V2501
V2502
Byte
High Low
0005h
B A
D C
xx E
No Byte Swapping
(AIN, AEX, PRINTV, VPRINT)
B A D C xx E
A B C D E xx
A B C D E xx
B A D C E xx
V2477
V2500
V2501
V2502
V2477
V2500
V2501
V2502
0005h
A B
C D
E xx
0005h
B A
D C
xx E
Byte
High Low
Byte
High Low
Byte Swap All
Byte Swap All but Null
Discrete Bit Flags Description
SP53 On if the CPU cannot execute the instruction.
SP71 On when a value used by the instruction is invalid.
Parameter DL06 Range
Starting Address All V–memory
Number of Bytes All V–memory or K1–128
Byte Swap Preferences
• Starting Address: specifies the beginning of a series
of V–memory registers the instruction will use to
begin byte swapping
• Number of Bytes: specifies the number of bytes,
beginning with the Starting Address, to byte swap.
• Byte Swap:
All - swap all bytes specified.
All but null - swap all bytes specified except the
bytes with a null