Specifications

7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-49
When n=1 to 9:
n
D *
K1 K2 K3 K4 K5 K6 K7 K8 K9
D20 down ‘C B A ‘0 ‘4 ‘3 ‘2 ‘1 ‘8
D20 up ‘C B ‘A ‘0 4 ‘3 ‘2 ‘1
D21 down C B ‘A ‘0 ‘4 ‘3 ‘2
D21 up C’ B A’ 0’ 4’ 3’
D22 down ‘C B ‘A ‘0 ‘4
D22 up ‘C B ‘A ‘0
D23 down ‘C B ‘A
D23 up ‘C B
D24 down ‘C
8-bit conversion (M1161 ON)
(D10) = 0ABC H 0 = 30H 1 = 31H 5 = 35H
(D11) = 1234 H A = 41H 2 = 32H 6 = 36H
(D12) = 5678 H B = 42H 3 = 33H 7 = 37H
C = 43H 4 = 34H 8 = 38H
When n=2:
0 000 1 0101 0111 100
0
A
BC
D10 = 0ABC
H
0 000 00 0 0100 00
D20=B, ASCII code = 42
H
0 000 0 0 1000 01
D21=C, ASCII code = 43H
42
34
000
00 1
1
When n=1 to 9:
n
D *
K1 K2 K3 K4 K5 K6 K7 K8 K9
D20 ‘C B A ‘0 ‘4 ‘3 ‘2 ‘1 8
D21 ‘C B ‘A ‘0 ‘4 ‘3 2 ‘1
D22 C B ‘A ‘0 ‘4 ‘3 ‘2
D23 C’ B A’ 0’ 4’ 3’
D24 ‘C B ‘A ‘0 ‘4
D25 ‘C B ‘A ‘0
D26 ‘C B ‘A
D27 ‘C B
D28 ‘C
83 HEX
S D n
Converts ASCII to HEX
Bit device Word device
Device
Operand
X Y M S K H KnX KnY KnM KnS T C D E F
S
ϨϨ Ϩ ϨϨ
D
ϨϨϨ
n
1~256
Converts the data of lower “ n” digits (one digit consists of four bits) of
16-bit data that begins with the device
S
into the HEX code and
stores the result into four point devices that begin with the device
D
.
Program Example
HEX D10 K4D20
X0