HP SB manual RS232 Driver Pin Assignment, Operation and Query Commands, Command Parser Rules

Page 30

Table 8: RS232 Interface Specifications

Name

Symbol

Pin Number

Signal Direction

 

 

 

 

transmitted data

TxD

2

out

 

 

 

 

received data

RxD

3

in

 

 

 

 

request to send

RTS

8

out

 

 

 

 

clear to send

CTS

7

in

 

 

 

 

data terminal ready

DTR

6

out

 

 

 

 

signal ground

SG

5

 

 

 

 

The data protocol is permanently set to 1200 baud ASCII character code, with eight bits per character, one stop bit, and no parity bit. The serial port of the controlling computer must be configured with the same settings.

RS232 Driver Pin Assignment

The RS232 driver pin assignment is shown in Figure 16.

Figure 16: Driver Pin Assignment

Caution

Do not exceed 100 mA per driver.

Operation and Query Commands

Operation and query commands control instrument functions and are interface-independent.

Command Parser Rules

A command consists of a mnemonic (for example, CLOSE) and, if required, a data parameter. The mnemonic and the data parameter must be separated by at least one space.

Parameters can be entered in various formats; for example, 10, 10.0, and 1.0e1 are all recognized as the same value.

Commands can be sent in uppercase or lowercase characters.

Programming Guide – 25

Image 30
Contents SB Series Fiberoptic Switch User’s ManualPage Contents Programming Guide SD000153 Rev. J May Safety Information, Instructions, and Symbols Safety InformationSafety Instructions Before Initializing and Operating the UnitOperating the Unit Safety Safety Symbols SymbolProceeding Compliance CE ComplianceGeneral Information and Specifications Single-Common SB-C Switch ConfigurationGeneral Information Dual-Common SB-D Switch Configuration Single Step Dual Common SB-E Switch ConfigurationStandard Accessories Dual-Common Blocking SB-F Switch ConfigurationKey Features Optional AccessoriesSpecifications Parameter Typical MaximumElectrical PhysicalEnvironmental Initial Inspection Getting StartedBefore Initializing and Operating the Unit Operating EnvironmentStoring and Shipping Cleaning Connectors Installing the Switch Connector Cleaning connector type can varyOperating Keys Operating and Maintenance InstructionsFront Panel Key DescriptionExternal Switch Module Connections External Switch Module without TTL Input ControlsRear Panel External Switch Module with TTL Input Controls Sample Driver Application Electrical Equivalent of DriverPowering Up the Switch Using and Selecting a ChannelSetting the Gpib Address Setting the Interface Command Set for SC and SX SwitchesControlling the Drivers Controlling the Switch Locally Controlling the Switch Remotely by Gpib InterfaceControlling the Switch Remotely by RS232 Interface Calibrating the Switch Maintaining the SwitchPrint #1, CLOSE? Input #1,A$ Print A$ END Operating and Maintenance Instructions Programming Guide Gpib Pin AssignmentRS232 Pin Assignment RS232 Interface SpecificationsGpib Interface Functions Mnemonic FunctionCommand Parser Rules Operation and Query CommandsName Symbol Pin Number Signal Direction RS232 Driver Pin AssignmentClose Set Optical Channel Operation CommandsReset XDR i k Driver ControlQuery Commands Drivers Error NumberLast Number Error LearnStatus Reporting and Service Request Control Condition RegisterStatus Register Gpib Programming Examples SRQ Mask RegisterSRQ Mask Register Bit Sending Commands Serial Polling the Status RegisterGenerating a Service Request Interrupt RS232 Programming ExamplesLearn Query LRN? Setting the Interface Command Set Querying StatusReading the Status Register Syntax Function SC Series Switch Command Set SCXXX-0XXX ModelsSX Series Switch Command Set Bit MessageRQS Busy Normal BAD Data Unit Failure