FRICK
®
QUANTUM™ COMPRESSOR CONTROL PANEL S90-010 CS (APR 08)
COMMUNICATIONS SETUP Page 35
In this particular example, we are strictly looking to write a
data value, so we will be performing a write function (06):
277 decimal equals 115 hex. Looking at our example, we
see that we need a H.O. (High Order) address and a L.O.
(Low Order) address. Since all data sent and received is in
ASCII Hex Byte format, we need to look at 15 Hex as the
Low Order portion of the address. The High Order portion
is 01. Now our decimal 277 is formatted as 0115 Hex.
The value that we wish to send is 100.0 (1000). Our Data
Value part of the data packet is looking for a High and a
Low Order value. The number 1000 (dec) must be
converted to hexadecimal. This conversion results in 03E8
(hex). Separating 03E8 into two bytes results in the Low
Order Value of E8 (hex) and the High Order Value of 03
(hex):
In order to ensure that the Quantum™ in question
receives the data request accurately, we must append an
Error Check byte to the end of the message. This is
accomplished by adding each of the byte pairs (hex) that
we have generated thus far:
01 + 06 + 01 + 15 + 03 + E8 = 108 hex
Normally, we would subtract 108 (hex) from 100 (hex), as
in the previous read example. However, in this case we
see that 108 hex is greater than 100 hex. Since the math
in this particular example would yield a negative number
(FFFFFFF8), we need to modify the value of 108 in order
to provide a positive result. This is accomplished quite
simply by dropping the most left hand digit (108 becomes
08), and then subtracting 8 hex from 100 hex:
100 (hex) - 08 (hex) = F8 (hex)
After the entire data packet has been created, simply
press the
[Enter]
key, a Line Feed will automatically be
sent also.
}
: 01 06 01 15 03 E8 F8 CRLF
Where:
Start of Message
Quantum™ ID #
Write Function
H.O. address (hex)
L.O. address (hex)
H.O. # of Data Value
L.O. # of Data Value
Error Correction Code
Carriage Return – Line Feed
}
: 01 06 01 15 03 E8 F8 CRLF
Where:
Start of Message
Quantum™ ID #
Write Function
H.O. address (hex)
L.O. address (hex)
H.O. # of Data Value
L.O. # of Data Value
Error Correction Code
Carriage Return – Line Feed
}
: 01 06 01 15 03 E8 F8 CRLF
Where:
Start of Message
Quantum™ ID #
Write Function
H.O. address (hex)
L.O. address (hex)
H.O. # of Data Value
L.O. # of Data Value
Error Correction Code
Carriage Return – Line Feed
}
: 01 06 01 15 03 E8 F8 CRLF
Where:
Start of Message
Quantum™ ID #
Write Function
H.O. address (hex)
L.O. address (hex)
H.O. # of Data Value
L.O. # of Data Value
Error Correction Code
Carriage Return – Line Feed
}
: 01 06 01 15 03 E8 F8 CRLF
Where:
Start of Message
Quantum™ ID #
Write Function
H.O. address (hex)
L.O. address (hex)
H.O. # of Data Value
L.O. # of Data Value
Error Correction Code
Carriage Return – Line Feed