Welcome to the Industrial Automation website!

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

ADLINK PCIe-7396 Digital I/O Card Deployment Guide

F: | Au:FANS | DA:2026-07-15 | 555 Br: | 🔊 点击朗读正文 ❚❚ ▶ | Share:

4.3 External trigger control register (BASE+0x08/0x18/0x28/0x38 enabled, 0x0C/0x1C/0x2C/0x3C disabled)

After writing any value to the enable register, the data from ports A, B, and C corresponding to PPI will be simultaneously latched and read at the edge (programmable rising or falling edge) of the EXTTRG pin. This function can achieve synchronous acquisition of multiple input signals, suitable for encoder state latch or simultaneous sampling of multiple switches.

4.4 Change State (COS) Interrupt Control Register (BASE+0x60, 0x64, 0x68, 0x6C)

Corresponding to PPI1~PPI4 respectively, each port can independently enable COS detection. When the enabled channel experiences a level jump (rising or falling edge), INT1 (COS of PPI1/PPI2) or INT2 (COS of PPI3/PPI4) is triggered. The COS detection circuit continuously monitors all input channels and is very suitable for monitoring discrete events such as emergency stop buttons and limit switches.


Interrupt system configuration

Although the dual interrupt system of PCIe-7396 only occupies one PCIe interrupt, it can generate two independent interrupt requests (INT1 and INT2) through an internal multiplexer, and the software needs to distinguish the source through the interrupt service program.

5.1 Interrupt Source Control Register (ISC, BASE+0x50)

This register (write only) uses 4 bits (C1_1/C1-0 and C2_1/C2-0) to select the sources of INT1 and INT2 respectively:

Mode C1_1/C1-0 INT1 source trigger condition

0 00 COS P1&P2 (48 bits) any channel level change

1 01 P1C0 or P1C3 (logical combination) see Table 4-2

2 10 P1C0 falling edge triggered separately by falling edge

