Page 1
PCI-AC51 AND PCIE-AC51 USER’S GUIDE Form 1459-170209—February 2017 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...
Page 2
Specifications are subject to change without notice. Opto 22 warrants all of its products to be free from defects in material or workmanship for 30 months from the manufacturing date code. This warranty is limited to the original cost of the unit only and does not cover installation, labor, or any other contingent costs.
The PCIe-AC51 is compatible with computers using the PCI Express bus. These cards are an ideal choice when replacing an older PC with an ISA bus connected to an Opto 22 AC28 or PCI-AC28 adapter card. (The AC28 and PCI-AC28 adapter cards are not recommended for new designs.
Each PCI-AC51 and PCIe-AC51 connects to one Pamux bus, and each Pamux bus consists of up to 512 I/O points. To easily address and reference so many points, Opto 22 brains and software logically group the I/O into banks, which are sets of eight consecutive points.
CHAPTER 1: INTRODUCTION The following table shows a list of Opto 22 brains and the maximum number of points (and equivalent number of banks) they can access via a Pamux bus. The Opto 22..can access ...which is the same as...
Page 8
FOR HELP PCI-AC51 and PCIe-AC51 User’s Guide...
Chapter 0 2: Installing the Card This chapter describes how to install the PCI-AC51 or PCIe-AC51 adapter card. You can use any available expansion slot on the computer. You may add multiple adapter cards for convenience, but note that multiple cards do not increase Pamux throughput.
2. Before handling the card, discharge static electricity by touching the computer’s metal chassis. 3. Starting with the connector end that allows the cable to lie flat, push the ribbon cable through one of the slot openings in the computer. PCI-AC51 and PCIe-AC51 User’s Guide...
Page 11
If you have been using an AC28 adapter card for the ISA bus, you will need to make some changes to your legacy applications because of the new adapter card. See Appendix B: Converting Applications to a Newer Card for more information. PCI-AC51 and PCIe-AC51 User’s Guide...
Page 12
INSTALLING THE PCIE-AC51 PCI-AC51 and PCIe-AC51 User’s Guide...
To help you get started, the SDK includes a fully functioning Visual C# solution (.sln file) that interfaces with the PCI-AC51 and PCIe-AC51. You can use this solution as an example for building your own custom applications. When you install the SDK, the solution is copied to the C:\Program Files\Opto22\PC-PAMUX-SDK\Examples\PamScan folder.
SDK will be installed. Note that if the SDK is already installed, the Setup Wizard prompts you to uninstall it before continuing. 3. On the Device Driver Installation Wizard screen, click Next to install the driver. After the driver is installed, this screen appears: PCI-AC51 and PCIe-AC51 User’s Guide...
Pamux brain. Reset Level field Card selector button 3. In the Adapter Card ID field, use the default value (0) if you have only one PCI-AC51 or PCIe-AC51 card installed. If you have more than one card installed: a.
Page 16
Then, in one of PamScan’s Bank # fields, type the bank’s number, and select the I/O type (Analog or Digital). In this image, is the bank number and its points are digital I/O. Type the bank number Select the I/O type PCI-AC51 and PCIe-AC51 User’s Guide...
Page 17
“Output” NOTE: When a Pamux brain powers up, all points are automatically configured as inputs. (However, if you accidentally configured an input point as an output, you will have to reconfigure it as an input.) PCI-AC51 and PCIe-AC51 User’s Guide...
When you install the SDK, new folders are created in the C:\Program Files\Opto22\PC-PAMUX-SDK directory. These folders contain the sample code, documentation, demo utility, and, most importantly, software stacks and kernel driver installers that you need for building custom applications. Pamux SDK folder PCI-AC51 and PCIe-AC51 User’s Guide...
Page 19
The SDK contains several .NET managed software stacks. Applications built with any of the software stacks will work with both the PCI-AC51 and PCIe-AC51 adapter cards. Although the files in each stack have the same filenames, each stack is different. When you create a...
PCIAC51_Card object, depending on what function was called. Error and warning messages are also logged in the Application area of the Windows Event Log. The messages are grouped under the application name, Opto 22 PCI-AC51. Multi-threaded Applications. The Pamux Systems SDK permits only a single handle to a card.
To install the driver, run dpinst.exe in the folder that contains the driver’s installation components. For more information about the Driver Package Installer, see Microsoft’s Hardware Dev Center website at https://developer.microsoft.com/en-us/windows/hardware. Opto 22 encourages OEMs that distribute software to wrap their applications and the necessary DLLs in an installer. PCI-AC51 and PCIe-AC51 User’s Guide...
To run the legacy program without recompiling: • Include these files with the legacy program files: OptoPM32.dll pciac51_unmanaged.dll Converting VB Legacy Programs When converting Visual Basic (VB) legacy programs, be sure to register OCX files. PCI-AC51 and PCIe-AC51 User’s Guide...
The direct access method relies on the assump- tion that no other process will attempt to access the hardware. This can cause resource conflicts, which is part of the reason Microsoft changed the driver architecture in Windows 7 (and higher). PCI-AC51 and PCIe-AC51 User’s Guide...
Understanding the Pamux Bus Reset Line This section explains the terminology and functioning of the Pamux bus reset line and its interaction between the PCI-AC51 or PCIe-AC51 card and the Pamux brains. The Reset Line The purpose of the reset line on the Pamux bus is to provide a way to reset all the brains in the system to their default powerup state.
One consideration is how you want your system to function if the computer loses power. Without power to the computer, the PCI-AC51 or PCIe-AC51 cannot drive the reset line high, so by default it will be low. You would want to analyze your system needs to determine what is necessary for your system to automatically go into failsafe mode.
Page 26
UNDERSTANDING THE PAMUX BUS RESET LINE PCI-AC51 and PCIe-AC51 User’s Guide...
This appendix provides system requirements, card specifications, and information on card LEDs. System Requirements Here’s what you need to install and run the software provided for the PCI-AC51 and PCIe-AC51: • A computer with a 64- or 32-bit processor, 1 GHz or higher. The most recent version of BIOS must be installed.
Write—Blinks when a Pamux write is executed. • Read—Blinks when a Pamux read is executed. NOTE: If the PCI-AC51 is rapidly or continually accessed, the blinking indicators may appear to stick on (will not blink). This is normal. PCI-AC51 and PCIe-AC51 User’s Guide...
Reset—Indicates the state of the reset line, which can be either High or Low (On = High). • Hardware—Blinks when the PCIe-AC51 is accessed. NOTE: If the PCIe-AC51 is rapidly or continually accessed, the blinking indicators may appear to stick on (will not blink). This is normal. PCI-AC51 and PCIe-AC51 User’s Guide...
Page 30
LEDS PCI-AC51 and PCIe-AC51 User’s Guide...
Inp() and Outp() function calls at the user level are unsupported because of the Windows hardware abstraction layer. To integrate with the existing Pamux interface, the PCI-AC51 and PCIe-AC51 mimic the 50-wire IDC connector and the Pamux timing interface. The hardware model to the PC is radically different compared to the AC28.
Page 32
CONVERTING APPLICATIONS THAT USE INP( ) AND OUTP( ) PCI-AC51 and PCIe-AC51 User’s Guide...
Windows kernel-mode driver. The information provided is as is; you use this information at your own risk. Opto 22 does not support any kernel layer or drivers other than those we provide.
ARCHITECTURE Architecture The PCI-AC51 and PCIe-AC51 cards contain an Altera FPGA (U8 on the PCI-AC51 and U1 on the PCIe-AC51). The Altera FPGA implements the PCI or PCI Express interface to the host computer, regulating data transactions between the host computer and the adapter card while also providing adapter card configuration information to the host computer's BIOS.
Pamux bus cycle was a Pamux read. Switch/Jumper Register (0x05) Provides state of the switches on the PCI-AC51 or state of the jumpers on the PCIe-AC51. Custom driver applications may use S1 through S4 (or J1 through J4) in any desired fashion.
• ResetBrainsAndReturnToNormal() Controlling the Reset Line When Not Using the Pamux Driver Bit 0 of the Reset Control Register on the PCI-AC51 and the PCIe-AC51 is used to control the reset line. • When bit 0 is set to zero, the reset line will be HIGH and LED 1 will be ON.
Pamux settings. • The PCI-AC51 has six DIP switches (the DS1 bank). A switch in the ON position reads as a zero and OFF reads as a one. The card is shipped with all switches in the ON position. •...
(ns). Through the lifecycle of Pamux hardware, this time was increased to 2,700 ns (brain and AC28s with a Lattice chip). When S5 is on (PCI-AC51) or jumper 5 is not installed (PCIe-AC51), the card maintains the last AC28 (Rev K) timing specification, 2,700 ns.
The bit positions in the Switch/Jumper Register correspond to the switches or jumpers on the board: • PCI-AC51—A switch in the on position reads as a zero. • PCIe-AC51—An uninstalled jumper reads as a zero. Polled PCI-AC51 and PCIe-AC51 Operation NOTE: All of the directions assume a byte-wide access to the card.
2. Allow a 2 millisecond delay before the next register operation occurs. 3. For PCIAC51.dll, use Set Slow Mode Delay( ) and Enable Slow Mode( ) to control the timing of operations. If you are using the OptoPM32.dll for the PCI-AC51 or PCIe-AC51, use the Pamux_Set_Slow_Bank_Range function.
Need help?
Do you have a question about the PCI-AC51 and is the answer not in the manual?
Questions and answers