Page | 75
“Wm”
Write system memory
2 byte address plus 1 byte <length> plus
<length> data
4 bytes
Note that <length> must be exact and must match the data sent.
1.
Read commands allow access to current channel and system settings for confirmation and
management of the unit’s operation and current measurements (readings) acquired by
the units. Note that all commands use exactly the same mechanism as “Read Memory”,
accessing system memory but adding the address onto a starting address appropriate to
the command; thus “Read Channel Settings” with address 0x03 and length 0x06 reads six
bytes, starting from the third byte of the Setup structure within system memory.
2.
Write commands allow the remote configuration of current channel and system settings
for management of the units’ operation, and modification of the unit’s system memory,
for use in monitoring and debugging operations only.
11.1.3
Read Current Readings Command “Rr”
This command has two items of data, a two byte <starting address> and a single byte <length>.
It commands the Tan Delta unit addressed by <iaddr> to transmit <length> bytes from <starting
address> relative to the start of the current readings array for each of the three channels within
the unit. Each reading comprises three bytes of data in 32 bit floating point format and must be
interpreted as such by the receiving system. If the command is correctly interpreted, the Tan
Delta unit addressed will acknowledge the command with the Ack code, echo the number of
bytes it will transmit, and send a response containing the data requested, followed by a
checksum. If the command is not correctly interpreted, the Tan Delta unit addressed will
acknowledge with the Error code and a checksum. If the unit addressed cannot be found, there
will be no reply.
The command string is 10 bytes long (no. of bytes in each field as subscript):
“!”,<09
1
>,<iaddr
1
>,“R”,“r”,<start address
2
>,<length*
1
>,<cksm
2
>
(*length >= 0x0C)
The response string comprises the acknowledge character, the <count> of bytes to follow and
then <length> bytes of data, followed by a 16 bit checksum. In its most common usage as used
to download all three channel readings, this will comprise 12 bytes of data, as follows:
Bytes 0-3
32 bit floating point representation of Oil Temp value, in C (unless otherwise
scaled)
Bytes 4-7
32 bit floating point representation of Ambient Temp value, in C (unless otherwise
scaled)
Bytes 8-11
32 bit floating point representation of Oil Condition value, in %
Thus the response string is <length> + 4 bytes long (no. of bytes in each field as subscript):
“A”,<2
1
>,<length bytes of data>,<cksm
2
>
Or, in case of error:“E”,<021>,< FFB82>
11.1.4
Read Memory Command “Rm”
This command has two items of data, a two byte starting <address> and a single byte <length>,
Содержание OQSExISG2
Страница 1: ...UG OQSxG2 23 0025 OIL QUALITY SENSOR ASSOCIATED ACCESSORIES USER GUIDE...
Страница 2: ......
Страница 5: ...Page 3 Page Intentionally Blank...
Страница 37: ...Page 35 Figure 19 Connection to other Tan Delta and 3rd Party Products Interfaces...
Страница 38: ...Page 36 Figure 20 ExOQSxG2 Ex Sensor Installation Drawing Rev 2 STAMPED...
Страница 42: ...Page 40 8 Display Express...
Страница 97: ...Page 95 P4 CANL RS485A P5 0V P6 CANH RS485B...