B&B Electronics manual Introduction, 232OPSDA Features

Page 4

Chapter 1: Introduction

232OPSDA Features

The 232OPSDA is an optically isolated data acquisition module that is connected to your computer’s RS-232 serial port. It provides 2500V of optical isolation protection between the I/O and RS-232 side of the module. The 232OPSDA offers six channels of 12-bit A/D, one digital input, and one digital output. The six A/D input channels can be used for a number of applications. One A/D channel can read a 4-20mA analog current, two buffered channels read voltages between 0 and 5V, two non-buffered channels read voltages between 0 and 5V, and one channel can read voltages between 0 and 10V.

The 232OPSDA connects to your computer’s RS-232 serial port through a DB-25S (female) connector. The module automatically detects baud rates from 1,200 to 9,600. A data format of 8 data bits, 1 stop bit, and no parity is used.

The RS-232 side of the 232OPSDA is port powered. Power is drawn from RTS and DTR regardless of whether they are asserted HIGH or LOW. In addition, an isolated external power supply is required to power the I/O side of the module. Both port-powering and the external power supply are required. The 232OPSDA requires a power supply that produces 9-16VDC @ 10mA (not including power consumption of external devices).

Figure 1.1: 232OPSDA Module

Documentation Number 232OPSDA1397 Manual

1

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

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

Image 4
Contents Designed and Manufactured Ottawa, Illinois Electronics Mfg. Co. IncInternet Table of Contents Page 232OPSDA Features IntroductionGeneral Block Diagram Packing List232OPSDA Specifications Software InstallationAnalog to Digital Converter Power Supply Digital InputDigital Output CommunicationsConnections Terminal Function Description Block232OPSDA Digital I/O Connections Serial Port Connections232OPSDA Power Supply Connections Commands Syntax Reading A/D Channels Command Reading Digital I/O Command Set Digital Output Command0RD StatesSampling Rate Converter RangeNon-buffered 0 to 5VDC A/D Inputs Buffered 0 to 5V A/D InputsTo 10VDC A/D Input 20mA Current Loop A/D InputGain = Application Program Interface B232OPSDAReadDigital Syntax CB232OPSDASetDigitalOutput ReturnsDeinitComPort Purpose See AlsoLow-Level Communications Port AddressReturns See Also DeinitComPortRead A/D Command Command$ = !0RA + CHR$channelPrint #1, Command$ MSB$ = INPUT$1, #1 LSB$ = INPUT$1, #1Read Digital I/O Command Command$ = !0RD Reply$ = INPUT$ 1, #1States = ASCReply$ Status = states and maskCommand$ = !0SO + CHR$states Set Digital Output State‘ Set Output High states = states or mask States = states and NOTmaskAppendix a Decimal to Hex to Ascii Conversion Decimal to HEX to Ascii Conversion Table