In high-end motion control fields such as precision automation equipment, semiconductor manufacturing, electronic assembly, and flight simulators, multi axis synchronous control and distributed I/O management are the core challenges in system design. The cPCI-8168 launched by ADLINK is an 8-axis motion control card based on the 6U CompactPCI specification. Its uniqueness lies in the built-in HSL (High Speed Link) fieldbus network interface, which enables seamless integration of centralized motion control and remote distributed I/O. Combined with a pulse output of up to 6.5MHz, 28 bit encoder feedback, rich hardware interrupts, and over 400 API functions, cPCI-8168 has become the preferred industrial control solution that balances performance and flexibility. This article will provide a comprehensive technical reference for automation engineers from multiple dimensions, including hardware architecture, interface definition, system integration, software programming, and typical debugging techniques.
Product positioning and core feature analysis
CPCI-8168 complies with the PICMG 2.0 Rev 2.1 standard and adopts a 6U size. A single system can accommodate up to 6 cards, achieving up to 48 axis pulse servo/stepper control. Its core motion control ASIC undertakes real-time tasks such as trajectory planning, interpolation operations, and position comparison, greatly reducing the burden on the host CPU.
Key performance indicators:
Pulse output: 0.01pps~6.5Mpps, supports OUT/DIR, CW/CCW, and AB phase output formats, compatible with the vast majority of drivers on the market;
Speed and acceleration: The maximum acceleration is 245Mpps ², with a speed resolution of 16 bits, which can achieve S-curve and trapezoidal curve, effectively suppressing mechanical vibration;
Encoder feedback: differential input, up to 6.55MHz at 4x, 28 bit counter (± 134217728 pulses), meeting high-precision positioning requirements;
Dedicated I/O for each axis: positive and negative limit (± EL), origin (ORG), servo enable (SVON), alarm (ALM), positioning completion (INP), deviation counter reset (ERC), position comparison output (CMP), etc;
Universal I/O: 8-way isolated digital input (24V, 2.4k Ω) and 8-way isolated digital output (NPN open drain, 90mA/35V), can be used for external sensor or relay control;
Analog quantity: 4-channel 12 bit A/D input (± 10V, 110kSPS), 4-channel 16 bit D/A output (± 10V, 2 μ s setup time), convenient for connecting pressure, temperature sensors or speed commands;
HSL Port: Based on RS-485 multi station differential bus, with transformer isolation, transmission distance of 200 meters, speed of 6Mbps, capable of managing up to 63 slave I/O modules, with a scanning cycle of only 30.4 μ s per slave.
The above features make cPCI-8168 particularly suitable for high-speed and high-precision multi axis linkage applications, such as dispensing machines, cutting machines, AOI detection equipment, and flight simulation turntables.
Hardware installation and backplane compatibility
CPCI-8168 is a 6U board that requires a CompactPCI backplane that supports 6U and a standard 3U/6U chassis. Attention before installation:
The system backplane must provide+5V,+3.3V, and ± 12V power supply, and the PCI bus signal must be complete;
The front-end panel of the board provides two LED indicator lights, which respectively indicate Busy and HSL communication error of the motion chip, facilitating quick on-site diagnosis;
The rear I/O of the board leads out all motion, encoder, general I/O, and analog signals through a 68 pin VHDCI connector. By using different types of terminal boards (such as DIN-68S-01, DIN-68M-3JA0, etc.), it is possible to directly connect mainstream servo drives such as Mitsubishi, Yaskawa, Panasonic, etc., greatly simplifying wiring.
Signal isolation characteristics: All motion I/O signals are isolated by 2500Vrms optocouplers, and differential transmission effectively suppresses common mode interference, suitable for industrial electromagnetic environments. Please note that the external 24V power supply (E24V) must provide stable power, otherwise it may cause digital input/output misoperation.
Interface definition and detailed explanation of signal connection
The pin allocation of the 68 pin connector covers motion, encoder, limit/origin, servo interface, universal I/O, analog, and power. The key signal groups are as follows (refer to the pin table):
Typical pins of signal group (taking axis 1 as an example) explanation
Pulse output VPP1 (1), OUT1+(3), OUT1- (4), DIR1+(5), DIR1- (6) differential output, matching driver differential input terminal
Encoder input EA1+(12), EA1- (13), EB1+(14), EB1- (15), EZ1+(16), EZ1- (17) differential A/B/Z phase, supports long line drive
Limit/origin PEL1 (54), MEL1 (55), ORG1 (58) single ended input, requiring external 24V or NPN signal connection
Servo interfaces SVON1 (7), ERC1 (8), ALM1 (9), INP1 (10), RDY1 (11) output/input signals, level coordinated with isolated power supply
Universal DI DIN1 (64), DIN2 (65), etc. have a total of 8 channels, and DI-COM (63) is the common terminal
Universal DO DOUT1 (66), DOUT2 (67), and other 8 channels, with open drain output, require external pull-up resistors or relays
Analog quantities AIN1 (60), AIN2 (61), etc; AOUT1 (62), AOUT2 (63) and other single ended ± 10V, AGND reference ground
Power supply E24V (68) and GND pins are externally powered by 24V to provide energy for the isolation side
Wiring suggestions:
It is recommended to use twisted pair shielded wires for pulse output signal lines, with the shielding layer grounded at one end;
The encoder feedback line uses differential pairs to avoid parallel operation with the power line;
The limit switch adopts normally closed contacts (NC) to increase wire breakage detection function and is connected to PEL/MEL input terminals;
When driving inductive loads (such as relays) with universal DO, a freewheeling diode should be connected in parallel at the load end to prevent back electromotive force from damaging the output stage.

