Page 1
PCI-AC5, PCIE-AC5, AC5, AND G4AC5 USER’S GUIDE Form 1211-170216—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...
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.
Chapter 1February 16, 2017 11:14 am 1: Introduction Opto 22 PCI-AC5, PCIe-AC5, AC5 and G4AC5 adapter cards provide an interface between a PC and Opto 22 digital input/output (I/O) mounting racks for direct connection to I/O points. The PCI-AC5 and PCIe-AC5 offer expanded operation and support for modern computers with PCI and PCIe slots;...
PCI-AC5 and PCIe-AC5 on Windows platforms. Appendix A: System Specifications provides system requirements and specifications for the PCI-AC5, PCIe-AC5, AC5, and G4AC5 adapter cards, and information about the bus and LED locations. Appendix C: PCIe/PCI-AC5 Hardware Description provides additional technical information you need to create custom applications if you aren’t using the PC-Based Direct I/O SDK.
Installing the AC5 or G4AC5 ..........................page 4 Installing the PCI-AC5 and PCIe-AC5 You can install the PCI-AC5 adapter card into any PCI expansion slot of a computer; the PCIe-AC5 can be installed into any PCIe expansion slot. Note the power requirements listed in the...
Configuring Jumpers These instructions apply to the AC5 or G4AC5 adapter card. The card is the same for either part number; only the cable is different. PCI-AC5, PCIe-AC5, AC5, and G4AC5 User’s Guide...
The diagram at right shows how to connect the cable to the card. 5. Reinstall the power cord. If you wish, leave the computer cover off temporarily to see the card’s LEDs. 6. Turn on the computer. PCI-AC5, PCIe-AC5, AC5, and G4AC5 User’s Guide...
Page 10
INSTALLING THE AC5 OR G4AC5 PCI-AC5, PCIe-AC5, AC5, and G4AC5 User’s Guide...
To help you get started, the SDK includes a fully functioning Visual C# solution (.sln file) that interfaces with the PCI-AC5 and PCIe-AC5. 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-DIRECT-SDK\Examples\DirectScan 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. PCI-AC5, PCIe-AC5, AC5, and G4AC5 User’s Guide...
In the Direct I/O Scan window, Bus 0 and Bus 1 refer to the two ribbon cable interfaces connected to the card. For more information, see “Bus and LED Locations” on page PCI-AC5, PCIe-AC5, AC5, and G4AC5 User’s Guide...
Page 14
The images in this section show a PCI-AC5 card. Click here if you have more than one card. (Instructions are the same for the PCIe-AC5.) 2. If you have only one PCI-AC5 or PCIe-AC5 card installed, continue to step If you have more than one card installed: a.
When you install the SDK, new folders are created in the C:\Program Files\Opto22\PC-DIRECT-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. PC-Based Direct I/O SDK folder PCI-AC5, PCIe-AC5, AC5, and G4AC5 User’s Guide...
Page 16
The SDK contains several .NET managed software stacks. Applications built with any of the software stacks will work with both the PCI-AC5 and PCIe-AC5 adapter cards. Although the files in each stack have the same filenames, each stack is different. When you create a...
PCIAC5_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-AC5. Multi-threaded Applications. The PC-Based Direct I/O SDK permits only a single handle to a card.
DEVELOPING CUSTOM APPLICATIONS PCI Express Slot Width. While Opto 22’s PCI-Express adapter cards are a 1x form factor, they may be installed in wider PCI-Express sockets, like 4x, 8x, and 16x. For expansion slot availability, see the user’s manuals for your computer or motherboard.
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. Error Messages and Troubleshooting If one of the function calls returns false, it is an indication that an error or warning has occurred.
PORTING LEGACY APPLICATIONS Porting Legacy Applications NOTE: To convert applications for AC5 and G4AC5 cards to run on PCI-AC5 and PCIe-AC5 cards, see Appendix B: Converting Applications to a Newer Card. Programs developed for the PCI-AC5 or PCIe-AC5 with older versions of the PC-Based Direct I/O SDK will not work with Windows 10, Windows 8.1, or Windows 7 due to an incompatibility at the driver...
Microsoft changed the driver architecture in Windows 7 (and higher). For Windows 7 to properly identify the SDK’s digital signatures and files, Microsoft Security Advisory 3123479 up- date (or higher) must be installed. To download the update, see https://support.microsoft.com/en-us/kb/3123479. PCI-AC5, PCIe-AC5, AC5, and G4AC5 User’s Guide...
To open the Function Reference, press the Windows Start key , and in the list of Programs, click Opto 22 > PCI-AC5 and PCIe-AC5 Function Reference. If your browser blocks the ActiveX controls, make sure to unblock them so that you can see the navigation pane.
Power Supplies ..............................page 21 Rack Compatibility Information ........................page 22 Bus and LED Locations .............................page 22 Specifications The following table shows specifications for the PCI-AC5, PCIe-AC5, AC5, and G4AC5 adapter cards, plus system requirements for the SDK: PCIe-AC5 PCI-AC5 AC5 and G4AC5 Interface PCIe (1.x)
The PC-Based Direct I/O SDK no longer supports the AC5 or G4AC5 adapter cards. For these cards, you can continue to use version R5.0b of the PC-Based Direct I/O SDK (PC_Based_Direct _IO_SDK_R5.0b.exe). It can be downloaded from Opto 22's site.
I/O module provides. A sudden change of current on the field side may interfere with the operation of the rack, the adapter card, or the computer. PCI-AC5, PCIe-AC5, AC5, and G4AC5 User’s Guide...
Since these cards double the point capacity from their ISA cousin (the AC5), each has two 50-wire ribbon cable interfaces, referred to as bus 0 and bus 1. The PCI-AC5 and PCIe-AC5 cards include four LEDs that can be used for debugging or indicating application status. The AC5 and G4AC5 cards include one LED that flashes to indicate activity (reading from or writing to the card).
PCI-AC5 (newer version) There are two different versions of the PCI-AC5 card. The newer version shows “9278” on the white label. Power requirements for the newer card are 5.0 VDC @ 250 mA and 3.3 VDC @ 250 mA. This card is not compatible with computers that provide 5.0 VDC only.
The older model has “8939” on its white label. Power requirements for the older card are 5.0 VDC at 600 mA. Again, note that LED numbering is reversed on the two cards. On this older board, bus 0 is labeled PCI-AC5-1 and bus 1 is labelled PCI-AC5-2. LED 1...
If you have current applications running on an AC5 or G4AC5 that you now need to use with a PCI-AC5 or PCIe-AC5 card, or if you are migrating AC5 applications to 32-bit Windows, you need to make two key changes to the code: •...
Windows 7 Professional Converting Applications This section provides instructions for converting applications to work with the PCI-AC5 and PCIe-AC5. Migrating 16-bit inp and outp Applications This section shows how to update 16-bit applications that use the functions inp, outp, PortInput (VB), and PortOutput (VB) to work with the PC-Based Direct I/O SDK.
Migrating OptoPMux.dll Applications This section shows how to update applications that used Opto 22’s Pamux DLL to access the AC5 or G4AC5. Applications that used the OptoPMux.dll used the functions PamuxDigBankWriteFast and PamuxDigBankReadFast as if they were equivalent to inp and outp calls.
Page 32
5. Locate the code segment that reads and writes to the AC5 or G4AC5. Replace the functions PamuxDigBankWriteFast and PamuxDigBankReadFast with appropriate read or update SDK functions. 6. To update the close function, search for PamuxCardClose. Replace it with the SDK function OptoPCI_Close. PCI-AC5, PCIe-AC5, AC5, and G4AC5 User’s Guide...
This technical reference is provided for those who are either technically curious or are interested in authoring a device driver for an unsupported operating system or a Windows kernel-mode driver. The information is provided as is; Opto 22 does not support any kernel layer or drivers other than those we provide.
PCI bus cycle. Reads and writes of other data sizes will result in unpredictable results. NOTE: The BIOS allocates the memory map of the PCI-AC5 well above the 1 megabyte address space of DOS architecture computers. DOS applications need a “high memory” driver or a DOS extender to access the PCI address space, as well as a DOS mode PCI BIOS extension function library to access the device’s PCI...
Also, when you set up the data mask to write to the hardware, remember that the most significant two bits are the LEDs on the card. PCI-AC5, PCIe-AC5, AC5, and G4AC5 User’s Guide...
Page 36
TURNING OUTPUTS ON AND OFF PCI-AC5, PCIe-AC5, AC5, and G4AC5 User’s Guide...
This technical reference is provided for those who are either technically curious or are interested in authoring a device driver for an unsupported operating system or a Windows kernel-mode driver. The information is provided as is; Opto 22 does not support any kernel layer or drivers other than those we provide.
To turn output points on or off, write to the bank’s data register. The data you write is negative-true logic (a 0 bit means on and a 1 bit means off ). If you write to a point that is configured as input, the write is ignored. PCI-AC5, PCIe-AC5, AC5, and G4AC5 User’s Guide...
Need help?
Do you have a question about the PCI-AC5 and is the answer not in the manual?
Questions and answers