B&B Electronics manual Introduction, 232DRIO Features

Page 5

Chapter 1- Introduction

232DRIO Features

The 232DRIO is a general purpose data acquistion controller that is connected to your computer’s RS-232 serial port. The 232DRIO offers 1 opto-isolated input and 2 relay outputs. With these features, the controller can be used to sense external ON/OFF conditions and to control a variety of devices.

The relay outputs are CMOS/TTL compatible. The optically isolated AC/DC input are also CMOS/TTL compatible. For maximum flexibility, both input and outputs are connected with internal screw type terminal blocks. Three LEDs are provided to monitor the status of each of these.

The 232DRIO connects to your computer’s RS-232 serial port through a DB-9F connector. The unit communicates at a baud rate of 9600, 8 data bits, no parity, and 1 stop bit. This unit can not be powered through the handshake lines because of the higher current requirement to drive the relays. However, the unit may be powered by an external +12Vdc source brought in through the power pin, pin #9 of the serial port. If the 232DRIO cannot be powered using the previous method, it may be powered with +12Vdc @ 100mA through the supplied terminal blocks. Power supply is available.

232DRIO-0308 Manual

3

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

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

Image 5
Contents Electronics Mfg. Co. Inc Model 232DRIODesigned and Manufactured Ottawa, Illinois InternetPage Table of Contents Appendix B Table of Contents 232DRIO-0308 ManualIntroduction 232DRIO FeaturesNon-polarized, Optically Isolated Input 232DRIO-0308 Manual 232DRIO SpecificationsRelay Outputs Power SupplyCommunications EnvironmentOpto-isolated Input black terminal blocks ConnectionsRelay Outputs blue terminal blocks GroundSerial Port Connections RS232 Connector Pinout232DRIO Terminal Blocks 232DRIO To DCE Connections Power Supply Connections232DRIO To DTE Connections Comp = not x and &HFF #0R01FE Function Command Response 232DRIO CommandsEquivalent Values SyntaxData Bytes Bit Assignments for I/O LinesInput #1 Relay #2 Relay #1 Example Set Output Lines Data Byte Relays Binary DecimalRelay #2 Relay #1 Set Output Lines Command Read I/O Lines Command0R00000000 Shown in bold face0S03 Argument … shown in bold face0S00000011 …~… shown in bold faceBoard Layout Opto-isolated Input Switch Input Isolated Mechanical Input Relay Outputs 232DRIO External Circuit Digital I/O Mask Values SymbolOpening a COM Port Closing a COM PortRead I/O States Command Using the 232DRIO.LIB with QuickBasicSet Output States Command QuickBasic DEMO232.EXE and DEMO232.BAS#include232DRIO.H void main ++ DEMO232.EXE and DEMO232.CPPQuickBasic Running Demonstration ProgramAppendix a Decimal to HEX to Ascii Conversion Table Appendix a 232DRIO-0308 ManualAppendix B Appendix B 232DRIO-0308 Manual Decimal to Hexadecimal Conversion