Sensoray 2600 User Manual

Page 29

Advertising
background image

2600 Family Instruction Manual

24

Chapter 4 : Serial Communication Server

4.4.6 Close

Function

Disables the serial transmitter and receiver.

Opcode

0x05

Command

none

Response

(Status)

Notes

All of the status flags are reset to zero.

Close

flushes any buffered characters in the

transmit and receive queues, effectively
emptying these buffers.

Any character transmission that is in progress
will be completed before the transmit buffer is
flushed.

All com ports are initialized to the closed state
upon module reset. In the closed state, both the
transmit and receive buffers are initialized to the
empty state, and all com port serial transmitters
and receivers are disabled.

4.4.7 Flush

Function

Dumps the receive character buffer and resets all
error flags.

Opcode

0x06

Command

none

Response

(Status)

Notes

This command discards all characters in the
receive character buffer and resets to zero all of
the receiver’s error status flags.

4.4.8 GetRxCount

Function

Returns the receive buffer character count.

Opcode

0x07

Command

none

Response

(Status),(Count[0]),(Count[1])

Notes

GetRxCount

returns the total number of

characters pending in the receive buffer.

4.4.9 GetTxCount

Function

Returns the transmit buffer character count.

Opcode

0x08

Command none

Response

(Status),(Count[0]),(Count[1])

Notes

GetTxCount

returns the total number of

characters pending in the transmit buffer. This
command can be used to determine whether the
transmit buffer has sufficient free space for a new
character string before executing a Send
command.

4.4.10 StartBreak

Function

Causes the transmitter to send a continuous
break.

Opcode

0x09

Command none

Response

(Status)

4.4.11 EndBreak

Function

Terminates break transmission.

Opcode

0x0A

Command none

Parameter

Function

Status

Com port status. The REJ flag will be
set if the port is already closed.

Parameter

Function

Status

Com port status.

Parameter

Function

Status

Com port status. The REJ flag will be
set if the port is closed.

Count

Number of bytes pending in the
receive buffer.

Parameter

Function

Status

Com port status. The REJ flag will be
set if the port is closed.

Count

Number of bytes pending in the
transmit buffer.

Parameter

Function

Status

Com port status. The REJ flag will be
set if the port is closed.

Advertising