Laurel Electronics LAUREATE SERIES Serial Comunications User Manual
Page 16
CHARACTER 4
Code for number of bytes or words
Code #
Code #
Code #
Code #
1 = 1
9 = 9
H = 17
P = 25
2 = 2
A = 10
I = 18
Q = 26
3 = 3
B = 11
J = 19
R = 27
4 = 4
C = 12
K = 20
S = 28
5 = 5
D = 13
L = 21
T = 29
6 = 6
E = 14
M = 22
U = 30
7 = 7
F = 15
N = 23
8 = 8
G = 16
O = 24
CHARACTERS 5,6
See tables in Section 6 for the RAM MEMORY ADDRESSES and NONVOLATILE MEMORY
ADDRESSES with their respective data definitions.
(1)
READ AND WRITE RAM MEMORY DATA
RAM memory data is read and written as a continuous string of bytes consisting of 2 hex
characters (0-9,A-F) per byte. Included in the command is the total number of bytes to be
transferred and the most significant address in RAM of the continuous string of bytes. The
format is:
Read RAM data
*
1Gnaa
Write RAM data
*
1Fnaa
where:
n
is the number of bytes to be read or written.
aa
is the most significant address in RAM of the bytes to be read or written.
data
is n bytes of 2 hex characters per byte in order from the most to the least significant
byte.
The number of bytes n consists of a single code character representing values from 1 to 30
as shown above under CHARACTER 4.
The most significant address aa consists of 2 hex characters as shown below under RAM
MEMORY ADDRESSES AND DATA DEFINITIONS.
(2)
READ AND WRITE NONVOLATILE MEMORY DATA
Nonvolatile data is read and written as a continuous string of words consisting of 2
bytes or 4 hex characters (0-9,A-F) per word. Included in the command is the total
number of words to be transferred and the most significant address in nonvolatile
memory of the continuous string of words. The format is:
Read nonvolatile memory data -
*
1Xnaa (followed by Meter reset)
Write non-volatile memory data -
*
1Wnaa (followed by Meter reset)
where:
n
is the number of words to be read or written.
-15-