Specifications

7. Application Instructions
© DELTA ELECTRONICS, INC. ALL RIGHTS RESERVED
7-48
Time chart:
X0
M1122delivery request
M1121
transmut waiting
messa
g
e
X10
M1123receive compeleted
M1124
receive waiting request
it will be active when receive time out mess
a
stop to count time after
receive com
p
eleted
M1128
transmit/receive
78
64532121
M1125receive status disable
M1127
MODRD/RDST/MODRW
data receive and
conversion compeleted
M1129
receive time out
co
nv
e
r
s
i
o
n
data
M1131
Convert MODRD/RDST/
MODRW to hexadecimal
receive time out that
set by D1129
SET M1122
RS command executes
auto reset after transmitting data
user must reset in program
user will reset to waiting
status in
p
ro
g
ram
ASCII data convert to
hexadecimal, less than a
scan
p
eriod
change
direction
imm
ed
i
ate
l
y
D1122
remainder words
of sending data
3
2
1
D1122
remainder words
of receive data
7
6
8
4
3
5
2
1
0
3
0
82 ASCI
S D n Converts HEX into ASCII
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 ASCII code and
stores the result into four point devices that begin with the device
D
.
Program Example
HEX D10 K4D20
X0
16-bit conversion (M1161 OFF)
(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 is 4, the bit structure is:
0 000 1 0101 0111 100
0
A
BC
D10 = 0ABC
H
0 100 0 0010 0110 000
D20 Up Down
0 100 0 0110 1000 010
D21
'A' 41 H '0' 30 H
'B' 42 H'C' 43 H
U
p
Down