GM9907-L5
bulk scale controller user’s manual
- 19 -
4.4.2
Response Mode-
1
Negative response: indicates that the command cannot be executed. The following
types of negative responses are returned:
◆
Command error
(
CE
),
STX
address
CE CRC CR LF
,
If the command is not in the
Columns table or checksum error.
◆
Data error
(
DE
),
STX
address
DE CRC CR LF
,
for example, send a command
with more data than the allowed range.
◆
Index error(
IE
),
STX
address
IE CRC CR LF
,
The executed command cannot be
executed in the current condition. For example, run command is delivered in run state. Send
Zero command when not stable.
Note
:
Response Mode1
、
Response Mode2
、
Response Mode3 send command format
Dataformat as follow
:
STX
COM ID Function
code
Action
object
data
CRC CR
LF
02H
2
bit
1
bit
Command
sheet
Command
sheet
2
bit
0DH 0AH
Amond them
:
COM ID ——
2
bit when COM ID is
01
,
means
:
30H 31H
Function code ——
1
bit
R/W
/C/
D
(
52H
/
57H
/
43H
/
44H
)
,means
read,write,calibration,execute
Action object
——
3bit .For details, see the command table
data
——
For details, see the command table
CRC
——2bit . The checksum, which is the sum of all the hexadecimal values in
front of the checkbit and convert them to decimal, and then take the last
two bits and convert them to ASCII (with ten bits after the first bit).
Controller set to Response Mode
1
:
function
code
Operation
object
data
Description
R
T SP SP
None Read total ACUM and ACUM Weight
respond
:
4
bit ACUM
;
10
bit decimal ACUM Weight
R
T
None Read total ACUM and ACUM Weight
Respond
:
4
bit ACUM
;
9
bit with decimal total ACUM weight
R
T S U
None Read In&Out ACUM, total weight
Respond
:
4
bit In&Out ACUM Pcs
;
1
0
bit decimal In&Out
ACUM Weight