Page 2 - TABLE OF CONTENTS
Documentation Number 232OPSDA1397 Manual Table of Contents i B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 TABLE OF CONTENTS CHAPTER 1: INTRODUCTION ...........................................................1 232OPSDA F EATURES .........................
Page 4 - Chapter 1: Introduction; The 232OPSDA is an optically isolated data acquisition module
Documentation Number 232OPSDA1397 Manual 1 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 Chapter 1: Introduction 232OPSDA Features The 232OPSDA is an optically isolated data acquisition module that is connected to your computer’s RS-232 serial port. I...
Page 5 - Packing List; Examine the shipping carton and the contents for physical; RD
2 Documentation Number 232OPSDA1397 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 Figure 1.2: General Block Diagram Packing List Examine the shipping carton and the contents for physical damage. The following items should be in the shipping car...
Page 6 - Software Installation; INSTALL; 32OPSDA Specifications; Analog to Digital Converter
Documentation Number 232OPSDA1397 Manual 3 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 Software Installation The 232OPSDA comes with several a demonstration program. To install these programs on your hard drive: 1. Place the disk in drive A. 2. Type...
Page 7 - A maximum; Digital Output; Connections: Terminal; Communications; Isolation Protection:
4 Documentation Number 232OPSDA1397 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 Digital Input Channels: 1 Voltage Range: -30VDC to +30VDC Low Voltage: -30VDC to 1.0VDC High Voltage: 2.0VDC to 30VDC Leakage Current: 1 µ A maximum Digital Outpu...
Page 8 - Chapter 2: Connections; Terminal
Documentation Number 232OPSDA1397 Manual 5 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 Chapter 2: Connections This chapter will cover the connections required for the 232OPSDA. Four sets of connections are required: A/D converter, digital I/O, seria...
Page 9 - Current Loop; Receiver; to 5VDC Input
6 Documentation Number 232OPSDA1397 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 Figure 2.1: Current Loop Channel Connections (A/D 0) NOTE: W hen using the 4-20mA Current Loop Input with the setup shown in Figure 2.1, A/D 1-5 cannot be used an...
Page 10 - Digital I/O Connections; Terminal block 7 is the digital input line. This input is CMOS/TTL; Serial Port Connections; In order to communicate with the 232OPSDA module it must be
Documentation Number 232OPSDA1397 Manual 7 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 Digital I/O Connections The digital I/O connections are made on the I/O port, which consists of terminal blocks. Table 2.1 shows the terminal block assignments. D...
Page 12 - Power Supply Connections; The 232OPSDA requires an isolated external power supply that
Documentation Number 232OPSDA1397 Manual 9 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 Power Supply Connections The 232OPSDA requires an isolated external power supply that is able to produce 9-16VDC @10mA in addition to the port power. The positive...
Page 14 - Syntax; As mentioned earlier, the command string consists of four bytes.; command Byte; Command Byte
12 Documentation Number 232OPSDA1397 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 Table 3.2 - Equivalent Values Syntax As mentioned earlier, the command string consists of four bytes. The first byte is the start of message byte. The start of m...
Page 15 - Reading A/D Channels Command; The Read A/D channels command returns two bytes for each
Documentation Number 232OPSDA1397 Manual 13 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 The command syntax for the extended command set is shown below: Command Syntax: # 0 _ _ _ _ | | | | | || | | | | Compliment| | | | Data Byte| | | 2 nd Command By...
Page 17 - Sampling Rate; Buffered 0 to 5V A/D Inputs
Documentation Number 232OPSDA1397 Manual 15 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 Chapter 4: A/D This chapter will deal with the various A/D channels and manipulating the data obtained from them. Sampling Rate The A/D converter has a conversio...
Page 18 - to 10VDC A/D Input; LoopCurrent mA
16 Documentation Number 232OPSDA1397 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 inverting amplifier, remove R15 and calculate values for R13 and R14 using the equation below. Gain V Vin R13 R14 = = + 0 1 NOTE: V 0 is the voltage read by the ...
Page 20 - Application Program Interface; hComDev
Documentation Number 232OPSDA1397 Manual 19 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 Chapter 5: Software Application Program Interface The application program interface (API) is a set of routines that makes it easy to communicate with the 232OPSD...
Page 21 - B232OPSDA_ReadDigital; initComPort
20 Documentation Number 232OPSDA1397 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 segment and offset addresses of the integer array where the results of the A/D conversion will be stored. Returns: FALSE (zero) if the function fails, otherwise ...
Page 22 - B232OPSDA_SetDigitalOutput; deinitComPort
Documentation Number 232OPSDA1397 Manual 21 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 B232OPSDA_SetDigitalOutput Purpose: This function sets the states of the digital output lines. Syntax: C: BOOL B232OPSDA_SetDigitalOutput (WORDhComDev, BYTE modA...
Page 23 - Port; Low-Level Communications
22 Documentation Number 232OPSDA1397 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 Syntax: C: WORD initComPort (WORD portAddr, BYTE irq,LONG baudRate); Pascal: function initComPort (portAddr : word; irq: byte; baudRate : longint) as integer; BA...
Page 25 - Read Digital I/O Command; The Read Digital I/O command returns a byte which represents
24 Documentation Number 232OPSDA1397 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 Step 5 - Repeat Step 3 and 4 until each channel has been completed. Step 6 - The various A/D channels have signal conditioning, so mathematical manipulation of t...
Page 26 - status = states AND mask
Documentation Number 232OPSDA1397 Manual 25 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 Step 1 - Constructing the command string: Command$ = “!0RD” Step 2 - Transmitting the command string: Print #1, Command$ Step 3 - Receiving the data: Reply$ = IN...
Page 27 - Set Digital Output State; states
26 Documentation Number 232OPSDA1397 Manual B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 Set Digital Output State The Set Digital Output command is used to set the state of the digital output line. This command requires a data byte. The data byte is ...
Page 28 - Appendix A: Decimal to Hex to ASCII Conversion
Documentation Number 232OPSDA1397 Manual Appendix A A-1 B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350 PH (815) 433-5100 -- FAX (815) 433-5105 Appendix A: Decimal to Hex to ASCII Conversion DECIMAL to HEX to ASCII CONVERSION TABLE DEC HEX ASCII KEY DEC HEX ASCII DEC HEX ASCII DEC HEX ASCII 0...