B&B Electronics 232OPSDA manual

Page 9

RS-232 Port

232OPSDA

A/D0

 

A/D1

A/D2

A/D3

A/D4

A/D5

GND

 

 

 

 

 

 

 

 

 

 

TB0

TB1

 

TB2

TB3

TB4

TB5

 

TB8

 

 

 

 

 

 

 

 

 

 

Output

 

Input

4-20mA

4-20mA Current

4-20mA

Current Loop

Loop

Current Loop

Transmitter

 

Receiver

Return

 

Out

Figure 2.1: Current Loop Channel Connections (A/D 0)

NOTE: When using the 4-20mA Current Loop Input with the setup shown in Figure 2.1, A/D 1-5 cannot be used and should be connected to the terminal block labeled GND.

232OPSDA

A/D 1 A/D 2 A/D 3 A/D 4 A/D 5 A/D 0

GND

TB 1

TB 2

TB 3

TB 4

TB 5

TB 0

TB 8

0 to 5VDC Input

0 to 5VDC Input

0 to 10VDC Input

0 to 5VDC Input

0 to 5VDC Input

GND

Figure 2.2: Required Connections for A/D 1- A/D 5

6Documentation Number 232OPSDA1397 Manual

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

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

Image 9
Contents Electronics Mfg. Co. Inc Designed and Manufactured Ottawa, IllinoisInternet Table of Contents Page Introduction 232OPSDA FeaturesPacking List General Block DiagramSoftware Installation 232OPSDA SpecificationsAnalog to Digital Converter Digital Input Power SupplyDigital Output CommunicationsTerminal Function Description Block Connections232OPSDA Serial Port Connections Digital I/O Connections232OPSDA Power Supply Connections Commands Syntax Reading A/D Channels Command Set Digital Output Command Reading Digital I/O Command0RD StatesConverter Range Sampling RateNon-buffered 0 to 5VDC A/D Inputs Buffered 0 to 5V A/D Inputs20mA Current Loop A/D Input To 10VDC A/D InputGain = Application Program Interface Syntax C B232OPSDAReadDigitalReturns B232OPSDASetDigitalOutputDeinitComPort Purpose See AlsoPort Address Low-Level CommunicationsReturns See Also DeinitComPortCommand$ = !0RA + CHR$channel Read A/D CommandPrint #1, Command$ MSB$ = INPUT$1, #1 LSB$ = INPUT$1, #1Read Digital I/O Command Reply$ = INPUT$ 1, #1 Command$ = !0RDStates = ASCReply$ Status = states and maskSet Digital Output State Command$ = !0SO + CHR$states‘ Set Output High states = states or mask States = states and NOTmaskDecimal to HEX to Ascii Conversion Table Appendix a Decimal to Hex to Ascii Conversion