Page 3
NuDAQ , NuIPC , NuDAM , NuPRO , HSLink are registered trademarks of ADLINK TECHNOLOGY INC. Other product names mentioned herein are used for identification purposes only and may be t r ademarks and/or registered trademarks of their respective companies.
Page 4
Getting service from ADLINK Customer Satisfaction is always the most important thing for ADLINK Tech Inc. If you need any help or service, please contact us and get it. ADLINK Technology Inc. http://www.adlink.com.tw Web Site http://www.adlinktechnology.com Sales & Service Service@adlink.com.tw...
Contents Chapter 1 HSLink Introduction............1 What Is HSLink System................1 1.1.1 Product Overview................1 1.1.2 Features of HSLink System ............2 1.1.3 Application of HSLink ..............3 Specifications of HSLink System.............7 HSLink Series Products................8 HSLink Technical Information..............9 1.4.1 HSLink Technology Brief ...............9 1.4.2 Terminology of HSLink ..............12 1.4.3 System configurations..............12 1.4.4...
Page 6
Configuration of HSLink− DI32 module..........55 Configuration of HSLink− DO32 module..........57 Product Warranty/Service ............59 ii • Contents...
Page 7
How to use This Manual This manual is written to help you to use the HSLink series products. It describes the versatile functions and the operation theorem of the HSLink. This manual is divided into 4 chapters: Chapter 1 “HSLink Introduction” gives an overview of the HSLink system regarding system features, applications, and specifications.
HSLink Introduction What Is HSLink System HSLink is an innovative distributed I/O technology which allows thousands of I/O points to be scanned in mini-second-level real time by using 1 to N mater-slave architecture. The HSLink master is a PCI-bus card plugged into CPU Unit of PCC, and by using commercial Ethernet cable with RJ45 connector user may easily settle the HSLink slaves as close as possible to sensor devices.
1.1.2 Features of HSLink System Ø High speed It takes just 30.1μs for a HSLink master to scan all the I/O points in a slave module. Take HSL-DI16DO16-DB-NN as an example, This slave I/O module supports 16DI and 16DO, and these 32 I/O points could be scanned (or updated) in 30.1μs.
Ø Modular design of slave I/O All kinds of slave I/O module are mechanically of the same size and follow the identical connecting PIN assignment. To fit into various wiring situations to keep flexibility, the HSLink Terminal Base is introduced. HSLink TB acts as an carrier of salve I/O module with wiring function.
Page 12
Then, with the developing of communication technology and popularization of networking, networking modules such as Ethernet became available. This improvement evolved the following architecture. The medium character of MPC is replaced. SCADA Web Server Network Figure 1.3: networking PLC Now, PLC is capable of network communicating, but it is usually very expansive.
Page 13
Ø Compare Figure 1.2, and Figure 1.4: l The MPC (Monitor PC) is replace by PC with HSLink Master. l The remote side PLC is replaced by HSLink slave I/O modules l The RS485 or RS232 cable is replaced by simple Ethernet cable. Ø...
Page 14
Ø HSLink for SCADA system HSLink is suitable for SCADA (supervisory control and data acquisition) system. The character of HSLink in a SCADA system is DAQ hardware but HMI toolkit. Users still need some SCADA software to accomplish the completely SCADA function. The reason why HSLink is suitable for SCADA is described below: l HSLink is based on an open Architecture of PC.
Specifications of HSLink System The detail specifications of HSLink system are listed as following: Ø Platform: Computer hardware: Standard PC or IPC with PCI-Bus. OS: Windows 95/98/2000/NT4.0 or Linux Ø Programming tool: Any Windows programming language that could integrates DLL ISaGRAF (IEC1131-3 PLC standard).
HSLink Series Products Ø HSLink Master controller cards There are two Master cards supported: l PCI-7851: PCI bus, single HSLink master controller card. l PCI-7852: PCI bus, dual HSLink master controller card. At least one master controller card is necessary for HSLink system. With PCI-7852, two master controllers are available on one card, therefore, it supports two sets of HSLink systems.
HSLink Technical Information 1.4.1 HSLink Technology Brief HSLink is a 1 -master-n-slave command-response communication system. The one and only one master sends commands to slave I/O modules for setting output values and requesting input information. Every slave responses when receiving commands with slave number of its. The response is either to set output according received values or to reply requested input information to master.
Page 18
And, the following graph shows working theory of gathering input information. Memory Output value of every slaves NO 1 NO 2 ..............NO 45 ........ NO 45,what's your input Master status,now I,No 45. My input status is ..Slaves I/O Modules Figure 1.9: HSLink technology brief-2 The only one teacher (the master) sends the message ”No.#, what’s your...
Page 19
Teacher: NO1, your output vales are %%, what’s your newest input status? Student NO 1:My input status is ## (Teacher writes data on blackboard) Teacher: NO2, your output vales are %%, what’s your newest input status? Student NO 2:My input status is ## (Teacher writes data on blackboard) …...
1.4.2 Terminology of HSLink In addition to input/output polling mechanism showed above, some syntax related to HSLink should also be kept in mind. HSLink Master: Master is the “teacher” character in Figure 1.9 & 1.10. Master takes charge of giving commands, including output value announcing and newest input status requesting.
Page 21
Figure 1.11: Multiple master cards in one IPC In the above case, 4 PCI-7852 cards are settled together (8 HSLink sets), and each set of HSLink system equips it’s own slave I/O modules. To distinguish different master card, PCI-7851,PCI-7852 provide a 3 -bit dip-switch to organize its card ID.
Slave Number: A complete HSLink system must be composed of one master and 1~63 slaves. In the following graph, a layout example of HSLink system is presented. Slave I/O Module 16DI 8R16DI 16DI Master Circuit 16DO 16DI 16SE Slave I/O Module Figure 1.12: HSLink system layout example-serial wiring Each circuit from master could equip at most 32 slaves.
Page 23
Ø RS422 with Multi-drop Typical RS422 is not actually a networking spec. We do make some change. The TXD of master is connected to RXD of every slave I/O modules. And all TXD of slaves are connected to RXD of master. Only master use TXD(of master) à...
1.4.5 Networking Topology As described above, the HSLink system is of RS422 with multi -drop architecture. Base on this architecture, there are a variety of methods to networking a HSLink circuit, e.g.: serial, multi-drop, star … etc. It is very difficult to enumerate all the possible network topologies and the detail specifications.
Note: The minimum polling cycle time is 90.3µsec, even the maximum address is less than 3. 1.4.7 Communication error handling Though the HSLink communication protocol is dedicatedly designed to avoid any error, there is inevitably still some chance that communication error may occur, eg: light striking, suddenly off-line…...
Software Supporting Ø Window NT DLL The HSLink NT DLL (Dynamic Link Library) is provided as a programming interface under Microsoft Windows NT. The driver can work with any Windows programming language that could integrates DLL, such as Microsoft Visual C/C++(4.0 or above), Borland C++(5.0 or above), or Microsoft Visual Basic(4.0 or above), etc.
Page 27
6. Setup slave modules on remote side. Please read carefully the PIN OUT information of individual I/O modules. Set the dip switch for individual slave ID address 7. Connect master and slaves by RJ45/100Base/TX cable. Note: Do not mix different sets of HSLink system. Testing and debugging.
HSLink-Master The HSLink master is the key character that takes charge of the communication with slave I/O modules. By communication the master set output values to and gather input information from slaves. There are two kind of HSLink master card supplied by ADLINK: PCI-7851, PCI-7852.
Specifications Ø PCI Controller: l PCI local bus specification Rev. 2.1 compliance Ø Master Controller: l Master controller ASIC l External Clock: 48MHz Ø Memory: l 32KB SRAM – 12ns Ø Interface: l RS-422 with transformer isolation l Full duplex communication l Selectable transfer speed with 6Mbps and user defined (Default 6Mbps) l Two ports for one control master...
Function Description PCI-7851/7852 is equipped with one/two HSLink masters that control the communication inside HSLink system. The purpose to communicate with HSLink I/O modules is to gather input data from or set output value to them. In order to doing that, each HSLink master manages a 2K byte SRAM on 7851/7852 boards to keep data.
NT DLL Programming Installation of HSLink DLL Driver Ø System Requirements HSLink Windows NT DLL requires the following minimum requirement: Ø An IBM PC/AT or compatible system, running Windows NT version 4.0 or later Ø A hard disk with enough disk space to install HSLink Windows NT DLL, about 1M.
Page 33
Step 2. If Windows NT is loaded, choose “Run” from the taskbar. Step 3. Type A:\SETUP in the Run dialog box. With “ADLINK All-In-One Compact Disc”: Step 1. Place “ADLINK All-In-One Compact Disc” in the CD-ROM drive. Step 2. If auto run setup program is not invoked, execute x:\setup.exe (x: indicates the CD-ROM drive).
Then user can assign the “Program Folder”. The default “Program Folder” is “HSLink”. After complete the installation processes, you have to restart Windows NT sys tem, so that the HSLink NT drivers could work normally. ADLINK HSLink Master Utility When user has installed the HSLink NT DLL, HSLink ISaGRAF driver or HSLink DDE server software.
Page 35
About the operation items in the “ADLink HSLink Master Utility”, they will be described as following. l “Current Select Card ID” : This utility will detect all HSLink master cards (include PCI-7851 and PCI-7852) in this computer . The total master cards will display in the “Current Select Card ID”...
Page 36
l “Test Slave” : When user press “Connect / Auto Scan” button, all slave I/O modules in the “Current Select Set ID” of the “Current Select Card ID” will display in the screen. Now user can select a slave I/O module in the screen, then press the “Test Slave” button to enter the Slave testing window(The following is a testing utility for HSLink 16DI16DO module) About the operation items in the “HSLink System Monitor”, they will be...
How to Program with DLL Initial l Syntax U16 _stdcall W_HSL_Initial(U16 card_ID); Ø Description Initialize the hardware and software states of an HSLink master card(PCI-7851 or PCI-7852), and then return a status that corresponds to the card initialized. W_HSLink_Initial must be called before any other HSLink NT DLL functions can be called for the card.
Page 38
Close Ø Syntax U16 _stdcall W_HSL_Close(U16 card_ID); Ø Description This function is to close the HSLink master card with card_ID. This function is used to tell library that this registered card is not used currently and can be released. By the end of a program, you need to use this function to release all cards that were registered.
Page 39
Start Ø Systax U16 _stdcall W_HSL_Start(U16 card_ID, U16 set_ID, U16 slave_No); Ø Description This function is used to set the total connected slave I/O module numbers of the HSLink master card (PCI-7851 or PCI-7852) with set_ID and start to scan these slave I/O modules. Ø...
Page 40
Stop Ø Systax U16 _stdcall W_HSL_Stop(U16 card_ID, U16 set_ID); Ø Description This function stop to scan the connected slave I/O modules of the HSLink master card (PCI-7851 or PCI-7852) with set_ID value. Ø Parameter card_ID The card ID of the card that want to perform this operation.
Page 41
sts_data The communication status of this slave I/O module. Bit 0 is Data_Req bit. Bit 2 is for CHK1. (If Bit2 is 1. It mean that there is 1 time communication error) Bit 3 is for CHK3. (If Bit3 is 1. It mean that there are 3 times communication error) Bit 4, BIT 5 and BIT 6 bits are for CHK7.
Page 42
Slave Live Ø Systax U16 _stdcall W_HSL_Slave_Live(U16 card_ID, U16 set_ID, U16 slave_No, U8 live_data); Ø Description This function is to read the module status of the slave I/O module (live or die). The slave I/O module‘s address is slave_No and set value is set_ID. Ø...
Page 43
Get IRQ Channel Ø Systax void _stdcall W_HSL_Get_IRQ_Channel(U16 card_ID, U16 *irq_no ); Ø Description This function is to get the IRQ number of the HSLink master card with cardNo Ø Parameter card_ID The card id of the card that want to perform this operation.
Page 44
DIO In Ø Systax U16 _stdcall W_HSL_DIO_In (U16 card_ID, U16 set_ID, U16 slave_No, U32* in_data); Ø Description This function is to read the digital input value of the slave I/O module. The module‘s address is slave_No and set value is set_ID. Ø...
Page 45
DIO Channel In Ø Systax U16 _stdcall W_HSL_DIO_Channel_In (U16 card_ID, U16 set_ID, U16 s lave_No ,U16 channel_No, U16* in_data); Ø Description This function is to read the digital input value of the specified channel on the slave I/O module. The slave I/O module‘s address is slave_No, set value is set_ID and the the specified channel value is channel_No.
Page 46
DIO_Out Ø Systax U16 _stdcall W_HSL_DIO_Out (U16 card_ID, U16 set_ID, U16 slave_No, U32 out_data); Ø Description This function is to write the digital output value to the slave I/O module. The slave I/O module‘s address is slave_No and set value is set_ID. Ø...
Page 47
DIO Channel Out Ø Syntax U16 _stdcall W_HSL_DIO_Channel_Out (U16 card_ID, U16 set_ID, U16 slave_No, U16 channel_No, U16 out_data); Ø Description This function is to write t h e digital output value to the specified digital channel of slave I/O module. The slave I/O module‘s address is slave_No, set value is set_ID and the specified channel value is channel_No.
Page 48
Counter In Ø Systax U16 _stdcall W_HSL_Counter_In (U16 card_ID, U16 set_ID, U16 slave_No, U16 counter_No, U16* in_data); Ø Description This function is to read the counter value of the slave I/O module. The slave I/O module‘s address is slave_No and set value is set_ID. The counter value is counter_No.
Page 49
Software Reset Ø Systax void _stdcall W_HSL_Software_Reset(U16 card_ID); Ø Description This function is used to reset all the H/W register value in the master card. User can use it to dynamic reset all the H/W regis ter value. Ø Parameter card_ID The card id of the card that want to perform this operation.
Page 50
Timer Interrupt Disable Ø Systax U16 _stdcall W_HSL_TMRINT_Disable(U16 card_ID); Ø Description This function is used to disable the H/W timer interrupt of this master card. Ø Parameter card_ID The card id of the card that want to perform this operation. Ø...
Page 51
Timer Set Ø Systax void _stdcall W_HSL_Timer_Set(U16 card_ID, U16 c1, U16 c2); Ø Description This function is used to setup the Timer#1 and Timer#2. Timer#1 & Timer#2 are used as frequency divider for generating constant timer interrupt sampling rate dedicatedly. The highest timer interrupt sampling rate of the master card can not exceed 20KHZ on Win NT platform.
Page 52
DIO Memory Out Ø Systax void _stdcall W_HSL_DIO_Memory_Out(U16 card_ID, U16 set_ID, unsigned short *data_out); Ø Description This function is to write all digital output values to all slave I/O modules which the set value is set_ID and the card no is card_ID. In this function, user can write all digital output values to the slave I/O modules at one time.
Page 53
DIO Memory In Ø Systax void _stdcall W_HSL_DIO_Memory_In(U16 card_ID, U16 set_ID, unsigned short *data_in); Ø Description This function is used to read the digital input values from all slave I/O modules which the set value is set_ID and card no is card_ID. In this function, user can read all digital input values from all slave I/O modules at one time.
ISaGRAF Programming Installation of ISaGRAF Driver Ø System Requirements HSLink ISaGRAF NT Driver requires the following minimum requirements: An IBM PC/AT or compatible or a CompactPCI system, running Windows NT version 4.0 or later A hard disk with enough disk space to install HSLink,1M. A 1.44 MB 3.5 inch floppy disk drive, or a CD-ROM drive.
Page 55
With “ADLINK All-In-One Compact Disc”: Step 1. Place “ADLINK All-In-One Compact Disc” in the CD-ROM drive. Step 2. If autorun setup program is not invoked, execute x:\setup.exe (x indicates the CD-ROM drive). Step 3. Select Software Package→NuDAQ PCI Software → HSLink ISaGRAF Driver (NT version) to install the software.
Then user can assign the “Program Folder”. The default “Program Folder” is “HSLink ISaGRAF driver”. After complete the installation process, i n order to make the HSLink ISaGRAF drivers work, you have to restart Windows NT system. Restore I/O Board and I/O Equipment ISaGRAF use I/O board and I/O Equipment to control physical hardware.
Page 57
Step 6. Click the “Restore” button, then HSLink ISaGRAF I/O Board Object will copy to the ISaGRAF Workbench. Step 7. When the copy operation finish, user click the “Close” button and exit the ISaGRAF Archive Manager Utility. With “ADLINK All-In-One Compact Disc”: In order to restore HSLink ISaGRAF I/O Board and I/O Equipment Objects, user m ust follow the procedure: Step 1.
Restore Sample Programs With ADLINK’s “HSLink ISaGRAF Sample Program NT Version” diskettes: In order to restore HSLink ISaGRAF sample programs, user must follow the procedure: Step 1. Place the diskette “HSLink ISaGRAF Sample Program NT Version” in the 3.5" floppy drive Step 2.
Configuration of HSLink−R8DI16 module Configuration of HSLink 8R16DI module ISaGRAF driver’s properties In order to add HSLink R8DI16 module ISaGRAF driver to the ISaGRAF project, user has to follow the procedures below: 1. On the I/O Connection Editor, choose a empty slot, double click this slot, then Select Board/Equipment Dialog Box will appear.
Page 60
Input parameters of HSLink R8DI16 module ISaGRAF driver The Input parameters of HSLink R8DI16 module ISaGRAF driver are described as below: card_ID : The sequence number of HSLink master card. The first card (in the most prior slot) is with card_ID=0. For example, if there are two HSLink master cards plugged on your PC, the HSLink master card in prior slot should be registered with card_ID=0, the other HSLink master card card with card_ID=1 (The setting...
Configuration of HSLink−DI16DO16 module Configuration of HSLink DI16DO16 module ISaGRAF driver’s properties In order to add HSLink DI16DO16 module ISaGRAF driver to the ISaGRAF project, user has to follow the procedures below: 1. On the I/O Connection Editor, choose a empty slot, double click this slot, then Select Board/Equipment Dialog Box will appear.
Page 62
Input parameters of HSLink DI16DO16 module ISaGRAF driver The Input parameters of HSLink DI16DO16 module ISaGRAF driver are described as below: card_ID : The sequence number of HSLink master card. The first card (in the most prior slot) is with card_ID=0. For example, if there are two HSLink master cards plugged on your PC, the HSLink master card in prior slot should be registered with card_ID=0, the other HSLink master card card with card_ID=1 (The setting...
Page 63
Configuration of HSLink−DI32 module Configuration of HSLink DI32 module ISaGRAF driver’s properties In o rder to add HSLink DI32 module ISaGRAF driver to the ISaGRAF project, user has to follow the procedures below: 1. On the I/O Connection Editor, choose an empty slot, double click this slot, then Select Board/Equipment Dialog Box will appear.
Page 64
Input parameters of HSLink DI32 module ISaGRAF driver The Input parameters of HSLink DI32 module ISaGRAF driver are described as below: card_ID : The sequence number of HSLink master card. The first card (in the most prior slot) is with card_ID=0. For example, if there are two HSLink master cards plugged on your PC, the HSLink master card in prior slot should be registered with card_ID=0, the other HSLink master card card with card_ID=1 (The setting...
Page 65
Configuration of HSLink−DO32 module Configuration of HSLink DO32 module ISaGRAF driver’s properties In order to add HSLink DO32 module ISaGRAF driver to the ISaGRAF project, user has to follow the procedures below: 1. On the I/O Connection Editor, choose an empty slot, double click this slot, then Select Board/Equipment Dialog Box will appear.
Page 66
Input parameters of HSLink DO32 module ISaGRAF driver The Input parameters of HSLink DO32 module ISaGRAF driver are described as below: card_ID : The sequence number of HSLink master card. The first card (in the most prior slot) is with card_ID=0. For example, if there are two HSLink master cards plugged on your PC, the HSLink master card in prior slot should be registered with card_ID=0, the other HSLink master card card with card_ID=1 (The setting...
Page 67
Product Warranty/Service Seller warrants that equipment furnished will be free form defects in material and workmanship for a period of one year from the confirmed date of purchase of the original buyer and that upon written notice of any such defect, Seller will, at its option, repair or replace the defective item under the terms of this warranty, subject to the provisions and specific exclusions listed herein.
Need help?
Do you have a question about the HSLink HSL-DI32 and is the answer not in the manual?
Questions and answers