B&B Electronics RS-232 Digital Relay I/O 232DRIO manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of B&B Electronics RS-232 Digital Relay I/O 232DRIO, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of B&B Electronics RS-232 Digital Relay I/O 232DRIO one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of B&B Electronics RS-232 Digital Relay I/O 232DRIO. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of B&B Electronics RS-232 Digital Relay I/O 232DRIO should contain:
- informations concerning technical data of B&B Electronics RS-232 Digital Relay I/O 232DRIO
- name of the manufacturer and a year of construction of the B&B Electronics RS-232 Digital Relay I/O 232DRIO item
- rules of operation, control and maintenance of the B&B Electronics RS-232 Digital Relay I/O 232DRIO item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of B&B Electronics RS-232 Digital Relay I/O 232DRIO alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of B&B Electronics RS-232 Digital Relay I/O 232DRIO, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the B&B Electronics service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of B&B Electronics RS-232 Digital Relay I/O 232DRIO.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the B&B Electronics RS-232 Digital Relay I/O 232DRIO item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    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. Co. Inc. 707 Dayto[...]

  • Page 2

    [...]

  • Page 3

    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 .................................................. 3 Packing Li st ..........................................[...]

  • Page 4

    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 ......................................................... 22 Running Demonstrat ion Progr am ...........................[...]

  • Page 5

    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. The 232DRIO offers 1 opto-isolated input and 2 rela y outputs. With these[...]

  • Page 6

    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. The following items should be in the shipping carton: 1. 232DRIO unit 2. Software 3. Thi[...]

  • Page 7

    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.5 VAC/VDC Voltage input high: 5-30 VAC[...]

  • Page 8

    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. Also be sure that the wires[...]

  • Page 9

    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 - Ground Input Power 1 Opto-Isolated Input 2 +12Vdc Input Power 2 Opto-Isolated Input 3 #2 N/C-Normally Closed Non-polarized 4 #2 N/O-Normally Opened 0-30[...]

  • Page 10

    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.4 – 232DRIO To DCE Co[...]

  • Page 11

    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. For normal environments, command strings are from three to four bytes in length; the “!” character, the “0” (zero) charac[...]

  • Page 12

    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{…} No response Read I/O Lines !0R {…} Set Output Lines #0S{…}{~…} No response Read I/O Lines #0R {…}{~…} Symbol: {…} represents one byte <[...]

  • Page 13

    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. The set output command requires one argument field (for normal environments) or two argument fields (data and its comp lement [...]

  • Page 14

    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 y # 1 XXXXXX00 0 0 de-energized de-energized XXXXXX01 1 1 de-energized energized XXXXXX10 2 2 energized de-energized XXXXXX11 3 3 energized energized [...]

  • Page 15

    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. Bit 2 is Input #1, Bit 1 is Relay #2[...]

  • Page 16

    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. Example: !0S <00000011> Description: Relay #2 is energized (“1”)[...]

  • Page 17

    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. Caution must be taken not to exceed 232 DRIO specifications listed in Chapter 1 when interf[...]

  • Page 18

    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. Figure 4.2 - Switch Input Figure 4.3 - Solid State Input 232DRIO EXTERNAL CIRCUIT 5-30 Vdc/Vac Opto Isolated Input 232DRIO EXTERNAL CIRCUIT 5-30 Vd c/Vac Opto Isolate[...]

  • Page 19

    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. Outputs can be used to control[...]

  • Page 20

    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. 0-120 Vac @ 10A max[...]

  • Page 21

    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++. The second section [...]

  • Page 22

    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.BAS) This section shows steps and examples of programming the 232DRIO in QuickBasic. If you are programming in another language, this section can be helpful as a guideline for programming the 232D[...]

  • Page 23

    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.CPP is a demonstrati on program for use with B&B Electronics model 232DRIO module. Much of the work associated with using COM ports in C/C++ has been made easier by including the 232DR[...]

  • Page 24

    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. The DEMO232.EXE is the executable program and the DEMO232.BAS file is the[...]

  • Page 25

    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[...]

  • Page 26

    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 AS CI I DEC HEX AS C I I DEC HEX ASC I I 0 0 NUL ctrl @ 32 20 SP 64 40 @ 96 60 ` 1 1 SOH ctrl A 33 21 ! 65 41 A 97 61 a 2 2 STX ctrl B 34 22 “ 66 42[...]

  • Page 27

    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. The hexadecimal (base 16) numbering system represents each position in succ[...]

  • Page 28

    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. E[...]