EasyManua.ls Logo

Prevac MG15 - Page 96

Prevac MG15
122 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
COMMUNICATION MULTI GAUGE CONTROLLER
6.4.5.2 0x06 - WRITE WORD
Query:
Device
address
Function
code 0x06
Address of word to
be written
Value to be written CRC
1 byte 1 byte MSB LSB MSB LSB MSB LSB
Response:
Device
address
Function
code 0x06
Address of word to
be written
Value to be written CRC
1 byte 1 byte MSB LSB MSB LSB MSB LSB
Slave device is identical with query. Except when transmission error or incorrect data occur. Pos-
sible responses in case of error are described in table 6.4.6.
Example: Write word to address 0x004A.
Query:
TX: 01 06 00 4A 02 00 A9 7C
Response:
RX: 01 06 00 4A 02 00 A9 7C
6.4.5.3 0x10 - WRITE N-WORDS
It enables sequential writing of a number of parameters within one transmission.
It is necessary to deine the address of the irst parameter and number of words to be written after
this address.
Query:
Device
address
Function
code 0x10
First word
address
Number of
words to be
written
Number
of data
bytes
Data ... CRC
1 byte 1 byte MSB LSB MSB LSB 1bajt MSB
LSB
... MSB
LSB
Response:
Device
address
Function code
0x10
First word address Number of written
words
CRC
1 byte 1 byte MSB LSB MSB LSB MSB LSB
The maximum number of words to be written is 125 which corresponds to 250 bytes. The irst two
bytes are the data for the irst parameter (irst MSB in organisation). The subsequent byte pairs are
the data for the following parameters. Trying to write using function 0x10 of data blocks containing
non-conigured (empty) cells, or read only, results in communication error and discarding of the
data. All the further values in the block will also be discarded.
Page 96 User manual rev. 03

Table of Contents