352
Error Logs Section 11-4
11-4-8 ERROR LOG READ: 21 02
This command reads the Board or Unit’s error log.
Command Format
Response Format
Parameters Beginning record number (command)
Specify the first record to be read as 2-byte (4-digit) hexadecimal. The first
record number is 0000 Hex and the setting range is 0000 to 003F Hex (0 to 63
decimal).
Number of records (command, response)
Specify the number of records to read. The setting range is 0001 to 0040 Hex
(1 to 64 decimal). The number of read records will be returned with the
response. If there is no error log, the response will be 0000.
Maximum number of stored records (response)
Indicates the maximum number of records that can be stored. The number is
always 0040 Hex (64 records) for Serial Communications Boards and Units.
Number of stored records (response)
Indicates the number of records recorded at the time the command is exe-
cuted. The number of stored records will be returned with the response within
the range of 0000 to 0040 Hex (0 to 64 decimal).
When the FA command for Host Link communications is used to read the
error log, set the number of stored records to between 0001 and 0035 Hex (1
to 53 decimal). Higher numbers cannot be set because they would cause the
response to exceed the maximum Host Link frame length. If a larger number
is set and the setting agrees with the actual number of stored records, 110B
Hex will be returned as the end code followed by all the records that can be
returned without exceeding the maximum frame length.
Error log data (response)
The specified number of error log records will be returned in sequence start-
• Version: "V1.00V1.00V1.00V1.00"
Trace function version
Macro function version
Board or Unit version
Communications control version
• Model: "CS1W-SCU21-V1 "
Padded with ASCII spaces (20 hex) to make
20 bytes total, including the model number.
Model number
Command
code
02
21
Beginning
record no.
No. of
records
0221
Max. no. of
stored records
No. of
stored
records
No. of
records
Error log
data
Error log
data
End codeCommand
code
10 bytes 10 bytes