6-20
CW-80 Checkweigher Installation/Service Manual
Commands to Read and Write to IDs
One way the CW-80 is very different from the CW40 is in the area of ID
Serial commands. The !I command is used to transmit a Tare/Tolerance set
to a checkweigher, and have it store the contents in the desired ID# location.
The ?I command is used to request that a checkweigher transmit the contents
of a particular ID Register set from the serial port back to the host controller.
All available read and write commands, response formats, and related syntax
parameters are described in table 6-4.
Table 6-4.
READ AND WRITE COMMANDS
TO WRITE TO AN ID REGISTER SET:
Response Format:
[SOH][Addr][“!I”][ID#][“,”][Under Data][,][Over Data][,][Tare
Data][,][Unit][CR]
Where:
[SOH]
This is a single ASCII character (01 Hex) “Start of Header”
that is a preamble to all bidirectional serial commands.
[Addr]
This is a two character ASCII sequence 00-99 for the
address of the Checkweigher that reads and reacts to the
next command.
[“!I”]
This is a two character sequence that instructs the
checkweigher to store the associated Tare/Tolerance data in
the designated ID#.
[“,”]
This is the ASCII Character 2C Hex.
[ID#]
This is a 3 character field that specifies the record number or
location of the ID where the OVER/UNDER/TARE/UNITS
data is to be stored.
[Under Data]
This is a 7 character field including a decimal point that
represents the Under Value to be associated with this ID.
The field must be in the same format as the displayed format
for the Unit of measure associated with the ID record. All 7
characters must be sent and spaces may be substituted for
leading zeros.
[Over Data]
This is a 7 character field including a decimal point that
represents the Over Value to be associated with this ID. The
field must be in the same format as the displayed format for
the Unit of measure associated with the ID record. All 7
characters must be sent and spaces may be substituted for
leading zeros.
[Tare Data]
This is a 7 character field including decimal point that
represents the Tare Value to be associated with this ID. The
field must be in the same format as the displayed format for
the Unit of measure associated with the ID record. All 7
characters must be sent and spaces may be substituted for
leading zeros.
continued...
Command Format Key:
[ ] represents a separate field
of information.
“ ” represents literals which
will appear as shown.