7. ASCII-HEX
7-1 ASCII-HEX (SPACE),
Vl
ISTX,
$A
NNNN . CR LF
,
L....J
L-iLJ
(1) (2) (3) (4)
e9oDD_DD
- - - -
DD_CR
LF
(5) (6)
~
ICCCCI
L!.J
IEXTI
CR
LF
(7) (8) (4) (9)
(1)
Start
mark: ASCII
"STX".
HEX
"02H"
Indicates
the
start
of
data.
(2) Address mark: ASCII
"$A"
Regards
the
portion before
the
separator (4)
as
an
address.
(3) Address: ASCII
The address
is
expressed
in
16 bits and
output
is
a four·
digit ASCII code. If
the
address consists
of
less than
four
digits, zeros are placed.
If
the address consists of
more
than
four
digits,
the
last four digits are valid.
(4) Separator:
ASCII",
"
This
is
a separator code for an address and a check sum.
(5) Data: ASCII
Indicates one byte
of
data
in
a two-digit ASCII code.
(6) Data mark: ASCII
"_"
The
two-digit ASCII code prior
to
the mark
is
regarded
as
data.
(7) Check sum mark: ASCII
"$S
The portion before the separator (4)
is
regarded
as
a
check sum.
(8) Check sum: ASCII
Adds
the
data portion (5)
as
one
byte
of
hexadecimal
data, and creates 16·bit data.
The
result
is
expressed
in
a four-digit ASCII code,
and
is
appended after the last
data.
(9) End mark: ASCII
"EXT",
HEX
"03H"
Indicates
the
end
of
data.
7-2
ASCII-HEX (SPACE),
V2
,STX
,
DD
_
~
_
PDI
(1)
(5)
(6)
DD
_ PDI ,ETX
I
(9)
(1), (5), (6), (9): Same
as
ASCII-HEX (SPACE).
7-3
ASCII-HEX (SPACE),
V3
,STX
I
~
,AAAAI
(1) (10) (3)
DD
-
DD
-
DD-··
..
DD
-IETXI
L.!.J
L---'
L.....J
(4) (S) (6) (9)
Data includes no CR and LF.
(1), (3),
(4), (5), (6), (9): Same as ASCII·HEX (SPACE).
(10): Address mark: ASCII
"$H".
The portion before
the
separator (4)
is
regarded
as
an
address.
7-4
ASCII-HEX (SPACE),
V4
ISTX,
,AAAA,
~
Qg
CJ
DD
-
DD
- -
..
- .
DD
-
CR
LF
(1) (3) (11) (5) (6)
AAAA
~
DD
- I
ETX
I
(11) (9)
(1), (3), (5), (6), (9): Same
as
ASCII-HEX (SPACE).
(11): Address separtor: ASCII
Any symbol
other
than
the
- code may
be
used as an
address separtor.
8. Binary
8 bit
I
.··
i
..
:
•••••
•
••••••••
•
.................................
I • •
••••
•
•••
•
•••••••••
•
••••••••••••
•
1
bit
(1
)
(2) (3) (4)
(5) (6)
(1) Header mark
Indicates
the
start
of
a binary format. It consists
of
six bytes.
(2) Byte digit
count
Indicates a data byte
count.
It
is
expressed
in
a hexa·
decimal number, ranging from
OOOOH
(OOOOOOOOH)
to
FFFFH
(OFOFOFOFH).
(3) Data mark: HEX
"FFH"
Indicates
the
start
of
data.
(4) Data
Indicates binary data.
(5) Check sum mark: HEX
OOOOH
The subsequent
two
bytes are regarded
as
a check sum.
55