Table D-1. Correction Codes for RS-232 Transmission

Data Value

Correction Code

Byte in Hex

Byte in Decimal

 

 

 

 

0

0

80h

128

 

 

 

 

1

7

F1h

241

2

6

E2h

226

 

 

 

 

3

1

93h

147

4

5

D4h

212

 

 

 

 

5

2

A5h

165

6

3

B6h

182

 

 

 

 

7

4

C7h

199

8

3

B8h

184

 

 

 

 

9

4

C9h

201

10

5

DAh

218

 

 

 

 

11

2

ABh

171

12

6

ECh

236

 

 

 

 

13

1

9Dh

157

 

 

 

 

14

0

8E h

142

 

 

 

 

15

7

FFh

255

 

 

 

 

Sending Binary Data Over RS-232

The RS-232 interface differs from the GPIB interface in that there is no device addressing built into the interface definition. Device addressing must be done on top of the RS-232 functions. This addressing is done through the same mechanism as the terminal-based front panel, and must be done either by the transfer program or manually before starting the transfer program.

Setting Up the Mainframe

There are two commands (SI - Select and Instrument and SA - Select Address) that can be used at the "Select an Instrument" interface. The "Select an Instrument" interface can always be reached by sending the < CTRL-D> character (ASCII 4) over the RS-232 line. Once there, the System Instrument can be reached by sending the command "SI SYSTEM" followed by a carriage return. All output after this command will be directed to/from the System Instrument until another < CTRL-D> is received. The following sequence will make sure that the mainframe is set up and ready.

1.Send < CTRL-D> (ASCII 4) to get to the "Select and Instrument" interface.

2.Send "ST UNKNOWN" and a carriage return to insure that the terminal is set to dumb terminal mode.

D-2 Sending Binary Data Over RS-232

Page 234
Image 234
Agilent Technologies E1301B, E1300B, 75000 SERIES B user manual Sending Binary Data Over RS-232, Setting Up the Mainframe