beautypg.com

Acknowledge code and error codes, Control using cts and rts, Ct5 0 – A&D Weighing GH-252 User Manual

Page 67: Ct5 1, Settings related to rs-232c

background image

65

15.3.2.

Acknowledge Code and Error Codes

When the "Serial interface function (

5if

)" parameter is set to "

erCd 1

", the balance outputs

code or error code to each command as follows:

(06h)

Acknowledge in ASCII code.

When the balance receives a command to request data and can not process it, the balance

transmits an error code (EC, Exx).

When the balance receives a command to request data and can process it, the balance
outputs the data.

When the balance receives a command to control the balance and can not process it, the

balance transmits an error code (EC, Exx).

When the balance receives a command to control the balance and can process it, the

balance transmits the acknowledge code.

Among commands to control the balance, the following transmit the acknowledge code
both when the balance receives the command and when the balance has accomplished
the command. If the command can not be processed properly, the balance transmits an
error code (EC, Exx). This error can be released using the CAL command.

CAL command (Calibration command using internal mass)

ON command (Display ON command)

P command (Display ON/OFF command)

R command (RE-ZERO command)

TR command (Tare command)

TST command (Calibration test command)

When a communication error has occurred due to external noise, or a parity error has

occurred due to transmission error, the balance transmits an error code. In this case, send
the command again.


xx

is error code number.


15.3.3.

Control Using CTS and RTS

Depending on the "Ct5" parameter of "Serial interface (5if)", the balance performs as follows:

Ct5 0

Regardless of whether the balance can receive a command or not, the balance keeps the
CTS line HI. The balance outputs data regardless of the condition of the RTS line.

Ct5 1

The CTS line is kept Hi normally. When the balance can not receive the next command
(Example: while the balance is processing the last command), the balance sets the CTS line
to Lo. The balance confirms the level of the RTS line before outputting a set of data. If the
RTS level is Hi, the balance outputs data. If the RTS level is Lo, data is not output (The data
is canceled).


15.3.4.

Settings Related to RS-232C

Concerning the RS-232C, the balance has two functions: "Data output (

dout

)" and "Serial

interface (

5if

)". Set each function as necessary.

This manual is related to the following products: