Instruction/ maintenance manual of the product RS-232 Digital Relay I/O 232DRIO B&B Electronics
Go to page of 28
232DRIO-0308 Manual Cover Page B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 RS-232 Digital Relay I/O Model 232DRIO Documentation Number 232DRIO1005 pn#4520-r2 This product Designed and Manufactured In Ottaw a, Illinois USA of domestic and imported parts by B&B Electronics Mfg.
.
232DRIO-0308 Manual Table of Contents i B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 Table of Contents Chapter 1- Introduction ........................................... 3 232DRIO Feat ures ..........
ii Table of Contents 232DRIO-0308 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 Demonstrati on Progr am ........................................ 22 Hard Drive In stallati on .....................
232DRIO-0308 Manual 3 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 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.
4 232DRIO-0308 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 Figure 1.1 – 232DRIO Module Figure 1.2 – Simplified Block Diagram Packing List Examine the shipping carton and contents for physical damage.
232DRIO-0308 Manual 5 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 Number of Channels: 1 Indication Mode Logic “0”: LED on, digital voltage input high Logic “1”: LED off, digital voltage input low Input Electrical Characteristic Voltage input low: <1.
6 232DRIO-0308 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 Chapter 2 - Connections Do not make any connections to the 232DRIO until you have read this chapter. Remember to power down the unit and any other connected devices before maki ng any kinds of connections.
232DRIO-0308 Manual 7 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 Table 2.1 - 232DRIO Terminal Blocks Blue Pin # Function Black Pin # Function 1 - Gr.
8 232DRIO-0308 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 Table 2.3 – 232DRIO To DTE Connections 232DRIO Pin # Signal DTE DB-25 Connection DTE DB-9 Connection 2 Rec eive Data (RD) 3 2 3 Trans mit Data (TD) 2 3 5 Signal Ground (SG) 7 5 9 Ring Indic ator 22 9 Table 2.
232DRIO-0308 Manual 9 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 There are only two basic commands required to control the 232DRIO: set output lines and read I/O lines.
10 232DRIO-0308 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 Table 3.1 – 232DRIO Commands Function Command Response Set Output Lines !0S{…}.
232DRIO-0308 Manual 11 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 used to specify which command will be executed by the controller,either the “R” or “S” character.
12 232DRIO-0308 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 Example 3.1 Set Output Lines Data Byte Relays Binary Decimal Hex Relay #2 R e l a .
232DRIO-0308 Manual 13 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 Read I/O Lines Command The Read I/O Lines command returns one data byte (with the “!”) and two data bytes (data and its co mplement with the “#”) that reflects the state of the I/O lines.
14 232DRIO-0308 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 Command: !0S Argument: {…} (shown in bold face) Response: none ASCII Example: !0S <ETX> Dec. Example: !0S <3> Hex. Example: !0S <03> Bin.
232DRIO-0308 Manual 15 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 This chapter will explain "H IGH" and "LOW" states and show some general examples of how to in terface to the I/O lines.
16 232DRIO-0308 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 Figures 4.2 - 4.4 show examples of some typical input interfaces.
232DRIO-0308 Manual 17 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 Figure 4.4 - Isolated Mechanical Input Relay Outputs Relay outputs are used to turn external devices on or off. Relay outputs are CMOS/TTL compatible and can also operate between 0- 24Vdc and 0-115Vac.
18 232DRIO-0308 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 Figures 4.5 - 4.6 show examples of some typical output interfaces. Figure 4.5 – Isolated Connection to External Circuit Figure 4.6 – Isolated Connection to External Devices EXTERNAL CIRCUIT 0-30 Vdc @ 8A max.
232DRIO-0308 Manual 19 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 Chapter 5 - Software This chapter will be divided into two sections. The first section covers programming techniques for opening/closing a com port, receiving data, and manipulating dat a in QuickBasic and C/C++.
20 232DRIO-0308 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 QuickBasic (DEMO232.EXE and DEMO232.
232DRIO-0308 Manual 21 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 C/C++ (DEMO232.EXE and DEMO232.CPP) DEMO232.
22 232DRIO-0308 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 Demonstration Program The Demonstration Programs (IBM PC or Compatible) provide the user with examples of how to receive and transmit commands to the 232DRIO.
232DRIO-0308 Manual Appendix A A-1 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 APPENDIX A ASCII Character Codes.
A-2 Appendix A 232DRIO-0308 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 DECIMAL to HEX to AS CII CONVERSION TABLE DEC HEX ASC I I KEY DEC HEX .
232DRIO-0308 Manual Appendix B B-1 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 The decimal (base 10) numbering system represents each position in successive powers of 10, with each decimal symbol having a value from 0 to 9.
B-2 Appendix B 232DRIO-0308 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5104 Hexadecimal to Decimal Conversion: Decimal = (1st Hex digit x 4096) + (2nd Hex digit x 256) + (3rd Hex digit x 16) + (4th Hex digit) Each "Hex digit" is the decimal equivalent value of the hexadecimal symbol.
An important point after buying a device B&B Electronics RS-232 Digital Relay I/O 232DRIO (or even before the purchase) is to read its user manual. We should do this for several simple reasons:
If you have not bought B&B Electronics RS-232 Digital Relay I/O 232DRIO yet, this is a good time to familiarize yourself with the basic data on the product. First of all view first pages of the manual, you can find above. You should find there the most important technical data B&B Electronics RS-232 Digital Relay I/O 232DRIO - thus you can check whether the hardware meets your expectations. When delving into next pages of the user manual, B&B Electronics RS-232 Digital Relay I/O 232DRIO you will learn all the available features of the product, as well as information on its operation. The information that you get B&B Electronics RS-232 Digital Relay I/O 232DRIO will certainly help you make a decision on the purchase.
If you already are a holder of B&B Electronics RS-232 Digital Relay I/O 232DRIO, but have not read the manual yet, you should do it for the reasons described above. You will learn then if you properly used the available features, and whether you have not made any mistakes, which can shorten the lifetime B&B Electronics RS-232 Digital Relay I/O 232DRIO.
However, one of the most important roles played by the user manual is to help in solving problems with B&B Electronics RS-232 Digital Relay I/O 232DRIO. Almost always you will find there Troubleshooting, which are the most frequently occurring failures and malfunctions of the device B&B Electronics RS-232 Digital Relay I/O 232DRIO along with tips on how to solve them. Even if you fail to solve the problem, the manual will show you a further procedure – contact to the customer service center or the nearest service center