PCI-AC51 OPTO 22, PCI-AC51 Datasheet

Computers, Interface Cards

PCI-AC51

Manufacturer Part Number
PCI-AC51
Description
Computers, Interface Cards
Manufacturer
OPTO 22
Datasheet

Specifications of PCI-AC51

Peak Reflow Compatible (260 C)
No
Leaded Process Compatible
No
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
PCI-AC51 USER’S GUIDE
Form 1459-090810—August 2009
43044 Business Park Drive
Temecula
CA 92590-3614
Phone: 800-321-OPTO (6786) or 951-695-3000
Fax: 800-832-OPTO (6786) or 951-695-2712
www.opto22.com
Product Support Services
800-TEK-OPTO (835-6786) or 951-695-3080
Fax: 951-695-3017
Email: support@opto22.com
Web: support.opto22.com

Related parts for PCI-AC51

PCI-AC51 Summary of contents

Page 1

... PCI-AC51 USER’S GUIDE Form 1459-090810—August 2009 43044 Business Park Drive Phone: 800-321-OPTO (6786) or 951-695-3000 Fax: 800-832-OPTO (6786) or 951-695-2712 www.opto22.com Product Support Services 800-TEK-OPTO (835-6786) or 951-695-3080 Fax: 951-695-3017 Email: support@opto22.com Web: support.opto22.com Temecula CA 92590-3614 • • ...

Page 2

... Ericsson is a trademark of Telefonaktiebolaget LM Ericsson. CompactLogix, and RSLogix are trademarks of Rockwell Automation. Allen-Bradley and ControlLogix are a registered trademarks of Rockwell Automation. CIP and EtherNet/IP are trademarks of ODVA. All other brand or product names are trademarks or registered trademarks of their respective companies or organizations. ii PCI-AC51 User’s Guide ...

Page 3

... Table of Contents Chapter 1: Installing the PCI-AC51 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Introduction System Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 What’s in this Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 For Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Quick Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Installing Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Installing Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Testing the Card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Changing Your Application for the PCI-AC51 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Chapter 2: Programming with the PCI-AC51 Toolkit in Windows . . . . . . . . . . . 7 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 What Is the PCI-AC51 Toolkit Installation ...

Page 4

... Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Converting Applications to the PCI-AC51 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Applications that Used the OptoPMUX.DLL for the AC5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 Converting Applications that Use Inp( ) and Outp .19 For the Windows 95/98 or Windows NT Historic OptoPMux User . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 Functions No Longer in Use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20 Changed Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20 Special Precautions for the Software Developer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 iv ...

Page 5

... PCI-AC51 requires a 5.0- and 3.3-volt environment. NOTE: The PCI-AC51 itself is no faster than its ISA cousin, the AC28, but it is the better choice if you have no available ISA slots or available I/O addresses. The PCI-AC28 is not recommended for new designs; use the PCI-AC51 instead ...

Page 6

... PCI compliance Opto 22 brain compatibility Switches LEDs Operating temperature Storage temperature LEDs The PCI-AC51 adapter card, its four LEDs, and their functions are shown in the following diagram. LED 1: Reset level (On = Low) LED 3: Write LED 4: Read 2 PCI-AC51 User’s Guide 5 VDC @ 500 mA 3 ...

Page 7

... This guide assumes that you are familiar with Pamux and the brains, racks, and input/output modules used with Pamux. For more information on Pamux, see Opto 22 form #726, Pamux User’ s Guide. If you are going to program the PCI-AC51 using the PCI-AC51 Toolkit, this guide assumes that you are already familiar with programming in Microsoft ...

Page 8

... Testing the Card The easiest way to test the card is to use the PamScan PCI utility, included in the PCI-AC51 Toolkit. Using PamScan PCI, you can read and write directly to points on the I/O unit, without going through your application. Before testing, attach the I/O unit using a flat HH-series ribbon cable with a 50-pin 4 PCI-AC51 User’ ...

Page 9

... LED 1; if reset level is low, LED 1 is on. See page 2.) IMPORTANT: The reset level set here and the reset level set on all the Pamux brains in your system must match. 4. Click Open PCI Card. CHAPTER 1: INSTALLING THE PCI-AC51 Pin 1 PCI-AC51 User’s Guide 5 5 ...

Page 10

... Change values and watch them automatically written.) 6. When you have finished testing the card, click Exit. Changing Your Application for the PCI-AC51 If you have been using an AC28 adapter card for the ISA bus, you will need to make some changes to your application because of the new PCI adapter card ...

Page 11

... Programming with the PCI-AC51 Toolkit in Windows Overview To simplify communication to the Pamux bus, you can use Opto 22’s PCI-AC51 Toolkit. This chapter explains how to use the toolkit. What Is the PCI-AC51 Toolkit? The PCI-AC51 Toolkit provides an interface between Pamux stations and application programs written in Microsoft Visual C++ and Visual Basic 6 ...

