403
Conversion Instructions Section 3-11
Examples 4-to-16 bit Conversion
When CIO 0.00 is ON in the following example, MLPX(076) will convert 3 dig-
its in CIO 200 beginning the second digit, as indicated by C (#0021). The cor-
responding bits in D100 to D102 will be turned ON.
8-to-256 bit Conversion
When CIO 0.01 is ON in the following example, MLPX(076) will convert the 2
bytes in S beginning with byte 1 (the leftmost byte), as indicated by C (#1011).
The corresponding bits in D1000 to D1015 and D1016 to D1031 will be turned
ON.
C: #
S: 200
S
C
R
0.00
200
D100
R: D100
D101
D102
Digits
Bits 0 to 3: Starting digit (Digit 1)
Bits 4 to 7: Number of digits (3 digits)
Digit 1 contains 6, so bit 6 is turned ON.
Digit 2 contains A, so bit 10 is turned ON.
Digit 3 contains F, so bit 15 is turned ON.
C: #
S: 1000
S
C
R
0.01
1000
D1000
R: D1000
D1001
D1002
D1003
D1015
D1016
D1017
D1018
D1031
Byte 1
Byte 0
Bits 0 to 3: Starting byte (Byte 1)
Bits 4 to 7: Number of bytes (2 bytes)
Byte 1 contains 2D, so bit 13 (D)
of R+2 is turned ON.
Byte 0 contains 1A, so bit 10 (A)
of R+1 is turned ON.