Attention: The electrical characteristics of HSL and Motionnet are different, and mixed insertion is strictly prohibited (HRJ45 and MRJ45 are not interchangeable), otherwise it may damage the transceiver.
4、 Software Ecology and Development Environment
4.1 Operating System and Drivers
Both main control cards support Windows 10/8/7 (32-bit and 64 bit) and provide WHQL certified drivers for easy installation. After the first insertion, the system automatically recognizes it as "ADLINK PCIe-7856/7853" and loads the driver.
4.2 Software Development Kit (SDK)
PCIe-7856: Provides APS SDK (Advanced Motion&I/O SDK), supporting multiple languages such as VB, VC++, BCB, Delphi, VB.net, C #, etc. It contains rich motion control functions (such as jog, fixed length, interpolation, electronic gear, comparison trigger, etc.) and HSL I/O read-write API.
PCIe-7853: Provides HSL LinkMaster Utility (graphical configuration tool) and corresponding API libraries (VB6, VC++, C #) for quick configuration of HSL network parameters, scanning of slave stations, and testing of I/O points.
All SDKs come with sample program source code, covering scenarios such as basic diagnostics, loop scanning, and interrupt handling, which can accelerate project development.
4.3 Configuration Tools
For PCIe-7856, in addition to APS SDK, MotionCreatorPro or HSL Configuration Tool can also be used for network diagnosis, slave enumeration, and parameter initialization;
The configuration of non-volatile RAM can be written through APIs to automatically load custom topologies when powered on.

Network topology planning and cabling specifications
5.1 Maximum number of nodes and cable length
HSL network: Each link can mount up to 64 slave stations (addresses 0-63), with two independent ports, resulting in a total I/O point count of 2 × 64 × (module points). The commonly used numerical modules are 32 points or 64 points, so the total number of points can reach 2016 (calculated based on 64 points per module). It is recommended that the total length of the cable should not exceed 100 meters (at 12Mbps).
Motionnet network: Each port can have up to 64 slave stations, with a total of 256 axes. The total communication distance is inversely proportional to the speed (it is recommended to be less than 30 meters at 20Mbps, and several hundred meters at 2.5Mbps).
5.2 Wiring Practice
Using a hand in hand daisy chain connection (from the master station port → slave station 1 → slave station 2... The terminal resistance needs to be enabled for the end slave station, usually set by the dip switch of the slave station);
Avoid T-shaped branches, otherwise signal reflection will be severe;
Shielding layer single ended grounding (grounded on the main station side) to prevent ground loops;
Maintain a minimum distance of 20cm from the power lines (frequency converters, motor cables), and use metal cable trays for isolation if necessary.
Key programming and configuration processes
6.1 Initialization and Network Enumeration (Taking PCIe-7856 as an Example)
Call APS_Snit() to initialize the board and obtain the device handle;
Call HSL_ScanSlaves (port) to enumerate the slaves on the HSL port and return a list of online slaves;
Call Motionnet_ScanNodes (port) to enumerate Motionnet nodes and confirm the drive model and number of axes;
Configure the input/output direction, filtering time, interrupt enable, etc. of each slave station (through corresponding configuration structures).
6.2 Fundamentals of Motion Control
Point to point positioning: APS-PTP (startPos, targetPos, vel, acc);
Linear interpolation: APS_Line2D/3D supports up to 8-axis synchronous linear interpolation;
Electronic cam: Load the cam table through APS_CamTable to achieve main shaft and slave shaft following;
Position comparison and triggering: Monitor encoder feedback during motion, trigger HSL output or interrupt when reaching the preset position, and achieve high-speed flying.
6.3 Real time I/O scanning
HSL adopts a periodic scanning method, and the main station automatically cycles to read all inputs and refresh outputs, without the need for users to interfere with the timing;
But if an interrupt response is required, a specific slave can be configured as an event triggered mode to handle sudden signals through callback functions.
Common troubleshooting and solutions
Fault 1: The main control card device manager cannot recognize it
Confirm that the PCIe slot has sufficient power supply and try replacing the slot;
Check if the driver program corresponds to the operating system version (distinguishing between 32/64 bits);
Turn off the "Energy saving" or "ASPM" options in the BIOS to prevent PCIe link degradation.
Fault 2: HSL scan cannot detect any slave stations
Check if the network cable connection is secure and if the wire sequence is standard (straight through wire is sufficient, MDI/MDIX adaptive);
Confirm that the dialing code setting for the slave station address is unique (0-63, cannot be repeated);
Check if the terminal resistance of the end slave station has been enabled (usually in the ON position);
Reduce the transmission rate (such as from 12Mbps to 6Mbps) and scan again to eliminate the impact of long line attenuation.