Page 12

... INSTALLATION Installation The PCI-AC51 toolkit comes with the card. If you do not have the CD, you can order it through Product Support, or you can download the toolkit free from our Web site, www.opto22.com/products/softdevkits.asp. Pamux Functions Required Function Calls For many applications, only four Pamux functions are required: 1 ...

Page 13

... Also include the DLL link library OptoPM32.lib in your project so the DLL references are resolved. These files may be found in the toolkit under \Vc\VC Project Includes. CHAPTER 2: PROGRAMMING WITH THE PCI-AC51 TOOLKIT IN WINDOWS Handle to a PCI-AC51 card. Handles are acquired using page 17 ...

Page 14

... ResetLevel high reset low reset. Set the reset level to match the reset level configured on the Pamux long brains. This function does not reset the Pamux bus. Releases the handle to the PCI-AC51 and turns on hHandle long LEDs 1 and 2. long Resets the PCI-AC51 card and resets the Pamux bus. ...

Page 15

... PamuxDigBank16Config long PamuxDigBank32Config long PamuxDigBankRead long PamuxDigBank16Read long PamuxDigBank32Read * Note for Visual Basic users: * indicates a “by reference” argument. CHAPTER 2: PROGRAMMING WITH THE PCI-AC51 TOOLKIT IN WINDOWS Parameter Parameter Type long hHandle long Bank long Configures a bank of digital I/O points as OutputMask either inputs or outputs. A “ ...

Page 16

... Digital Point Operations Function Function Type long PamuxDigPointConfig long PamuxDigPointRead long PamuxDigPointWrite * Note for Visual Basic users: * indicates a “by reference” argument. 12 PCI-AC51 User’s Guide Parameter Parameter Type long hHandle long Bank long Data Writes outputs using the value in Data. long hHandle Inputs are not affected if written to ...

Page 17

... Type long PamuxAnaBank16Config long PamuxAnaBank16Read long PamuxAnaBank16Write * Note for Visual Basic users: * indicates a “by reference” argument. CHAPTER 2: PROGRAMMING WITH THE PCI-AC51 TOOLKIT IN WINDOWS Parameter Type long hHandle Provides the Pamux metrics needed: the long * pBank PCI-AC51 handle, the bank number, and the point ...

Page 18

... Analog Watchdog Operations Function Function Type long PamuxAnaWatchdogSet long PamuxAnaWatchdogTime * Note for Visual Basic users: * indicates a “by reference” argument. 14 PCI-AC51 User’s Guide Parameter Parameter Type long hHandle Configures an analog point as either an long Bank input or output. A non-zero value to bOutput long Point configures the point as an output ...

Page 19

... PamuxUtilBitSetTo void PamuxUtilBitSet void PamuxUtilBitClr long PamuxUtilBitTest * Note for Visual Basic users: * indicates a “by reference” argument. CHAPTER 2: PROGRAMMING WITH THE PCI-AC51 TOOLKIT IN WINDOWS Parameter Parameter Type long Gets an analog board’s status and returns hHandle an equivalent error. Analog read functions ...

Page 20

... PamuxUtilScaleI2I float PamuxUtilScaleI2F float PamuxUtilScaleF2F long PamuxUtilScaleF2I * Note for Visual Basic users: * indicates a “by reference” argument. 16 PCI-AC51 User’s Guide Parameter Parameter Type Pack/Unpack Utility Operations long * DestInt Converts an array of boolean (0 or not long SourceArray[] 0) values to a bit packed integer. ...

Page 21

... A historic WinRT error that doesn’t apply to the Bad I/O port used OptoPM32.DLL. Out of handles to allo- The PCI-AC51 you attempted to open is already open. cate The Open command has Not currently used in the OptoPM32.DLL. conflicting parameters Point number is bad The point argument is lower than zero or greater than 7 ...

Page 22

... Update all toolkit installations toolkit. with the latest toolkits. An unsupported PCI-AC51 function is called from the appli- OptoPM32 does not sup- cation. The PCI-AC51 does not support the identify type port this function. ...

Page 23

... This new library eliminates the need for a WinRT/OptoPort utility. Each PCI card is referenced by PCI slot number. The lowest numbered board, zero, is the PCI-AC51 installed in the lowest PCI slot number and bus number. Note that internal PCI slot numbers have no correlation with any “SLOT” ...

Page 24

... PamuxCardSetReset Special Precautions for the Software Developer No exclusive access—The PCI-AC51 Toolkit allows PCI-AC51 cards to be used. Only a single handle to a card is permitted. If you use a multiple threaded application, implement a mutex on the handle to avoid thread collision. If multiple applications are required to access the hardware, another application is required to synchronize the access ...

Related keywords