B&B Electronics 232DRIO manual Table of Contents

Page 3

Table of Contents

 

Chapter 1- Introduction

3

232DRIO Features

3

Packing List

2

232DRIO Specifications

3

Opto-Isolated Input

3

Relay Outputs

3

Power Supply

3

Communications

3

Environment

3

Size

3

Chapter 2 - Connections

5

I/O Connections

………5

Opto-isolated Input

5

Relay Outputs

5

Ground

5

Serial Port Connections

6

Power Supply Connections

7

Chapter 3 - Commands

9

Syntax

10

I/O Data Bytes

11

Read I/O Lines Command

.....................................

13

Set Output Lines Command

13

Chapter 4 - I/O Interfacing

15

Opto-isolated Input

15

Relay Outputs

17

Chapter 5 - Software

19

Programming Techniques

19

Opening a COM Port

19

Closing a COM Port

19

QuickBasic

20

Read I/O States Command

20

Set Output States Command

20

C/C++

21

Read I/O States Command

21

Set Output States Command

21

232DRIO-0308 Manual

Table of Contents

i

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

PH (815) 433-5100 --

FAX (815) 433-5104

 

Image 3
Contents Internet Model 232DRIOElectronics Mfg. Co. Inc Designed and Manufactured Ottawa, IllinoisPage Table of Contents Appendix B Table of Contents 232DRIO-0308 ManualIntroduction 232DRIO FeaturesNon-polarized, Optically Isolated Input 232DRIO-0308 Manual 232DRIO SpecificationsEnvironment Power SupplyRelay Outputs CommunicationsGround ConnectionsOpto-isolated Input black terminal blocks Relay Outputs blue terminal blocksRS232 Connector Pinout 232DRIO Terminal BlocksSerial Port Connections Power Supply Connections 232DRIO To DTE Connections232DRIO To DCE Connections #0R 01FEComp = not x and &HFF Syntax 232DRIO CommandsFunction Command Response Equivalent ValuesData Bytes Bit Assignments for I/O LinesExample Set Output Lines Data Byte Relays Binary Decimal Relay #2 Relay #1Input #1 Relay #2 Relay #1 Shown in bold face Read I/O Lines CommandSet Output Lines Command 0R00000000…~… shown in bold face Argument … shown in bold face0S03 0S00000011Board Layout Opto-isolated Input Switch Input Isolated Mechanical Input Relay Outputs 232DRIO External Circuit Closing a COM Port SymbolDigital I/O Mask Values Opening a COM PortQuickBasic DEMO232.EXE and DEMO232.BAS Using the 232DRIO.LIB with QuickBasicRead I/O States Command Set Output States Command#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