
40
CARLO GAVAZZI
CONTROLS
SERIAL COMMUNICATION PROTOCOL
WM4-96
V1 R3
Page
3.4.2 Event reading
Example 24: read command of the event stored at address 2240h
The reading of the information regarding an event is carried out by transferring 4 words starting from
the first address of the selected event location, according to the Event Logging Map table (see
paragraph 3.2).
The description of the event is obtained by decoding the data contained in the 4 words, according to
“n
th
event coding” table.
In accordance to the above listed procedure, before reading a MAX or MIN event, the variable
associated to the MAX or MIN must be known. Then the info of the variable (decimal point position)
must be acquired. Finally the stored value must be read.
4-word read command frame (8 byte):
01h
04h
22h
40h
00h
04h
FAh
65h
read command answer frame (13 byte):
01h
04h
08h
7Bh
C1h
61h
80h
5Bh
42h
00h
36h
88h
DFh
Word 1: 7BC1h = 01111 011110 00001
Word 2: 6180h = 0110 00011 0000000
Word 3: 5B42h = 0101 101101 000010
Word 4: 0036h = 0000000000110110
Event type 0001 1 MAX
Minutes 011110 30
Hour 01111 15
Year 0000000 00
Day 00011 03
Month 0110 06
Variable type 001000 08 A L1
Seconds 101101 45
Value 110110 54
The engineering unit and the decimal point position of the variable are obtained by reading the “info”
value in the instantaneous variables area (see example 2).
Comentarios a estos manuales