3 11 Event Counter (Counter # 0) Counter decreases to 0

INT2 is similar, with optional COS P3&P4, P2C0 combinational logic, P2C0 falling edge, or 32-bit timer interrupt.

5.2 Clear Interrupt Register (BASE+0x54)

Writing any value can clear the current interrupt request, which must be called at the end of ISR, otherwise it cannot respond to subsequent interrupts.

5.3 Edge combination triggering mode

When INT1 selects Mode 1 (P1C0 OR P1C3), the triggering condition is determined by the combination of two pin levels (see Table 4-2 in the manual):

P1C0=H and P1C3=X → Interrupt prohibited

P1C0=X and P1C3=L → Interrupt prohibited

P1C0=L and P1C3 falling edge → triggered

P1C0 rising edge and P1C3=H → trigger

This combination logic can generate complex conditional interrupts and is suitable for multi condition interlock protection.


Application of 8254 timer/counter

The onboard 8254 chip provides three 16 bit counters (Counter # 0~# 2) with a fundamental frequency of 2MHz.

Counter # 0: Event counter, input Pin 51 (EVENT), programmable edge triggered, event interrupt triggered when count drops to 0 (INT1 mode 3).

Counter # 1 and # 2: Cascade to form a 32-bit timer, which outputs as a timed interrupt (INT2 mode 4). The timing range can cover several microseconds to tens of minutes, and is set through the _7396_Cascaded_Timer API.

Typical applications:

Use timer interrupts to implement periodic I/O scans (such as reading 96 input states every 100ms).

Use an event counter to count the number of external pulses (such as flow meter or encoder signals) and trigger an interrupt when the preset value is reached.


Software drivers and development support

ADLINK provides MAPS series software packages:

MAPS Core: Includes Windows device drivers and ACE (ADLINK Connection Explorer) management tools for device discovery, resource allocation, and software panel debugging.

MAPS/C: C/C++development package, including header files, function libraries, and APIs, such as _7396_ DIO_WritePort、_7396_DIO_ReadPort、_7396_Set_Event_Edge、_7396_Cascaded_Timer、_7396_CLR_IRQ  Wait.

MAPS/LV: LabVIEW support library, including VI and sample programs.

Users do not need to manipulate the underlying registers and can quickly develop by calling the API directly. The latest version of the driver package can be downloaded from the ADLINK official website.


Terminal board selection

The SCSI connector of PCIe-7396 can be directly connected to the following terminal boards:

DIN-100S: Direct connection screw terminal board, no isolation, suitable for low-noise environments.

DIN-96DI: 96 channel optocoupler isolation input board, effectively suppressing grounding loops and protecting the host.

DIN-96DO (EOL): 96 channel optocoupler isolation output board, suitable for driving external relays or solenoid valves.

Choosing between isolated or non isolated solutions based on the type of on-site signal can significantly improve system reliability.


Common troubleshooting checklist

Possible causes and solutions for the phenomenon

The device is not recognized by the system due to poor PCIe slot contact or driver not installed. Replace the slot and reinstall the MAPS Core driver

The output cannot drive the load. If the current exceeds 48mA or the pulling current is insufficient, check the load current and add a transistor or relay if necessary

Input read error signal level is not within TTL range or not common ground. Ensure high level>2V, low level<0.8V, connect GND

External trigger invalid EXTTRG edge polarity setting error call _7396_Set-Event-Edge setting rising/falling edge

  • National Instruments myRIO-1900 Embedded Controller
  • National Instruments NI-9263 Analog Output Module
  • National Instruments 158561A-01L Ordering Part Number
  • National Instruments 785024-01 Ordering Part Number
  • National Instruments PCI-6510 Industrial Digital I/O Card
  • National Instruments USB-6259 Multifunction DAQ Device
  • National Instruments USB-8452 I2C SPI Interface Device
  • National Instruments PXI-8432 Serial Interface Module
  • National Instruments PXIe-5644R Vector Signal Transceiver
  • National Instruments PXI-2569 Relay Module
  • National Instruments 781174-01 Module
  • National Instruments 782000-01 Module
  • National Instruments PXI-5152 Digitizer
  • National Instruments PXI-6284 DAQ Card
  • National Instruments PCI-1428 Frame Grabber
  • National Instruments PXI-1050 Chassis
  • National Instruments NI USB-8486 Fieldbus
  • National Instruments NI 9862 CAN Module
  • National Instruments NI 9146 FPGA Chassis
  • National Instruments PXI-8108 Controller
  • National Instruments NI SWB-2816A Matrix Module
  • National Instruments NI 9269 Analog Output Module
  • National Instruments PCI-6031E Multifunction DAQ Card
  • National Instruments PXI-6713 Analog Output Module
  • National Instruments NI 9216 RTD Input Module
  • National Instruments NI-9237 Strain Bridge Input Module
  • National Instruments PXI-5124 High Resolution Digitizer
  • National Instruments USB-6343 X Series DAQ Device
  • National Instruments PXIe-6536 Digital I/O Module
  • National Instruments CAL-4330 Calibration Fixture
  • National Instruments PXI-4110 Programmable Power Supply
  • National Instruments 781503-01 Input Module
  • National Instruments FP-AI-V10 Module
  • National Instruments PXI-5114 Digitizer Card
  • National Instruments PXIe-8398 MXI Module
  • National Instruments cRIO-9056 Controller
  • National Instruments PCI-6509 DIO Device
  • National Instruments cRIO-9053 Controller
  • National Instruments 781056-01 Output Module
  • National Instruments 782606-01 Input Module
  • National Instruments cRIO-9112 Chassis
  • National Instruments PXIe-1078 Chassis
  • National Instruments PCIe-6536 DIO Board
  • National Instruments NI-9425 Input Module
  • National Instruments PCI-5122 Digitizer Card
  • National Instruments 779072-01 Relay Module
  • National Instruments 783703-01 DAQ Module
  • National Instruments PXI-6515 Digital Module
  • National Instruments 781099-01 DAQ Device
  • National Instruments PXI-8183 PXI Controller
  • National Instruments sbRIO-9626 Single-Board RIO Controller
  • National Instruments PXIe-1435 Camera Link Frame Grabber
  • National Instruments NI 9237 Strain Bridge Input Module
  • National Instruments PXIe-4353 Thermocouple Input Module
  • National Instruments PCIe-6320 X Series DAQ Card
  • National Instruments NI 1454 Compact Vision System
  • National Instruments PCIe-6321 X Series DAQ Card
  • National Instruments PXIe-5172 PXI Oscilloscope Module
  • National Instruments cDAQ-9134 CompactDAQ Controller
  • National Instruments cRIO-9063 CompactRIO Controller
  • National Instruments PXI-4070 DMM Card
  • National Instruments cFP-BP-4 Backplane
  • National Instruments 779521-01 Bridge Module
  • National Instruments cDAQ-9172 Chassis
  • National Instruments NI 9236 Strain Module
  • National Instruments PXI-1042Q Chassis
  • National Instruments SCXI-1102 Input Module
  • National Instruments 776990-01 Input Module
  • National Instruments PXI-1045 PXI Chassis
  • National Instruments PCIe-6251 DAQ Device
  • National Instruments NI 9219 Universal Analog Input Module
  • National Instruments NI 9215 BNC Analog Input Module
  • National Instruments PXIe-6570 Digital Pattern Instrument
  • National Instruments NI-9477 Digital Output Module
  • National Instruments NI 9145 EtherCAT Chassis
  • National Instruments PCI-6521 Industrial Digital I/O Card
  • National Instruments NI 9239 BNC Voltage Input Module
  • National Instruments NI 9265 Current Output Module
  • National Instruments NI 9212 Thermocouple Input Module
  • National Instruments PXI-6229 Multifunction DAQ Module
  • National Instruments NI-9146 Chassis
  • National Instruments PXIe-5622 Digitizer
  • National Instruments PXI-6704 Output Module
  • National Instruments 782362-01 Input Module
  • National Instruments 779068-01 Digital Module
  • National Instruments 781063-01 Output Module
  • National Instruments PCI-7356 Motion Controller
  • National Instruments 779787-01 Input Module
  • National Instruments PXIe-1071 System
  • National Instruments NI 9219 Input Module
  • National Instruments NI 9214 Thermocouple Input Module
  • National Instruments PXIe-1085 18-Slot Chassis
  • National Instruments PCIe-6320 Multifunction DAQ Card
  • National Instruments USB-6211 Multifunction I/O Device
  • National Instruments USB-6341 X Series DAQ Device
  • National Instruments NI 9205 Analog Input Module
  • National Instruments NI 9149 8-Slot Chassis
  • National Instruments PXIe-2569 Relay Module
  • National Instruments NI 9230 Sound and Vibration Module
  • National Instruments cRIO-9047 CompactRIO Controller
  • National Instruments PCI-6534 Digital IO Card
  • National Instruments PXI-5122 Digitizer Module
  • National Instruments cDAQ-9188XT Chassis
  • National Instruments cDAQ-9184 Ethernet Chassis
  • National Instruments USB-6225 OEM DAQ Device
  • National Instruments NI 9205 Input Module
  • National Instruments NI 9207 Input Module
  • National Instruments NI-9862 CAN Module
  • National Instruments 781156-01 CAN Module
  • National Instruments FP-AO-200 Output Module
  • National Instruments NI 9264 Output Module
  • National Instruments IC-3173 Controller
  • National Instruments NI 9234 Vibration Module
  • National Instruments SMB-2163 DIO Accessory
  • National Instruments PXIe-1062Q DSA System
  • National Instruments USB-6289 DAQ Device
  • National Instruments NI 9233 Vibration Module
  • National Instruments PXIe-5840 VST
  • National Instruments PXI-1033 and PXI-6132 System
  • National Instruments GPIB-USB-HS+ Controller
  • National Instruments NI 9231 Sound and Vibration Module
  • National Instruments cRIO-9074 CompactRIO Controller
  • National Instruments 782536-01 DAQ Module
  • National Instruments 779781-01 DAQ Module
  • National Instruments PXIe-8388 MXI Express Controller
  • National Instruments SCXI-1520 Strain Bridge Module
  • National Instruments PCIe-6320 Multifunction DAQ Card
  • National Instruments NI 9234 Sound and Vibration Module