Welcome to the Industrial Automation website!

NameDescriptionContent
XING-Automation
E-mail  
Password  
  
Forgot password?
  Register
当前位置:

ADLINK PCIe-7432 32 channel isolated I/O card interrupt and driver

F: | Au:FANS | DA:2026-08-20 | 413 Br: | 🔊 点击朗读正文 ❚❚ ▶ | Share:

Output withstand voltage: 5V~35V DC, recommended to use 24V power supply.

Current limit: The maximum current for a single channel is 500mA, but when all channels are turned on simultaneously, the total current must not exceed 120mA (@ 24V), otherwise overheating protection may be triggered or device life may be shortened. In actual design, the total power consumption should be calculated, and if necessary, grouping drivers or adding external power amplifiers should be used.

Switching speed: 10kHz, suitable for medium and low-speed switch control, such as indicator lights, small relays, solid-state relays, etc.

In addition, the connector provides VDD and V5V pins, where VDD is the external power input (used for output side driving) and V5V is the onboard isolated power output (maximum) 200mA@40 At ℃, it can provide power for low-power sensors or optocouplers, simplifying external wiring.


Register Programming and Interrupt Management

The register access of PCIe-7432 is different from that of a regular 8/16 bit I/O card, as all registers are 32-bit wide and only support 32-bit I/O instructions (such as the x86 IN/OUT instruction specifying a WORD). The base address is automatically assigned by PCIe BIOS without the need for jumper settings. The software uses the _7432_Initial function to enumerate and obtain the base address and IRQ number.

1. Register Address Mapping

Offset address read operation and write operation

Read 32-bit DI status and write 32-bit DO status from Base+0x00

Base+0x40 undefined write arbitrary value clear interrupt

Note: The physical ports corresponding to read and write at offset 0x00 are the same, but they are independently used as input and output buffers. DI data is read-only, DO data is write only (without read back function, if the output status needs to be confirmed, the software needs to keep a copy or provide external feedback).

2. Digital input/output data format

The correspondence between data bits and channels is clear:

DI0~DI7 corresponds to bit0~7 of Base+0

DI8~DI15 correspond to bit0~7 of Base+1

DI16~DI23 correspond to Base+2

DI24~DI31 correspond to Base+3

DO is the same. Therefore, when reading DI, a 32-bit read operation can obtain all 32 channel states, and the same goes for writing DO. This design reduces the number of bus interactions and improves data throughput.

3. Interruption mechanism

Only DI channel 0 and channel 1 support interrupt triggering, and both are sensitive to rising edges (low to high jump). The software can enable or disable interrupts for each channel separately through _7432/Set-INT_Control (parameter int1Flag corresponds to channel 0, int2Flag corresponds to channel 1). When enabled, once the corresponding channel detects a rising edge, the hardware generates a PCIe interrupt request.

Interrupt handling process:

In Windows, call W_7432/INT_Snable and pass in an event handle array (two elements corresponding to two interrupt sources). The driver will set the event signal when an interrupt occurs.

The user thread waits for the event (WaitForSingleObject). After receiving the event, it calls _7432_Get_IRQ_Status to query which channel triggered the interrupt (1 returned by int1Status and int2Status indicates that the corresponding source is valid).

After processing the logic, write any value to Base+0x40 to clear the interrupt (hardware automatically clears). Note that if not cleared, subsequent rising edges of the same channel will not be able to trigger interrupts again.

This interrupt mechanism is suitable for capturing emergency stop signals, counting pulses, or synchronously triggering other actions, avoiding the delay and resource occupation caused by CPU polling.

Software Library and Development Key Points

ADLINK provides PCIS-DASK driver package, supporting Windows 7/8.1 and earlier systems, including DLL and C/C++function libraries. Appendix A lists the main function prototypes (divided into DOS and Windows versions, with different naming prefixes). Summary of key functions:

Initialization: _7432Initial (or Windows version W_7432Initial), returns the number of cards and PCI information structure.

Digital input: _7432_DI reads 32-bit data.

Digital output: _7432_DO writes 32-bit data.

Interrupt control: _7432_Set-INT_Control enables/disables channel 0/1 interrupts.

Retrieve interrupt status: _7432/Get_iRQ_Status to query the current interrupt source.

Interrupt enable/disable: W-7432-IND_Enable Create event handle and bind interrupt; W_7432/INT_Sisable closes interrupt.

Development precautions:

Be sure to install the driver before installing the hardware, otherwise the system may recognize it as an unknown device.

Since registers are 32-bit, U32 or unsigned int type variables should be used in C language to avoid using short or char.

The interrupt service routine should read the DI status as soon as possible and clear the interrupt to avoid missed triggering.

