Download Print this page

ADLINK Technology PCI-7851 User Manual

High speed link system master-slave distributed i/o and motion control solution
Hide thumbs Also See for PCI-7851:

Advertisement

Quick Links

High Speed Link System
Distributed I/O and Motion Control Solution
Manual Rev.
Revision Date:
Part No:
Advance Technologies; Automate the World.
This datasheet has been downloaded from
Master-Slave
User's Manual
2.02
June 16, 2005
50-12100-2020
http://www.digchip.com
at this
page

Advertisement

loading
Need help?

Need help?

Do you have a question about the PCI-7851 and is the answer not in the manual?

Questions and answers

Summary of Contents for ADLINK Technology PCI-7851

  • Page 1 High Speed Link System Master-Slave Distributed I/O and Motion Control Solution User’s Manual Manual Rev. 2.02 Revision Date: June 16, 2005 Part No: 50-12100-2020 Advance Technologies; Automate the World. This datasheet has been downloaded from http://www.digchip.com at this page...
  • Page 2 Copyright 2005 ADLINK TECHNOLOGY INC. All Rights Reserved. The information in this document is subject to change without prior notice in order to improve reliability, design, and function and does not represent a commitment on the part of the manufacturer.
  • Page 3 Getting Service from ADLINK Customer Satisfaction is top priority for ADLINK Technology Inc. Please contact us should you require any service or assistance. ADLINK TECHNOLOGY INC. Web Site: http://www.adlinktech.com Sales & Service: Service@adlinktech.com TEL: +886-2-82265877 FAX: +886-2-82265717 Address: 9F, No. 166, Jian Yi Road, Chungho City,...
  • Page 5: Table Of Contents

    PMC-7852/G Outline Drawing ........... 31 Configuration ..............33 SW1 / S1 ..............33 JP 2, 3, 6 / JP4, 5, 7 (For PCI-7851/7852) ....34 JP 1, 2, 3, 6 / JP 4, 5 (For PMC-7852/G) ...... 34 PIN Assignment ..............35 Software Architecture Description ........
  • Page 6 Installation................37 Hardware Configuration ..........37 Software Configuration ..........37 3 HSL Slave Module............. 39 Slave I/O Module ............... 40 Discrete I/O Module ............40 Analog I/O Module ............41 Thermocouple Input Module ......... 42 The transmission mode of HSL-TC08 is full duplex mode and fixed.
  • Page 7 @ Name ............... 77 @ Description ............... 77 @ Syntax ..............78 @ Arguments ..............79 @ Return Code ............. 80 Timer Control ..............81 @Name ................ 81 @ Description ............... 81 @ Syntax ..............82 @ Return Code ............. 82 Discrete I/O................
  • Page 8: List Of Tables

    List of Tables Table 1-1: Slave I/O Modules ..........13 Table 1-2: Remote Motion Modules ......... 14 Table 1-3: Terminal Base ............14 Table 1-4: Polling cycle time of HSL (Full Duplex Mode) ..23 Table 2-1: Ethernet Connector ..........35 Table 3-1: I/O Module Series ...........
  • Page 9 Figure 1-11: HSL system layout example-serial wiring....20 Figure 1-12: HSL wiring – RS422 with multi-drop......22 Figure 1-13: HSL networking Topology – Serial ......23 Figure 2-1: PCI-7851/7853, PMC-7852/G sketch ...... 27 Figure 2-2: PCI-7851/7853/7852 Outline ........29 Figure 2-3: PMC-7852/G Outline ..........31 Figure 2-4: SW1 / S1 –...
  • Page 11: Hsl Introduction

    The same rule applies to the PCI-7852/7854; it can connect up to 126 slave indexes and provides four ports. The PCI-7851/52 uses MKY33 ASIC as the HSL master controller and the PCI-7853/54 uses MKY36 ASIC as the HSL master controller.
  • Page 12: What Is An Hsl System

    Transmission speed: The data speed is between master board and slave modules. The unit is bits per second. 1.1 What Is an HSL System HSL is an innovative distributed I/O technology which allows thou- sands of I/O points to be scanned in millisecond-level real time by using a mater-slave architecture.
  • Page 13: Product Overview

    Product Overview The following drawing shows the basic topology of the HSL sys- tem. Figure 1-1: HSL topology HSL System Features High speed It takes at most 1.895ms for a HSL master to scan all the discrete I/O points of slave modules under 6Mbps. Take a distributed con- trol system with 63 slave I/O modules of type HSL-DI16DO16-DB- NN as an example, this slave I/O module supports 16DI and 16DO, and these 2016 discrete I/O points could be scanned (or...
  • Page 14 For low profile series, users make the connection by direct wiring. Large number of I/O points The PCI-7851/7853 offers one HSL master controller and the PCI- 7852/7854 and PMC-7852/G offer two HSL master controllers. For maximum installation, users can have 12 PCI-7851/53 or PCI- 7852/7854 units in one PC system.
  • Page 15: Pci-7853/54 New Extra Features

    Modular design of the slave I/O ADLINK offers a variety of slave module types for users. M series have the metal case; DB series are without metal case and L series are low-profile design for compact size use. For M and DB series, users also need terminal board for connection.
  • Page 16 API function. Users can easily change with software. Programmable interrupt source PCI-7853/7854 can provide the optional interrupt sources for HSL operating condition and on-board timer use. Unlike PCI-7851/ 7852, this feature is more flexible when users implement the HSL application.
  • Page 17: Hsl Applications

    HSL Applications HSL as a Distributed PLC In the past decades, PLC had taken an important character in the field of industry automation. With the help of communication mod- ules, such as RS232 and RS485, PLC can also perform distrib- uted control.
  • Page 18: Figure 1-4: Hsl As Distributed Plc

    PLCs are capable of network communicating, but it is usually very expansive. This is because PLCs are not an open architecture, only the hardware venders can make it. With HSL, the distributed control architecture can become as the figure below. Users do not need one extra PC for Ethernet com- munication.
  • Page 19: Figure 1-5: Hsl As Real-Time Daq

    To implement a DAQ application, the real-time characteristic is the most important issue. With HSL systems, all I/O data are time- deterministic refreshed. The sampling rate (or scan rate) is linearly dependent on the number of slave indexed occupied, ranges from 90µs (less than 3 slave indexes) to 2 ms (63 slave indexes) under 6Mbps.
  • Page 20: Figure 1-6: Hsl For Scada

    constant period from slave I/O modules to master. Then, HMI could access these data through local PCI (PMC)-bus Figure 1-6: HSL for SCADA HSL Introduction...
  • Page 21: Hsl System Specifications

    Redhat Distribution Software Supported: Windows: C library with DLL Linux: Kernel 2.4.x HSL Master Boards: PCI-7851: Single HSL master controller(MKY33) board, 2 ports PCI-7852: Dual HSL master controller(MKY33) board, 4 ports PMC-7852/G: Dual HSL master controller(MKY33) board, 4 ports and PMC connectors...
  • Page 22 Transmission Speed L (m) 3Mbps 6Mbps 12Mbps Wiring: Connector: RJ45 (on master controller and some of slave modules) Cable: Cat-5 100 Base/TX Ethernet cable with shielding Direct Wiring: for low-profile modules Communication: Multi-drop full-duplex RS-422 with transformer isolation scheme Transmission speed: 3/6/12 Mbps, 6Mbps is the factory default setting.
  • Page 23: Hsl Series Products

    1.3 HSL Series Products HSL Master controller boards Five models are provided: PCI-7851: Single HSL master controller(MKY33) with PCI interface PCI-7852: Dual HSL master controller(MKY33) with PCI interface PMC-7852/G: Dual HSL master controller(MKY33) with PMC interface PCI-7853: Single HSL master controller(MKY36) with PCI...
  • Page 24: Hsl Technical Information

    Note: “Start Index Setting Range” means range of the start in- dex address of DIP switch setting. Full duplex and half duplex mode have different range. Remote motion control modules are also supported. Here are the lists: Slave Index Series Model Axes Interface Start Index Setting Range Occupation...
  • Page 25: Figure 1-7: Hsl Technology Brief -1

    response is either to set output according received values or to reply requested input information to master. The following graph shows the working theory of HSL regarding how to set output values. M e m or y N O 1 N O 2 O u tp u t v a lu e o f e v e ry s la v e ....
  • Page 26: Figure 1-8: Hsl Technology Brief-2

    M e m o r y O u tp u t v a l u e o f e v e r y s l a v e s N O 1 N O 2 ............
  • Page 27: Figure 1-9: Hsl I/O Polling Cycle

    Student No.1: My input status is ## (Teacher writes data on black- board) Teacher: No.2, your output vales are ##, what’s your newest input status? Student No.2: My input status is ## (Teacher writes data on black- board) (if 63 slave modules are equipped) Teacher: No.63, your output vales are ##, what’s your newest input status? Student No.63: My input status is ## (Teacher writes data on...
  • Page 28: Hsl Terminology

    HSL Terminology In addition to input/output polling mechanism showed above, some syntax related to HSL should also be kept in mind. HSL Master: Master is the “teacher” character in the figures above. The master takes charge of giving commands, including output value announcing and newest input status requesting.
  • Page 29: System Configurations

    think of it as the longest time needed for any digital I/O channel to get its newest status. The refreshing rate is decided linearly by total number of slaves used in individual HSL system, but no inter- ference in any two HSL systems at the same PC or IPC. Transmission Speed: This characteristic is quite ambiguous with I/O refreshing rate.
  • Page 30: Figure 1-11: Hsl System Layout Example-Serial Wiring

    Please refer to Chapter 2 “HSL Master Controller” for more infor- mation. HSL Connect Index (connect_index): PCI-7851/7853 provide purely one HSL master controller (connect_index = 0); PCI-7852/ 7854/PMC-7852/G provides master controllers (connect_index = 0 and 1). Connect index is used to distinguish the master controllers.
  • Page 31: Wiring

    ever, continuous addressing will be more efficient. Actually, if some users set up a HSL system with only 2 slave modules addressed 1 & 63, the I/O refreshing rate is exactly the same as a 63-slave, addressed from 1 to 63 within HSL system. Note: Please refer to Chapter 3 “HSL Slave I/O Module”...
  • Page 32: Networking Topology

    Slave I/O module Slave I/O module TXD RXD TXD RXD RJ45 RJ45 RJ45 Controller MASTER 0 RJ45 RJ45 RJ45 RJ45 MASTER 1 Slave I/O module Slave I/O module Slave I/O module Figure 1-12: HSL wiring – RS422 with multi-drop There are two RJ45 notches in each master. Each notch supports one port of wiring.
  • Page 33: I/O Refreshing Rate Of Hsl System

    HSL Master PCI-7851/7852 RJ45/10BaseT Other PCI Cards 8R/16DI 16DI 16DI/16DO Slave I/O Module Figure 1-13: HSL networking Topology – Serial Because the 2 notches of any slave I/O module’s termination board are actually short circuit, this kind of wiring provides the eas- iest and most intuitive way to form a HSL network.
  • Page 34: Communication Error Handling

    imum address is less than 3. Please also refer to the table of Appendix A. Communication Error Handling Though the HSL communication protocol is dedicatedly designed to avoid any errors, there is inevitably still some chance that com- munication error may occur, e.g.: light striking, suddenly off-line, etc.
  • Page 35: Software Support

    1.5 Software Support Window 98/NT/2K/XP DLL The HSL Windows 98/NT/2K/XP DLL (Dynamic Link Library) is provided as a programming interface under Microsoft Windows environment. The driver can work with any Windows programming language that could integrates DLL, such as Microsoft Visual C/ C++ (6.0 or above), Borland C++(5.0 or above), or Microsoft Visual Basic (6.0 or above), etc.
  • Page 36 HSL Introduction...
  • Page 37: Hsl Master Controller

    The HSL master is the key character that takes charge of the com- munication with slave I/O modules. The master set outputs values to and gathers input information from slaves by communication. ADLINK supplies five HSL master card models: PCI-7851/7853, PCI-7852/7854 and PMC-7852/G. PCI-7851: Single HSL master controller(MKY33) with PCI...
  • Page 38: Specifications

    HSL operation use (PCI-7853/54) LED Indicator: Power status PCB Dimension: For PCI-7851/7852: 176 (L) × 107 (W) mm For PCI-7853/7854: 120 (L) × 107 (W) mm For PMC-7852/G: 74 (W) × 149 (W) mm Operating Temperature: 0 to 60°C Storage Temperature: -20 to 80°C...
  • Page 39: Pci-7851/7852 Outline Drawing

    2.3 PCI-7851/7852 Outline Drawing Figure 2-2: PCI-7851/7853/7852 Outline RJ45 connector with first HSL master controller RJ45 connector with second HSL master controller (Only available for PCI-7852/7854) JP2, 3, Full/Half duplex mode with first master controller (Factory default: Full duplex mode)
  • Page 40: Pci-7853/54 Outline Drawing

    2.4 PCI-7853/54 Outline Drawing RJ45 connector with first HSL master controller RJ45 connector with second HSL master controller (Only available for PCI-7854) ctory default: 6 Mbps) Transmission speed option. (Fa HSL Master Controller...
  • Page 41: Pmc-7852/G Outline Drawing

    2.5 PMC-7852/G Outline Drawing LINK PMC-7852G Figure 2-3: PMC-7852/G Outline HSL Master Controller...
  • Page 42 H1A, RJ45 connector with first HSL master controller H2A, RJ45 connector with second HSL master controller (Only available for PCI-7852/7854) JP1, 2, Full/Half duplex mode with first master controller (Factory default: Full 3, 6 duplex mode) Full/Half duplex mode with second master controller (Factory default: JP4, 5 Full duplex mode) Transmission speed option.
  • Page 43: Configuration

    2.6 Configuration SW1 / S1 3 4 5 6 Figure 2-4: SW1 / S1 – Transmission Rate Setting No. Set transmission rate Notes OFF ON OFF ON 1st Master Controller OFF OFF ON OFF ON OFF ON 2nd Master Controller OFF OFF ON Rate 12M 6M 3M EXC Factory default: 6Mbps.
  • Page 44: Jp 2, 3, 6 / Jp4, 5, 7 (For Pci-7851/7852)

    JP 2, 3, 6 / JP4, 5, 7 (For PCI-7851/7852) JP 1, 2, 3, 6 / JP 4, 5 (For PMC-7852/G) Figure 2-5: PMC-7852/G Top View, JP 1-6 Jumper Settings HSL Master Controller...
  • Page 45: Pin Assignment

    2.7 PIN Assignment RJ45 Female Connector PIN NO. PIN OUT PIN 1 PIN 2 PIN 3 PIN 4 PIN 5 PIN 6 PIN 7 PIN 8 Table 2-1: Ethernet Connector HSL Master Controller...
  • Page 46: Software Architecture Description

    2.8 Software Architecture Description PCI-7851/7852/7853/7854/PMC-7852/G is equipped with one or two HSL master ASICs that control the communication inside HSL system. The purpose to communicate with HSL I/O modules is to gather input data from or set output value to them. In order to...
  • Page 47: Installation

    2.9 Installation Hardware Configuration The PCI-7851/7852/7853/7854 is a plug-and-play device, so the interrupt channel and memory mapping address are assigned by system BIOS. You only need to configure the SW1 / S1 for trans- mission speed. For PMC-7852/G, please users refer to GEME user manual for details.
  • Page 48 HSL Master Controller...
  • Page 49: Hsl Slave Module

    HSL Slave Module The HSL is a master-slave network system, which features an innovative distributed architecture that modularizes the communi- cation, I/O functions and signal termination. You can individually choose the slave I/O modules and terminal base to meet your par- ticular applications requirement.
  • Page 50: Slave I/O Module

    3.1 Slave I/O Module Discrete I/O Module ADLINK provides three series: DB, M and L series. DB: Daughter board form factor M: Daughter board form factor with aluminum cover L: Low-profile design Discrete Discrete Relay Slave Index Series Model Input Output Output Occupation...
  • Page 51: Analog I/O Module

    HSL - DI#DO# Discrete I/O Type: DI16DO16: 16 discrete inputs Series: Signal Type: and 16 discrete outputs DB: Daughter X: Input Signal DI32: 32 discrete inputs board form factor Type: NPN sinking DO32: 32 discrete outputs M: Daughter board and PNP sourcing R8DI16: 8 relay outputs and 16 with aluminum support...
  • Page 52: Thermocouple Input Module

    Thermocouple Input Module ADLINK provides HSL-TC08 for temperature measurement. The measuring temperature range is as follows. Type Input Range Type Input Range ° ° ° ° C-760 C-1370 ° ° ° ° -100 C-400 C-1000 ° ° ° ° C-1750 C-1750 °...
  • Page 53: General Specifications

    General Specifications Discrete I/O Module Photo couple isolation 2500VRMS Ω Input impedance 4.7k Input Voltage ±40V (Max.) -10mA For NPN Input Current +10mA For PNP Discrete Input ON: 9.6VDC(Max.) For NPN OFF: 19.0VDC (Min.) Operation Voltage (@ 24VDC Power Supply) ON: 14.4 VDC(Max.) For PNP OFF: 5.0 VDC (Min.)
  • Page 54: Dip Switch Setting

    Analog I/O Module A/D Resolution 16-bit (14-bit guaranteed) For VV type: ±10V, ±5, ±2.5, ±1.25V Input Range Analog Input For AV type: 20mA, 10mA, 5mA A/D Conversion 10µs Signal Type 16-CH Single Ended; 8-CH Differential D/A Resolution 16-bit Analog Output DA Settling Time 10µs Thermocouple Module...
  • Page 55: Wiring Diagrams

    from an odd number. For example, if the DIP switch is set as 3, it would occupy slave index 3 and 4. 3. HSL-AI16AO2-M-VV/AV needs two leap addresses at full duplex mode. For example, if the DIP switch is 2, this module will occupy 2 and 4.
  • Page 56: Figure 3-3: -P Pnp Sourcing Type Sensor Input

    Circuit Internal Circuits Figure 3-3: -P PNP Sourcing type sensor Input Internal Circuits Figure 3-4: -P Wet Contact Input HSL Slave Module...
  • Page 57: Figure 3-5: -N Npn Sinking Output

    Internal Load Circuits Figure 3-5: -N NPN Sinking Output Internal Circuits Load Figure 3-6: -P PNP Sourcing Output HSL Slave Module...
  • Page 58: Figure 3-7: -R Relay Output

    Load NO.n Internal Circuit COM.n Figure 3-7: -R Relay Output Differential Signal Source IN(+) IN(-) <30V AGND Figure 3-8: Analog Input (Differential Voltage Input) Ground Signal Source IN(+) AGND Figure 3-9: Analog Input (Single-End Voltage Input) HSL Slave Module...
  • Page 59: Figure 3-10: Analog Input (Current Measure)

    Current Source IN(+) IN(-) R=125 Ohm %1 accuracy Figure 3-10: Analog Input (Current Measure) IN(+) IN(-) <30V AGND Figure 3-11: Thermocouple Measurement HSL Slave Module...
  • Page 60 Dimensions Daughter board form factor (100mm X 78.2mm) HSL Slave Module...
  • Page 61 Daughter board with aluminum cover (125mm X 80mm) Low-profile slave I/O module (54.4 mm X 54mm) HSL Slave Module...
  • Page 62: Terminal Base

    3.2 Terminal Base The terminal bases include: HSL-TB32-U-DIN HSL-TB64-DIN HSL-TB32-DIN HSL-TB32-DO-DIN HSL-TB32-M-DIN Features Field I/O wiring connection for HSL I/O modules Screw or spring terminal for easy field wiring Power and ground included for each signal channel Interlocking design for rugged installation Power LED indicator DIN rail mounting Terminator resistor on board...
  • Page 63: General Description

    General Description Model Name Description Module Support (1) 32 channels direct connected HSL-TB32-U terminal base All HSL DB-series modules (2) One DB slot (1) 64 channels direct connected HSL-TB64 terminal base All HSL DB-series modules (2) Two DB slots (1) 16 channels short circuit pro- For DB Series tected current driver (up to HSL-DI16DO16-DB-NN...
  • Page 64: Dimensions

    Dimensions -DB with HSL-TB32-DIN or HSL-TB32-U-DIN (126x120.1x107.3) HSL Slave Module...
  • Page 65 -DB with HSL-TB64-DIN (168.7x120.1x107.3) mm -M module with HSL-TB32-M-DIN (128.5x85.5x108) mm HSL Slave Module...
  • Page 66: How To Manage Slave Index Within A Hsl Network

    3.3 How to Manage Slave Index within a HSL Net- work Notes about managing slave modules in a HSL network Before powering on the slave modules, users have to adjust the DIP switch. For this step, please refer to 3.1 to know how to do this.
  • Page 67: Examples

    Motion Control Module Rule Slave Index Transmission Transmission Module Occupation Mode Speed HSL-4XMO-CG-N/P 4 (Leap) / Full Duplex / 3/6/12Mbps Selectable 4(Consecutive) Half Duplex HSL-4XMO-CD-N/P Special Rules 1. If users only have one HSL-AI16AO2-M-VV (or HSL- AI16AO2-M-AV) and the DIP switch is set as 1 (HSL- AI16AO2-M-VV/AV only support full duplex mode), the occupied index would be 1 and 3.
  • Page 68 ADLINK suggests users use the slave index configuration as fol- lows: Item DIP Switch Index Occupation in HSL HSL-DI32-M-N #1 1, 2 HSL-DI32-M-N #2 3, 4 HSL-AI16AO2-M-VV 5, 7 HSL-DO8-L-N #1 HSL-DO8-L-N #2 Therefore, it is the compact composition. The scan time would need 30.4µs×...
  • Page 69 Consequently, the cycle time of first master controller is 30.4µs× 6 and the cycle time of second master controller is 45.6µs at 12Mbps, full duplex mode. Example 2: If users have HSL-DI8-L-N×2, HSL-DI16DO16-M- NN×1, HSL-DO32-M-N×2 ,HSL-AI16AO2-M-VV×1, and HSL- 4XMO-CG-N×2, and all slave modules are in full duplex mode, we can have two conditions as follows: Condition 1: HSL-AI16AO2-M-VV×1 and HSL-4XMO-CG-N×2 is in 6Mbps.
  • Page 70 Group 1 DIP Switch Index Occupation in HSL HSL-DI16DO16-M-NN Therefore, it is the compact composition. The scan time would need 30.4µs× 7. Users can connect these entire modules with one master controller. For HSL-AI16AO2-M-VV and HSL-4XMO-CG- N×2, they connect to another master controller. The management table is as follows.
  • Page 71: Hsl Linkmaster Utility

    HSL LinkMaster Utility After installing master controller and slave modules, users can install the HSL driver and use the LinkMaster utility to test and debug the system. This utility provides a user-friendly interface for customers. Users can easily test I/O status, including read and write I/O data, calibration, and motion control.
  • Page 72: Adlink Hsl Linkmaster Utility

    4.2 ADLINK HSL LinkMaster Utility Run the LinkMaster Utility After driver installation, you can find the utility placed in “Start menu”->”PCI-7851”. Click on the “LinkMaster” and you will see the main menu as follows. About the LinkMaster Utility Before running LinkMaster, please review the following notes.
  • Page 73: Linkmaster Utility Introduction

    PMC-7852/G. Every card has its own index (ID) ranging from 0. Users can specify the card index here to operate. 2. Current Select Connect Index: PCI-7852/7854 and PMC-7852/G have two master controllers inside. The connect index is ranges from 0 to 1. For PCI-7851/7853, HSL LinkMaster Utility...
  • Page 74 it has one master controller inside. The connect index is 0. The following diagram shows that: 3. Connect/Auto Scan: When this button is pressed, the utility will scan all the slave modules connected to mas- ter card with specified connect index. This utility will show all information on the slave modules, including the address and slave type within the 9th block.
  • Page 75 Users can test and debug modules based on this utility. 7. Exit: Press this button to exit the utility. 8. About: This contains DLL version information. The next section will outline the usage of every slave module util- ity. HSL LinkMaster Utility...
  • Page 76: Hsl-Di16Do16 Utility

    HSL-DI16DO16 Utility All contents are described as follows. 1. Slave Address: The slave index occupied by this mod- ule. This module just occupies one slave index. 2. Digital Input: The white icon stands for no digital input; the red icon means that the digital input is not activated. 3.
  • Page 77: Hsl-Di32 & Hsl-Do32 Utility

    HSL-DI32 & HSL-DO32 Utility All contents are described as follows. 1. Slave Address: The slave index occupied by this mod- ule. These modules occupy two slave indexes from odd number. For example, if users adjust the DIP switch of HSL-DI32 or HSL-DO32 as 3, it will have two slave indexes as 3 and 5 actually.
  • Page 78: Hsl-Di8, Hsl-Do8, Hsl-Di4Do4 Utility

    HSL-DI8, HSL-DO8, HSL-DI4DO4 Utility HSL-DI8-L, HSL-DO8-L, and HSL-DI4DO4-L series have the same utility dialog as above. All contents are described as follows. 1. Slave Address: The slave index occupied by this mod- ule. These modules only occupy one slave index. 2.
  • Page 79: Hsl-R8Di16 Utility

    HSL-R8DI16 Utility All contents are described as follows. 1. Slave Address: The slave index occupied by this mod- ule. This module only occupies one slave index. 2. Digital Input: The white icon stands for no digital input; the red icon means that the digital input is not activated. 3.
  • Page 80: Hsl-Ai16Ao2 Utility

    HSL-AI16AO2 Utility All contents are described as follows. 1. Slave Address: The slave index occupied by this mod- ule. The module will occupy two consecutive indexes. For example, if users adjust the DIP switch of HSL- AI16AO2 as 4, it will actually have two slave indexes as 4 and 6.
  • Page 81: Hsl-4Xmo Utility

    “Configuration” button, you can save the information and complete the configuration task. 7. Start Read: Enable A/D conversion task to read back the analog input values. Users will see the values shown in 12th block. 8. Stop Read: Disable A/D conversion task. 9.
  • Page 82 HSL LinkMaster Utility...
  • Page 83: Hsl Function Library

    HSL Function Library This chapter describes the supporting software for HSL system. User can use these functions to develop programs in C, C++, or Visual Basic. 5.1 List of Functions This section details all the functions. The function prototypes and common data types are declared in HSL.h.
  • Page 84 HSL_A_{action_name}. e.g. HSL_A_write_output(). If they belong to motion control modules, the function will be as fol- lows. HSL_M_{action_name}. e.g. HSL_M_start_tr_move(). As for the motion control library description, please refer to HSL- 4XMO function library manual. This manual only contains the sys- tem level function, discrete I/O control, and analog I/O control.
  • Page 85 Initialization & System Information Section 5.2 Function Name Description HSL_initial Master card initialization HSL_close Release all resources occupied by master card Start to scan all the salve modules connected HSL_start to master card Start to scan and automatically detect all the HSL_auto_start slave modules connected to master card HSL_stop...
  • Page 86 Analog I/O Section 5.5 Function Name Description HSL_A_start_read Start A/D conversion. HSL_A_stop_read Stop A/D conversion HSL_A_set_signal_range Set the signal range of analog input channels HSL_A_get_signal_range Get the signal range of analog input channels HSL_A_get_input_mode Get the signal input mode HSL_A_set_last_channel Set the last channel of analog input channels HSL_A_get_last_channel Get the last channel of analog input channels HSL_A_read_input...
  • Page 87: Initialization & System Information

    HSL_initial: Initialize the hardware and software states of the HSL master card (PCI-7851/52/53/54 or PMC-7852/G). Users can check the return code of this function to know if the initialization is successful or not. Because HSL master card supports plug-and-play design, the base address and IRQ level are assigned by BIOS directly.
  • Page 88: Syntax

    This function is used to automatically detect the total connected slave modules. Every master controller can connect up to 63 slave indexes. As a result, It will scan from 1 to 63. HSL_stop: This function is used to stop scanning the connected slave mod- ules.
  • Page 89: Arguments

    The index is from 0. connect_index: For PCI-7851/7853, the valid value is 0. For PCI-7852/7854 and PMC-7852/G, the valid value is 0 or 1. max_slave_No: The maximum slave index connected to the HSL master card with the connect_index.
  • Page 90: Return Code

    *live_data: The module status. 1: the module is “live” 0: the module is “die” irq_no: IRQ occupied by master card. @ Return Code ERR_No_Error ERR_Open_Driver_Fail ERR_Invalid_Board_Number ERR_Satellite_Number ERR_Connect_Index HSL Function Library...
  • Page 91: Timer Control

    5.3 Timer Control @Name HSL_enable_timer_interrupt – Enable timer interrupt of master card HSL_disable_timer_interrupt – Disable timer interrupt of master card HSL_set_timer – Set the resolution of timer @ Description HSL_enable_timer_interrupt: This function is used to enable the hardware timer interrupt of this master card.
  • Page 92: Syntax

    @ Syntax C/C++ (DOS, Windows 98/NT/2K/XP) I16 HSL_set_timer (I16 card_ID, I16 c1, I16 c2); I16 HSL_enable_timer_interrupt (I16 card_ID, HANDLE *phEvent); I16 HSL_disable_timer_interrupt (I16 card_ID); Visual Basic (Windows 98/NT/2K/XP) HSL_set_timer (ByVal card_ID As Integer, ByVal c1 As Integer, ByVal c2 As Integer) As Integer HSL_enable_timer_interrupt (ByVal card_ID As Integer, phEvent As Long) As Integer HSL_disable_timer_interrupt (ByVal card_ID As...
  • Page 93: Discrete I/O

    5.4 Discrete I/O @ Name HSL_D_read_input –Read back all discrete I/O with unsigned 32-bit HSL_D_read_channel_input–Read back discrete I/O by chan- nel selection HSL_D_write_output –Write all discrete I/O with unsigned 32- HSL_D_write_channel_output –Write discrete I/O by channel selection HSL_D_read_ouput –Read back the output value stored in RAM HSL_D_read_all_slave_input –Read back all inputs of slave modules HSL_D_write_all_slave_output –Write all outputs of slave...
  • Page 94: Syntax

    HSL_D_read_ouput: This function is to write all digital output values to all connected discrete I/O modules. It will map all data into memory. With this function, user can write all digital output values to the all con- nected discrete I/O modules at one time. HSL_D_read_all_slave_input: This function is used to read the digital input values from all slave I/O modules which the set value is connect_index and...
  • Page 95 I16 HSL_D_read_channel_input (I16 card_ID, I16 connect_index, I16 slave_No, I16 channel, U16 *in_data); I16 HSL_D_read_output (I16 card_ID, I16 connect_index, I16 slave_No, U32 *out_data_in_ram); I16 HSL_D_read_all_slave_input (I16 card_ID, I16 connect_index, U16 *in_data); I16 HSL_D_write_all_slave_output (I16 card_ID, I16 connect_index, U16 *out_data); I16 HSL_D_set_input_logic (I16 card_ID, I16 connect_index, I16 slave_No, I16 input_logic);...
  • Page 96: Arguments

    The index is from 0. connect_index: For PCI-7851/7853, the valid value is 0. For PCI-7852/7854 and PMC-7852/G, the valid value is 0 or 1. slave_No: Specifiy the slave module with slave index which want to perform this function.
  • Page 97: Return Code

    *in_data: The input data of slave modules. The definition is as follows. For HSL_D_read_input: The data of channel 0 is assigned to bit 0; the data of channel 1 is assigned to bit 1 and so on. For HSL_D_read_channel_input: The value is digital input data of the specified channel.
  • Page 98: Analog I/O

    ERR_Memory_Mapping ERR_Connect_Index ERR_Satellite_Number ERR_Over_Max_Address 5.5 Analog I/O @ Name HSL_A_start_read –Start A/D conversion HSL_A_stop_read–Stop A/D conversion HSL_A_set_signal_range–Set the signal range of analog input channels HSL_A_get_signal_range –Get the signal range of analog input channels HSL_A_get_input_mode –Get the signal input mode HSL_A_set_last_channel –Set the last channel of analog input channels HSL_A_get_last_channel –Get the last channel of analog input channels...
  • Page 99 HSL_A_stop_read: This function is used to stop the reading operation of analog input channels of all HSL AI/O modules which are connected to the master card. When you want to stop the A/D conversion, please use this function to stop it. HSL_A_set_signal_range: This function is used to set the input range of the specified HSL AI/O modules.
  • Page 100: Syntax

    HSL_A_read_output: This function is used to read back the analog output data from the HSL AI/O modules with the specified the analog output channel. HSL_A_sync_rw: This function is used to read AI data and write AO data at the specified channel synchronously of HSL AIO module. It can let users read/write the data at one time.
  • Page 101 I16 HSL_A_read_output (I16 card_ID, I16 connect_index, I16 slave_No, I16 ao_channel, F64 *ao_data); I16 HSL_A_sync_rw (I16 card_ID, I16 connect_index, I16 slave_No, I16 ai_channel, F64 *ai_data, I16 ao_channel, F64 ao_data); I16 HSL_A_get_version (I16 card_ID, I16 connect_index, I16 slave_No, I16 *ver); Visual Basic (Windows 98/NT/2K/XP) HSL_A_start_read (ByVal card_ID As Integer, ByVal connect_index As Integer) As Integer HSL_A_stop_read (ByVal card_ID As Integer, ByVal...
  • Page 102: Arguments

    The index is from 0. connect_index: For PCI-7851/7853, the valid value is 0. For PCI-7852/7854 and PMC-7852/G, the valid value is 0 or 1. slave_No: Specifiy the slave module with slave index which want to perform this function.
  • Page 103 For HSL-AI16AO2-M-VV 0: ± 1.25V 1: ± 2.5V 2: ± 5V 3: ± 10V For HSL-AI16AO2-M-AV 0: ± 5mA 1: ± 10mA 2: ± 20mA 3: ± 20mA *mode: 0: differential type 1: single-ended input. last_channel: For single-ended setting, the maximum last channel is 15.
  • Page 104: Return Code

    *ver: kernel version number. @ Return Code ERR_No_Error ERR_Invalid_Board_Number ERR_Connect_Index ERR_Time_Out ERR_Memory_Mapping ERR_Satellite_Number ERR_Satellite_Type ERR_Over_Max_Address ERR_AI16AO2_Signal_Range HSL Function Library...
  • Page 105: How To Program With The Hsl Dll

    How to Program with the HSL DLL The programming flow chart is as follows: Figure 6-1: Programming Flow Chat 6.1 DI/O Operations Inside DI/O Operations, the following function calls are for users’ reference. HSL_slave_live (…): It is used to detect the status of the slave module(Live or Die).
  • Page 106: Ai/O Operations

    HSL_D_write_output(…): It is for digital output operation of slave module. HSL_D_read_output(…): It is for reading output data in memory. HSL_D_set_input_logic(…), HSL_D_set_output_logic(…): It is for setting DIO logic. All steps can be executed in a loop to get the latest information from slave modules.
  • Page 107: Motion Operations

    All steps can be executed in a loop to get the latest information from slave modules. 6.3 Motion Operations Please refer to HSL-4XMO user manual for details. How to Program with the HSL DLL...
  • Page 108 How to Program with the HSL DLL...
  • Page 109: Appendix

    Appendix 7.1 Scan Time Table Cycle Time Cycle Time Cycle Time Slave Index Number under 3Mbps under 6Mbps under 12Mbps Base Unit 60.7µs 30.4µs 15.2µs < 3* 182.1s 91.2µs 45.6µs 303.5µs 152.0µs 76.0µs 607µs 304.0µs 152.0µs 1.214ms 608.0µs 304.0µs 1.821ms 912.0µs 456.0µs 2.428ms...
  • Page 110: Mapping Table

    *The minimum scan time for half duplex mode at different trans- mission speed. 7.2 Mapping Table HSL has two kinds of function library existing in HSL.h. The follow- ing is the mapping table between new and old one. Initialization & System Information New Version Old Version HSL_initial...
  • Page 111: Discrete I/O

    Discrete I/O New Version Old Version HSL_D_read_input W_HSL_DIO_In HSL_D_read_channel_input W_HSL_DIO_Channel_In HSL_D_write_output W_HSL_DIO_Out HSL_D_write_channel_output W_HSL_DIO_Channel_Out HSL_D_read_ouput W_HSL_Read_DIO_Out HSL_D_read_all_slave_input W_HSL_DIO_Memory_In HSL_D_write_all_slave_output W_HSL_DIO_Memory_Out HSL_D_set_input_logic W_HSL_Set_In_Out_Logic HSL_D_set_output_logic Analog I/O New Version Old Version HSL_A_start_read W_HSL_AI_Start_Read HSL_A_stop_read W_HSL_AI_Stop_Read HSL_A_set_signal_range W_HSL_AI_SetConfig HSL_A_get_signal_range W_HSL_AI_GetConfig HSL_A_get_input_mode HSL_A_set_last_channel W_HSL_AI_Set_Last_Channel HSL_A_get_last_channel W_HSL_AI_Get_Last_Channel HSL_A_read_input W_HSL_AI_Channel_In...
  • Page 112: Start To Calibrate

    Make sure the signal type is single ended. It is selectable by jumper. Prepare a precise calibrator that can generate precise 5 volt. Users can check the status text to know if the calibration is successful or not. The analog input field configuration is as follows. Single-Ended Mode Terminal No.
  • Page 113 After step 1 to 4 is executed successfully, the module is ready to use. If not, please check the wiring and calibrator. Follow the pro- cedures to do again. Appendix...
  • Page 114 Appendix...
  • Page 115: Warranty Policy

    Warranty Policy Thank you for choosing ADLINK. To understand your rights and enjoy all the after-sales services we offer, please read the follow- ing carefully. 1. Before using ADLINK’s products please read the user man- ual and follow the instructions exactly. When sending in damaged products for repair, please attach an RMA appli- cation form which can be downloaded from: http:// rma.adlinktech.com/policy/.
  • Page 116 3. Our repair service is not covered by ADLINK's two-year guarantee in the following situations: Damage caused by not following instructions in the user's manual. Damage caused by carelessness on the user's part dur- ing product transportation. Damage caused by fire, earthquakes, floods, lightening, pollution, other acts of God, and/or incorrect usage of voltage transformers.

This manual is also suitable for:

Pci-7853Pci-7852Pci-7854Pci-pmc-7852/g