HSL Network: A Bridge between Centralized Motion and Distributed I/O
The biggest highlight of cPCI-8168 is the integration of High Speed Link (HSL) ports (RJ45 physical interfaces). HSL is a high-speed, real-time, deterministic serial bus based on full duplex RS-485 with transformer isolation, supporting up to 200 meters of cable (shielded Ethernet cable). Its communication speed reaches 6Mbps, and the scanning time for each slave index is only 30.4 μ s. It can connect up to 63 I/O slave modules, achieving ultra fast refresh of thousands of digital/analog signals (1000 points/ms).
Typical application scenarios:
When it is necessary to control multiple sets of peripheral I/O (such as solenoid valves, sensors, indicator lights) and the distance is far, using HSL slave modules instead of traditional parallel wiring greatly simplifies the wiring harness;
The same cPCI-8168 can simultaneously execute 8-axis motion trajectories and synchronously read and write remote I/O, achieving integrated control of "motion+logic" without the need for additional PLC or bus master station.
Installation and configuration points:
Use standard shielded CAT5 Ethernet cable, up to 200 meters long, with daisy chain connection supported for bus topology;
Each slave station must set a unique ID (0-63), which can be configured through dialing or software;
The main station board automatically scans all slave stations and maps them to internal registers. The API provides functions such as HSL_ReadIO()/HSL_WriteIO() for access;
The onboard LED can indicate HSL communication errors. If the red light is constantly on, check the cable connection, terminal resistance (120 Ω), and slave power supply.
Motion control function and programming interface
1. Motion mode and interpolation
Point motion: supports absolute, relative, and continuous motion, and can change speed and target position online;
Multi axis synchronization: Multiple axes can be started/stopped simultaneously to achieve precise positioning synchronization;
Interpolation: Hardware supports 2-4 axis linear interpolation, 2-axis arc interpolation, and multi axis continuous interpolation, suitable for trajectory machining;
Speed curve: trapezoidal and S-curve acceleration, S-curve can effectively reduce start stop impact.
2. Home Return
Provides up to 13 return to origin modes, including manual search, automatic search (with limit switch), Z-phase indexing, etc., to adapt to different mechanical structures. The typical mode is to search for the origin switch at a fast speed, then search for the Z pulse at a low speed, and finally stop at the precise position.
3. Position comparison and triggering
Each axis is equipped with 5 built-in 28 bit comparison registers. When the encoder counter matches the comparison value, it automatically triggers the CMP signal output (differential, which can be used to trigger cameras or lasers), achieving high-speed position synchronization output. It is widely used in AOI aerial photography detection.
4. Software support
Provides drivers and over 400 API functions for Windows Vista/XP/2000, supporting languages such as VB, VC++, BCB, Delphi, etc. Comes with MotionCreator at the same time ™ Debugging tool that can monitor the status of each axis online, simulate motion, diagnose I/O wiring, greatly shorten the development cycle. The API functions are all thread safe, suitable for real-time multi-threaded control.
Integration of analog quantity and data acquisition
In addition to motion control, cPCI-8168 also integrates 4-channel 12 bit A/D and 4-channel 16 bit D/A, providing convenience for system integration:
A/D: ± 10V input, 110kSPS sampling rate, can be used for monitoring pressure, force sensor or potentiometer feedback;
D/A: ± 10V output, 16 bit resolution, 2 μ s setup time, can be used as an analog speed command or control signal for regulating valves.
These analog quantities can be accessed through the same API library, reducing the occupation of additional PCI data acquisition cards and lowering costs.
Interrupt management and real-time response
CPCI-8168 supports a variety of interrupt sources, including:
Limit trigger (± EL), alarm (ALM), origin ready (ORG ready);
Single axis motion completion, interpolation motion completion;
Comparison Matching (CMP) trigger;
HSL communication incident.
Users can achieve real-time response by registering an Interrupt Service Program (ISR), such as immediately stopping axis motion when a limit is triggered, or triggering camera capture when a match is made. Reasonable use of interrupts can effectively reduce CPU polling load and improve system real-time performance.
Debugging and Troubleshooting Guide
In practical engineering, common problems and solutions:
Troubleshooting steps for possible causes of fault phenomena
Motor not rotating, pulse output wiring error or driver not enabled to check OUT/DIR differential polarity; Measure pulse output with an oscilloscope; Confirm that the SVON signal has been raised
The encoder feedback value jitter differential signal is interfered with or the cable is too long, using shielded twisted pair, and the shielding layer is grounded at one end; Reduce encoder line length (<1M recommended)
Invalid limit trigger, incorrect wiring or polarity setting of limit switch. Check the voltage of PEL/MEL pins (24V or 0V); Monitor signal status in MotionCreator
The HSL communication red light is on, and the bus is disconnected, the substation is not powered, or there is an ID conflict. Check the network cable connection; Confirm the power supply of the substation; Check if each slave station ID is unique
Analog output nonlinear D/A output overload (<2k Ω), increase buffer operational amplifier; Reduce load current
Call SetInterruptEvent() and check PCI interrupt allocation (IRQ) if the interrupt enable bit is not set or the interrupt line is not connected after the completion of the exercise
In addition, it is recommended to use MotionCreator to test the jog, zeroing, and limit response of each axis one by one during the first power on, to ensure that the hardware is correct before proceeding with code development.
Multi card expansion and system performance optimization
A single system can support up to 6 cPCI-8168 (48 axes in total), please note when expanding:
Assign different base addresses and interrupt numbers to each card (automatically assigned through PCI plug and play);
Multi card synchronous motion can be triggered by software to achieve microsecond level synchronous startup;
Each card's HSL network is independent and can control different slave station areas separately to avoid bus data conflicts;
In terms of performance optimization, it is recommended to allocate high-frequency interrupt tasks (such as position comparison) to one card, while other cards are responsible for regular motion and balancing CPU load.