In practical applications, if two interrupt sources need to be used simultaneously, the sources need to be distinguished based on the status flag in interrupt processing, and different branch logics need to be executed.


Practical Guide to Installation and Configuration

  • Micro Innovation GF1-10TVA-100 Touch Panel
  • Micro Innovation GSO-57EQD-000 Operator Panel
  • Micro Innovation XN-2AI-U Analog Input Module
  • Micro Innovation CAN-4AI/UI Analog Input Module
  • Micro Innovation ZSB-1.5/8-S/S/-/PE Base Terminal
  • Micro Innovation AG XVH-340-57CAN-1-10 HMI Panel
  • Micro Innovation GSO-57EQD-000 Micro Panel
  • Micro Innovation XN-2AI-PT/NI-2/3 Input Module
  • Micro Innovation AG GF0-57SQD-000 Display Panel
  • MICRO INNOVATION AG XN-16DI-24VDC-P Input Module
  • Micro Innovation XN-2AI-PT/NI-2/3 Input Module
  • Micro Innovation MC2-442-57CQB-1-2G Display Panel
  • Micro Innovation XN-16DO-24VDC-0.5A-P Module
  • Micro Design MC200PROFI Programmable Module
  • Micro Innovation XV-252-57MPN-1-10 Micro Panel
  • Micro Innovation CAN-4AI/UI Analog Input Module
  • Micro Innovation GT1-MPI-A000 Panel
  • Micro Innovation MC2-440-10TVB-1-21 Display Panel
  • Micro Innovation XVS-430-57MPI-1-1S 6" HMI
  • Micro Innovation XV-442-57CQB-1-1AB Monitor
  • Micro Innovation ZSB-1.5/8-S/S/-/PE Base Terminal
  • Micro Design 895A Microfiche Reader
  • MICRO INNOVATION XNE-8DI-24VDC-P Input Module 8550100794
  • MICRO INNOVATION MICRO PANEL GF0-10CVD-002
  • Micro Innovation XN-PLC-CANopen Controller 85 50 274124
  • Micro Innovation Display Panel GS0-57E0D-000
  • MICRO INNOVATION CAN-32DI/P2X16 Input Module
  • MICRO INNOVATION XN-2DO-R-NO Relay Output Module
  • MICRO INNOVATION XNE-16DI-24VDC-P Input Module
  • Micro Innovation AG XN-2AI-U Analog Input Module
  • Micro Innovation XN-BR-24DC-D Power Supply
  • Micro Innovation MH2-342-57EIB-1-20 Panel
  • Micro Innovation XV-252-57MPN-1-10 Micro Panel
  • Micro Innovation Display Card EIB2-TP
  • Micro Innovation XV-252-57MPN-1-10 6" HMI
  • Micro Innovation XN-B3T-SBC 16x DO Base Module
  • Micro Innovation XVH-330-57MPI-1-10 Panel
  • Micro Innovation XN-BR-24VDC-D Power Module
  • Micro Innovation EIB2-TP EIB2TP Module
  • Micro Innovation GF0-10CVD-100 Touch Panel
  • MICRO INNOVATION XV-230-57CNN-1-10 HMI-PLC
  • MICRO INNOVATION XN-2DO-R-CO Relay Output Module
  • KMK MICRO INNOVATION GS2-90EMD-000 Micro Panel
  • Micro Innovation XN-2AO-U Analog Output Module
  • Micro Innovation XN-1AO-I Analog Output Module
  • Micro Innovation CAN-32DI/P-2x16 Rack Module
  • Eaton Micro Innovation MC2-440-10TVB-1-11 HMI
  • Micro Innovation AG CAN Bridge 8551224177
  • Micro Innovation XN-2AI-I Analog Input Module Set
  • Micro Innovation XN-4DI-24VDC-P Input Module
  • Micro Innovation Winbloc CAN-16DO/0.5A-PK Module
  • Micro Innovation Micro Panel GFO-10SVD-002 HMI
  • Micro Innovation CAN-24DI/8DO/0.5A-PK Module
  • Micro Innovation DP-24DI/8DO/0.5A-PK I/O Module
  • Weidmuller Micro Innovation CAN-BRIDGE ZSFA 1,5R
  • Micro Innovation CAN-3AI/1AO-UI Profibus Module
  • Micro Innovation PDP-TP Profibus DP Module
  • Micro Innovation CAN-3AI/1AO-UI Analog Module
  • Micro Innovation MC2-430-12TSB-10 HMI Panel
  • Micro Innovation XNE-8DO-24VDC-0.5A-P I/O Module
  • MICRO INNOVATION AG WINBLOC CAN-32DI/P-2x16 85 51 224182
  • MICRO INNOVATION AG WINBLOC CAN-4AO/UI 85 51 224195
  • Micro Innovation Xv-252-57cnn-1-10 HMI Panel
  • Micro Innovation XN Basis XN-S4T-SBBS-CJ 225200
  • Micro Innovation GF1-10TVD-100 Micro Panel
  • Micro Innovation XN-B3T-SBC 16-Fold DO Base Module
  • MICRO INNOVATION AG WINBLOC CAN-3AI/1AO-UI 85 51 224192
  • KMK Micro Innovation GS2-90EMD-000 Micro Panel
  • Micro Innovation MC2-430-10TVB-1-10 PanelView Terminal 24VDC
  • Micro Innovation XNE-8DO-24VDC-0.5A-P I/O Module 8550100795
  • MICRO INNOVATION GF1-10TVB-100 Touch Panel
  • MICRO INNOVATION AG WINBLOC CAN-4AI/UI Analog Input Module
  • MICRO INNOVATION AG WINBLOC CAN-32DO/0.5A-P-2x16 Output Module
  • MICRO INNOVATION AG CAN-32DI/P-2X16 8551224182 Input Module
  • MICRO INNOVATION MK2-230/232-57 Circuit Board 85 28 200000
  • MICRO INNOVATION CAN-BRIDGE 8551224177 CAN Bridge
  • Micro Innovation MC2-430-10TVB-1-10 Panel 24VDC
  • MICRO INNOVATION MC2-432-57CQB-1-10 HMI Panel
  • MICRO INNOVATION AG CAN-BRIDGE 85 51 224177 CAN Bridge
  • MICRO INNOVATION CAN-4AI/UI Analog Input Module
  • MICRO INNOVATION CAN-32DI/P-2X16 Input Module
  • SIGMATEK MDD111 09-404-111 Drive Module
  • SIGMATEK DVI021 Display Interface Module
  • SIGMATEK 00-450-024 C-IPC Processor
  • SIGMATEK MDD-111 MDD111 Drive Module
  • SIGMATEK ICA011 20-102-011 Interface Module
  • SIGMATEK 01-250-010-D NC4Kompakt Control Module
  • SIGMATEK CRIF081 12-751-081 Interface Module
  • SIGMATEK S1026-8AF61-R4E-Z57 Drive Module
  • SIGMATEK 9305.081.02 9227.082.00 Control Module
  • Sigma Tek 5000B-36 Attitude Indicator
  • SIGMATEK CEZ201 12-051-201-O Counter Module
  • SIGMATEK DPS001 Power Supply Module
  • SIGMATEK 994 395 01z Via Interface Module
  • SIGMATEK PC411-K 01-310-411-K Industrial PC
  • SIGMATEK 9816.324.00 Demag NC4 Keyboard
  • SIGMATEK ET261 90010C-71 Operator Terminal
  • SIGMATEK DDI 164 05-006-164 Input Module
  • SIGMATEK CCP 082 C-DIAS Processor Module
  • SIGMATEK CEZ201 12-051-201-O PLC Module
  • SIGMATEK MDD 1111 06178867 Drive Module
  • SIGMATEK S1 073-6AC61-RE-Y08-Z Drive Module
  • SIGMATEK MDD 111 Drive Module MDD111
  • SIGMATEK CSDI161 Safety Module 12-891-161
  • SIGMATEK C-IPC Processor 01-450-024
  • SIGMATEK DIAS DAM122 Analog Mixing Module
  • Sigma Tek 5000B-36 Attitude Gyro Indicator
  • SIGMATEK TMS012 Motherboard Module 05-250-012-T
  • SIGMATEK CCP-531 PLC Module
  • SIGMATEK DIAS DNC4 I/O Module 05-250-011
  • SIGMATEK AI088 Analog Input Module
  • SIGMATEK CEZ201 Counter Module
  • SIGMATEK CIC011 Industrial Computer Module
  • SIGMATEK MDM021 Motor Drive Module
  • SIGMATEK DTO163 Digital Output Module
  • SIGMA-TEK 5000B-36 Attitude Gyro
  • SIGMATEK DM161 Digital Input Module
  • SIGMATEK CCP-531 PLC Control Panel
  • SIGMATEK HZS773 Touch Terminal Operator Panel
  • SIGMATEK MDP101 3 KVA 45-65Hz Driver
  • SIGMATEK ETV1251 Touch Panel 12-230-1251
  • SIGMATEK CIO021 Safety Module 12-013-021
  • Sigma Tek 4000H-5 Directional Gyro
  • SIGMATEK TAE531 I/O Module 01-240-531
  • SIGMATEK DAI081 Input Module 05-009-081
  • SIGMATEK DCP640 Drive Control Module
  • SIGMATEK DCP643 Slides Module A6-29
  • SIGMATEK SCP011 Safety Module 20-890-011