
Modbus Commands
C-21
TIWAY I Gateway User Manual
Code
12 returns the same information as Function Code 1
1 plus a message
count and an additional 64-event byte. This means that a 2-byte status
word, a 2-byte event counter
, a message count, and the most recent 64
events are returned. A buffer records each send or receive operation and
overwrites the oldest event with the latest event. No events are recorded for
this code or Code 1
1. The Event Byte types are shown in T
able C-5.
I000000
Request: 10 0C XXXX
Checksum (XXXX)
Function code (0C)
Slave address (10)
Figur
e C-24
Get
Comms Event Log Example — Request
This request to address 16 (decimal) is for the Exception Event Log.
I000000
10 0C 46 0000 0204 020B C0 00
. . . XXXX
Checksum (XXXX)
2nd latest event (00)
Latest event (C0)
Message count (020B)
Event count (0204)
Status word (0000)
Byte count (46)
Function code 12 (0C hex)
Slave address (10)
Response:
Figur
e C-25
Get
Comms Event Log Example — Response
The response has returned 70 bytes of data (2 status bytes + 2 event counter
bytes + 2 message counts + 64 event bytes). Only two of the event bytes are
shown; these indicate the secondary node was reset (00) and then received a
broadcast message (C0). The most recent events are returned first.
Code 12 — Get
Comms Event Log
Kommentare zu diesen Handbüchern