EasyManua.ls Logo

Delta DVP-SS2 - Page 317

Delta DVP-SS2
1006 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
3
-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:
Register
D0
D1
Value
H1234
H5678
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.
Register
D2
D3
D4
D5
Value
H12
H34
H56
H78
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.
Register
D10
D11
D12
D13
D14
D15
D16
D17
Value
H0031
H0032
H0033
H0034
H0035
H0036
H0037
H0038

Table of Contents

Other manuals for Delta DVP-SS2

Related product manuals