
4
CARLO GAVAZZI
CONTROLS
SERIAL COMMUNICATION PROTOCOL
WM4-96
V1 R3
Page
1.2.1 Function 04 (read words)
Request frame
Address Function Data address n° of words CRC
1 byte 1 byte 2 byte 2 byte 2 byte
From 1 to 255 04h MSB LSB MSB LSB MSB LSB
NOTE: - The maximum number of word is 120 (240 byte).
- The address 00 is not allowed (it generates no answer)
Answer frame
Address Function n° byte (=2 x n° word)
Values CRC
1 byte 1 byte 1 byte n° byte (=2 x n° word)
2 byte
From 1 to 255
04h MSB LSB … MSB LSB
1.2.2 Function 06 (write one word)
Request frame
Address Function Data address Value CRC
1 byte 1 byte 2 byte 2 byte 2 byte
From 1 to 255 06h MSB LSB MSB LSB MSB LSB
Answer frame
Address Function Data address Value CRC
1 byte 1 byte 2 byte 2 byte 2 byte
From 1 to 255 06h MSB LSB MSB LSB MSB LSB
NOTE: the answer frame is an echo of the request frame, which confirm the execution of the
command.
The write function cannot be used to modify the contents of the energy meter memory area.
1.2.3 Function 80 (read words from Memory Flash)
Request frame
Address Function Word address and number of words CRC
1 byte 1 byte 4 byte (see Flash Memory addressing table)
2 byte
From 1 to 255 80h MSB … … LSB MSB LSB
Answer frame
Address Function Number of byte Value CRC
1 byte 1 byte 1 byte n byte 2 byte
From 1 to 255 80h Number of words x 2 … MSB LSB
IMPORTANT: if the address is 00 (zero) all the instruments connected to the network will execute
the command but won’t send an answer frame.
Comentarios a estos manuales