DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
-196
K4: With n = 3, transform 8-bit HEX data into ASCII data (higher 4 bits, lower 4 bits) in the
following rule:
Hi-byte Lo-byte
H
H
H
L
Hi-byte Lo-byte
L
L
Hi-byte Lo-byte
H
H
H
L
Hi-byte Lo-byte
L
L
Example: Use both K2 and K4 at a time
1. When M0 = ON, transform 16-bit data in D0, D1 into ASCII data in the following order: H byte -
L byte - H byte - Low byte, and store the results in D10.
2. Move the 16-bit data to where the data of the L-byte are.
3. Transform 8-bit HEX data into ASCII data
M0
DTM D0 D2 K2
K2
DTM D2 D10 K4
K4
Value of source devices D0, D1:
When the 1
st
DTM instruction executes (m=K2), ELC transforms the 16-bit data (Hi-byte,
Lo-byte) into 8-bit data and move to registers D2~D5.
When the 2
nd
DTM instruction executes (m=K4), ELC transforms the 8-bit HEX data into
ASCII data and move to registers D10~D17.