B&B Electronics manual 232DRIO Terminal Blocks, Serial Port Connections, RS232 Connector Pinout

Page 9

Table 2.1 - 232DRIO Terminal Blocks

Blue

 

Black

Pin #

Function

Pin #

 

 

 

1

- Ground Input Power

1

2

+12Vdc Input Power

2

3#2 N/C-Normally Closed

4#2 N/O-Normally Opened

5#2 C-Common

6#1 C-Common

7#1 N/C-Normally Closed

8#1 N/O-Normally Opened

Function

Opto-Isolated Input

Opto-Isolated Input

Non-polarized

0-30 Vdc/Vac

Serial Port Connections

In order to communicate to the 232DRIO module it must be connected to an RS-232 serial port. The unit is designed for a baud rate of 9600, so the serial port must be set for this rate. A data format of 8 data bits, 1 stop bit and no parity is used. The 232DRIO is configured as a DCE device (See Table 2.2). If your communications equipment is configured as a DTE device, such as a standard IBM PC serial port, the 232DRIO should be connected using a “straight through” DB-25 cable or a standard DB-9 to DB-25 cable adapter as shown in Table 2.3. If your communications equipment is configured as a DCE device, such as a modem, the 232DRIO should be connected using a “null modem” cable (see Table 2.4).

Table 2.2 – RS232 Connector Pinout

DB-9S

 

Signal

 

Direction at

Pin #

Signal

232DRIO

2

Receive Data (RD)

Output

3

Transmit Data (TD)

Input

5

Signal Ground (SG)

------

9

Power pin

Input

 

 

 

Notes

Required

Required

Required

Can be wired to

power unit

232DRIO-0308 Manual

7

B&B Electronics --

PO Box 1040 -- Ottawa, IL 61350

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

Image 9
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 GroundRS232 Connector Pinout 232DRIO Terminal BlocksSerial Port Connections Power Supply Connections 232DRIO To DTE Connections232DRIO To DCE Connections #0R 01FEComp = not x and &HFF Function Command Response 232DRIO CommandsEquivalent Values SyntaxData Bytes Bit Assignments for I/O LinesExample Set Output Lines Data Byte Relays Binary Decimal Relay #2 Relay #1Input #1 Relay #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