B&B Electronics 232OPSDA manual

Page 11

Table 2.2 - RS-232 Connector Pinout

DB25S

 

 

 

 

232OPSD

 

 

 

 

 

Pin #

 

 

Signal

 

A Function

 

 

Notes

 

 

 

 

 

 

 

 

 

 

 

2

 

Transmit Data (TD)

 

Input

 

Connection is required.

3

 

Receive Data (RD)

 

Output

 

Connection is required.

4

 

Request to Send (RTS)

 

Input

 

Used for power.

5

 

Clear to Send (CTS)

 

 

 

 

Internally connected to

 

 

 

 

 

 

 

 

 

RTS (pin 4).

6

 

Data Set Ready (DSR)

 

 

 

 

Internally connected to

 

 

 

 

 

 

 

 

 

DTR (pin 20).

7

 

Signal Ground (SG)

 

 

 

 

Connection is required.

8

 

Data Carrier Detect (DCD)

 

 

 

 

Internally connected to

 

 

 

 

 

 

 

 

 

to DTR (pin 20).

12

 

Signal Ground (SG)

 

 

 

 

 

 

 

20

 

Data Terminal Ready

 

Input

 

Used for power.

 

 

 

(DTR)

 

 

 

 

 

 

 

25

 

Optional Power Supply

 

 

 

 

Connect Power Supply

 

 

 

Connection

 

 

 

 

to this pin if RTS and

 

 

 

 

 

 

 

 

 

DTR are not available

 

 

 

 

Table 2.3 - 232OPSDA To DTE Connections

 

 

 

232SPDA

 

 

DTE DB-25

DTE DB-9

 

 

Pin #

 

Signal

 

Connection

Connection

 

 

 

 

 

 

 

 

 

 

 

 

2

 

 

Transmit Data (TD)

 

 

2

3

 

 

3

 

 

Receive Data (RD)

 

 

3

2

 

 

4

 

 

Request to Send (RTS)

 

 

4

7

 

 

5

 

 

Clear to Send (CTS)

 

 

5

8

 

 

6

 

 

Data Set Ready (DSR)

 

 

6

6

 

 

7

 

 

Signal Ground (SG)

 

 

7

5

 

 

8

 

 

Data Carrier Detect (DCD)

 

8

1

 

 

20

 

 

Data Terminal Ready (DTR)

 

20

4

 

Table 2.4 - 232OPSDA To DCE Connections

232OPSDA

 

DCE DB-25

DCE DB-9

Pin #

Signal

Connection

Connection

 

 

 

 

2

Transmit Data (TD)

3

2

3

Receive Data (RD)

2

3

4

Request to Send (RTS)

5

8

5

Clear to Send (CTS)

4

7

6

Data Set Ready (DSR)

20

4

7

Signal Ground (SG)

7

5

8

Data Carrier Detect (DCD)

N/C

N/C

20

Data Terminal Ready (DTR)

6

6

8Documentation Number 232OPSDA1397 Manual

B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350

PH (815) 433-5100 -- FAX (815) 433-5105

Image 11
Contents Internet Electronics Mfg. Co. IncDesigned and Manufactured Ottawa, Illinois Table of Contents Page Introduction 232OPSDA FeaturesPacking List General Block DiagramAnalog to Digital Converter Software Installation232OPSDA Specifications Communications Power SupplyDigital Input Digital OutputTerminal Function Description Block Connections232OPSDA Serial Port Connections Digital I/O Connections232OPSDA Power Supply Connections Commands Syntax Reading A/D Channels Command States Reading Digital I/O CommandSet Digital Output Command 0RDBuffered 0 to 5V A/D Inputs Sampling RateConverter Range Non-buffered 0 to 5VDC A/D Inputs20mA Current Loop A/D Input To 10VDC A/D InputGain = Application Program Interface Syntax C B232OPSDAReadDigitalSee Also B232OPSDASetDigitalOutputReturns DeinitComPort PurposeDeinitComPort Low-Level CommunicationsPort Address Returns See AlsoMSB$ = INPUT$1, #1 LSB$ = INPUT$1, #1 Read A/D CommandCommand$ = !0RA + CHR$channel Print #1, Command$Read Digital I/O Command Status = states and mask Command$ = !0RDReply$ = INPUT$ 1, #1 States = ASCReply$States = states and NOTmask Command$ = !0SO + CHR$statesSet Digital Output State ‘ Set Output High states = states or maskDecimal to HEX to Ascii Conversion Table Appendix a Decimal to Hex to Ascii Conversion