B&B Electronics 232DRIO manual Switch Input

Page 18

Figures 4.2 - 4.4 show examples of some typical input interfaces.

232DRIO

EXTERNAL CIRCUIT

Opto Isolated Input

5-30 Vdc/Vac

Figure 4.2 - Switch Input

232DRIO

EXTERNAL CIRCUIT

Opto Isolated Input

5-30 Vdc/Vac

Figure 4.3 - Solid State Input

16

232DRIO-0308 Manual

B&B Electronics --

PO Box 1040 -- Ottawa, IL 61350

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

Image 18
Contents Designed and Manufactured Ottawa, Illinois Model 232DRIOElectronics Mfg. Co. Inc InternetPage Table of Contents Table of Contents 232DRIO-0308 Manual Appendix B232DRIO Features Introduction232DRIO Specifications Non-polarized, Optically Isolated Input 232DRIO-0308 ManualCommunications Power SupplyRelay Outputs EnvironmentRelay Outputs blue terminal blocks ConnectionsOpto-isolated Input black terminal blocks GroundRS232 Connector Pinout 232DRIO Terminal BlocksSerial Port Connections Power Supply Connections 232DRIO To DTE Connections232DRIO To DCE Connections #0R 01FEComp = not x and &HFF Equivalent Values 232DRIO CommandsFunction Command Response SyntaxBit Assignments for I/O Lines Data BytesExample Set Output Lines Data Byte Relays Binary Decimal Relay #2 Relay #1Input #1 Relay #2 Relay #1 0R00000000 Read I/O Lines CommandSet Output Lines Command Shown in bold face0S00000011 Argument … shown in bold face0S03 …~… shown in bold faceBoard Layout Opto-isolated Input Switch Input Isolated Mechanical Input Relay Outputs 232DRIO External Circuit Opening a COM Port SymbolDigital I/O Mask Values Closing a COM PortSet Output States Command Using the 232DRIO.LIB with QuickBasicRead I/O States Command QuickBasic DEMO232.EXE and DEMO232.BAS++ DEMO232.EXE and DEMO232.CPP #include232DRIO.H void mainRunning Demonstration Program QuickBasicAppendix a Appendix a 232DRIO-0308 Manual Decimal to HEX to Ascii Conversion TableAppendix B Decimal to Hexadecimal Conversion Appendix B 232DRIO-0308 Manual