
4
CARLO GAVAZZI
CONTROLS
SERIAL COMMUNICATION PROTOCOL
WM24-96
V1 R0
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 12 (24 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 MSB value of the request frame will be written in the specified address, the LSB one in the
specified address+1.
IMPORTANT: if the address is 00 (zero) all the instruments connected to the network will execute
the command but will not send an answer frame.
Comentários a estes Manuais