
38
CARLO GAVAZZI
CONTROLS
SERIAL COMMUNICATION PROTOCOL
WM4-96
V1 R3
Page
3.4 EXAMPLES: HOW TO READ THE DATA FROM EEPROM
NOTE: EEPROM is structured in word (if not differently advised) which are sent in the order MSB,
LSB.
The value of the variables stored in EEPROM are 4-byte integer except from the values of the power
which are stored in a different way. Refer to example 22 to know how to read the power values.
3.4.1 Reading and resetting maximum and minumum
Example 19: “12
th
MAXIMUM variable type” read command
4-word read command request frame (8 byte):
01h
04h
20h
D6h
00h
01h
CRC
CRC
read command answer frame (7 byte):
01h
04h
02h
50h
0Ah
CRC
CRC
12
th
MAX-variable type address: 20D6h
Stored variable value: 0Ah = 10 (decimal)
Variable type: A L3 (phase 3 current)
Example 20: “Current info” read command
“Info A” read request frame (frame 8 byte):
01h 04h 00h E8h 00h 01h CRC
CRC
“Info A” read answer frame (frame 7 byte):
01h 04h 02h 06h 04h CRC
CRC
Info V value: 06h decimal point position: 1111
Info A value: 04h decimal point position: 11.11
Example 21: value of the “12
th
MAXIMUM” read command
1-word read request command (8 byte):
01h
04h
21h
16h
00h
01h
CRC
CRC
read answer frame (7 byte):
01h
04h
02h
03h
6Ch
CRC
CRC
Address of 12
th
MAX value: 2116h
Stored value: 036Ch = 876 (decimal)
Taking into account the results of the previous examples:
A L3 value: 8.76 A
Kommentare zu diesen Handbüchern