21 APPENDIX

COMPUTER CONTROL COMMANDS

Parameters

A computer control command is composed of an alphabetical command, various parameters, and the terminator that signals the end of the control command.

EXAMPLE: Command to set VFO A to 7 MHz

FA 00007000000 ;

Terminator

Parameters

Alphabetical command

Commands can be classified as shown below:

Parameters are used to specify information necessary to implement the desired command. The parameters to be used for each command are predetermined. The number of digits assigned to each parameter is also predetermined. Refer to the Parameter Table {page 73} and the Computer Control Command Tables {page 75} to configure the appropriate parameters.

When configuring parameters, be careful not to make the following mistakes.

(correct parameter: “IS+1000”)

IS1000; Not enough parameters specified (No direction given for the IF shift)

IS+100; Not enough digits

(Only three frequency digits given)

Computer control commands

Input command (Input to the transceiver)

Output command (From the transceiver)

Set command (Sets a particular condition)

Read command (Reads an answer)

Answer command (Transmits a condition)

IS + 1000; Unnecessary characters between parameters

IS+10000; Too many digits

(Five frequency digits given)

Note: If a particular parameter is not applicable to this transceiver, the parameter digits should be filled using any character except the ASCII control codes (00 to 1Fh) and the terminator (;).

Terminator

To signal the end of a command, it is necessary to

For example, note the following in the case of the FA command (Frequency of VFO A):

To set the frequency to 7 MHz, the following command is sent from the computer to the transceiver:

“FA00007000000;”

(Set command)

To read the frequency of VFO A, the following command is sent from the computer to the

use a semicolon (;). The digit where this special

character must appear differs depending on the

command used.

Error Messages

In addition to the Answer command, the

transceiver can send the following error

messages.

transceiver:

“FA;”

(Read command)

When the Read command above has been sent, the following command is returned to the computer:

“FA00007000000;”

(Answer command)

Note:

Do not use the control characters 00 to 1Fh since they are either ignored or cause a “?” answer.

Program execution may be delayed while turning the Tuning control rapidly.

Receive data is not processed if the frequency is entered from the keypad.

Alphabetical Commands

A command consists of 2 alphabetical characters. You may use either lower or upper case characters. The commands available for this transceiver are listed in the PC Control Command Tables {page 115}.

Error

Reason for Error

Message

 

?;

• Command syntax was incorrect.

 

• Command was not executed due to

 

the current status of the transceiver

 

(even though the command syntax

 

was correct).

 

Note: Occasionally this message may not

 

appear due to microprocessor transients in the

 

transceiver.

 

 

E;

A communication error occurred such

 

as an overrun or framing error during a

 

serial data transmission.

 

 

O;

Receive data was sent but processing

 

was not completed.

 

 

114

Page 122
Image 122
Kenwood TS-B2000, TS-2000X Appendix Computer Control Commands, Terminator, Error Messages, Alphabetical Commands