Emerson PME1 Network Router User Manual


 
Monitor: Remote Host Commands
PmT1 and PmE1 User’s Manual 10002367-02
8-24
indicates that the start address segment value is one, and the start address offset value is 2,
so the absolute start address is 12
16
.
=>:04003000902BB4FD60
loads byte 90
16
to address 40
16
loads byte 2B
16
to address 41
16
loads byte B4
16
to address 42
16
loads byte FD
16
to address 43
16
=>:00000001FF
terminates the file.
Motorola S-record Format
S-records are named for the ASCII character “S,” which is used for the first character in each
record. After the “S” character is another character that indicates the record type. Valid
types are 0, 1, 2, 3, 5, 7, 8, and 9. After the type character is a sequence of characters that
represent the length of the record, and possibly the address. The rest of the record is filled
out with data and a checksum.
The checksum is the one’s complement of the 8-bit sum of the binary representation of all
elements of the record except the S and the record type character. In other words, if you
sum all the bytes of a record except for the S and the character immediately following it
with the checksum itself, you should get FF
16
for a proper record.
S0-records (User Defined)
S0nnd1d2d3...dncs
Where:
0 records are optional, and can contain any user-defined data.
Example:
=>S008763330627567736D
In this example, the length of the field is 8, and the data characters are the ASCII represen-
tation of “v30bugs.” The checksum is 6D
16
.
S0 indicates the record type
nn is the count of data and checksum bytes
d1...dn are the data bytes
cs is the checksum