Advance Technologies; Automate the World.Manual Rev. 2.05Revision Date: October 15, 2007Part No: 50-12100-2040 High Speed Link SystemMaster-Slave D
vi How to Use This ManualHow to Use This ManualThis manual helps you in configuring, installing, and using the HSLseries products, and describes the f
HSL Function Library 87In addition, the values of c1 and c2 must be greater than 1. Whenc1=0 or c2=0, the timer interrupt stops. HSL_set_int_timer (7
88 HSL Function Library@ SyntaxC/C++ (DOS, Windows 98/NT/2000/XP)I16 HSL_set_timer (I16 card_ID, I16 c1, I16 c2);I16 HSL_enable_timer_interrupt (I16 c
HSL Function Library 89The formula is : Frequency(Hz) = enable: Enables (1) or disables (0) the timer interrupttime_out_ms: Specifies the time-out i
90 HSL Function Library5.4 Discrete I/O@ NameHSL_D_read_input – Read back all discrete I/O with unsigned32-bitHSL_D_read_channel_input – Read back dis
HSL Function Library 91Reads the digital input value of the discrete I/O module at a speci-fied channel.HSL_D_write_output:Writes the digital output
92 HSL Function LibraryType 1: Generates hardware interrupt when any DI data transi-tions are detected. (Figure 5.1)Figure 5-1: Type 1Type 2: Generate
HSL Function Library 93Type 3: Generates hardware interrupt when any DI data transi-tions are detected and when the scan cycle is completed. Wheninte
94 HSL Function Library…// start wait ret =HSL_D_wait_di_interrupt(1, 10000);if(ret == ERR_No_Error){ // DI state trainisted and check which bits cha
HSL Function Library 95I16 HSL_D_wait_di_interrupt(I16 card_ID, I32 time_out_ms);Visual Basic (Windows 98/NT/2000/XP)HSL_D_write_output (ByVal card_I
96 HSL Function LibraryByVal slave_No As Integer, ByVal bitsOfCheck As Long) As IntegerI16 HSL_D_set_int_control(I16 card_ID, I16 connect_index, I16 e
How to Use This Manual viiReferencesMaster board. HSL is a master-slave communication system. Inhost side, we call the control board as master board.
HSL Function Library 97*in_data: The input data of slave modules.X For HSL_D_read_input: The data of channel 0 is assigned to bit 0, the data of chan
98 HSL Function Libraryenable: Enables (0) or disables (1) the Di interrupt.time_out_ms: Specifies the time-out interval in milliseconds. Thefunction
HSL Function Library 995.5 Analog I/O@ NameHSL_A_start_read – Start A/D conversionHSL_A_stop_read – Stop A/D conversionHSL_A_set_signal_range – Set t
100 HSL Function LibraryHSL_A_set_signal_range:Sets the input range of the specified HSL AI/O modules.HSL_A_get_signal_range:Obtains the input range o
HSL Function Library 101@ SyntaxC/C++ (DOS, Windows 98/NT/2000/XP)I16 HSL_A_start_read (I16 card_ID, I16 connect_index);I16 HSL_A_stop_read (I16 card
102 HSL Function Libraryslave_No As Integer, ByVal signal_range As Integer) As IntegerHSL_A_get_signal_range (ByVal card_ID As Integer, ByVal connect_
HSL Function Library 103@ Argument card_ID: Specifies the HSL master card index. Typically, the sys-tem assigns the board index sequence. The index s
104 HSL Function Librarylast_channel: For single-ended setting, the maximum lastchannel is 15. For differential setting, the maximum last channel is7.
HSL Function Library 1055.6 Pulse Stretcher Function (HSL-DI16-UL Only)@ NameHSL_D_set_di_latch_function – Set DI latch function for aspecified DI ch
106 HSL Function LibraryI16 HSL_D_get_di_latch_function(I16 card_ID, I16 connect_index, I16 slave_No, I16 channel, I16 * active_mode, I16 *duration);V
viii How to Use This Manual
HSL Function Library 107@ Return CodeERR_Invalid_Board_NumberERR_Connect_IndexERR_Satellite_NumberERR_Board_No_InitERR_Channel_NumberERR_Slave_Number
108 HSL Function Library
How to Program with HSL Function Library 1096 How to Program with HSL Function LibraryThis chapter describes how to create a program with HSL C libra
110 How to Program with HSL Function LibraryHSL_connect_status(…):Detect the communication status of the slave module.HSL_D_read_input(…)HSL_D_read_ch
How to Program with HSL Function Library 1113. Use HSL_A_start_read(…) to initialize the AIO chan-nels reading operation.4. After activating the HSL
112 How to Program with HSL Function Library
Scan Time Table 113Appendix A Scan Time TableA.1 Full Duplex Mode (*) The minimum scan time for full duplex mode at different trans-mission speeds.S
114 Scan Time TableA.2 Half Duplex Mode (*) The minimum scan time for half duplex mode at different trans-mission speeds.Slave Index NumberCycle Time
Mapping Table 115Appendix B Mapping TableHSL has two types of function library in the HSL.h. The following isthe mapping table for new and old versi
116 Mapping TableB.3 Discrete I/OB.4 Analog I/ONew Version Old VersionHSL_D_read_input W_HSL_DIO_InHSL_D_read_channel_input W_HSL_DIO_Channel_InHSL_D_
HSL-AI16AO2 Calibration 117Appendix C HSL-AI16AO2 CalibrationC.1 Before you proceedBefore calibrating the HSL-AI16AO2-M-VV and HSL-AI16AO2-M-AV, tak
118 HSL-AI16AO2 CalibrationC.2 Calibrating the modulesTo calibrate the modules:1. Press the Calibration button from the HSL-AI16AO2 util-ity. A dialog
HSL-HUB/Repeater Information 119Appendix D HSL-HUB/Repeater Informa-tionD.1 Recommended transfer rates, total extension distance, and number of inst
120 HSL-HUB/Repeater InformationD.2.2 Full duplex/6 MbpsD.2.3 Full duplex/3 MbpsNumber of insertedHubs (Repeater)Slave Index Number3 (Min.) 30 63 (max
HSL-HUB/Repeater Information 121D.2.4 Half duplex/12 MbpsD.2.5 Half duplex/6 Mbps Number of insertedHubs (Repeater)Slave Index Number1 (Min.) 30 63 (
122 HSL-HUB/Repeater Information
Warranty Policy 123Warranty PolicyThank you for choosing ADLINK. To understand your rights andenjoy all the after-sales services we offer, please rea
124 Warranty Policy3. Our repair service is not covered by ADLINK's guaranteein the following situations:X Damage caused by not following instruc
Introducing HSL 11 Introducing HSL1.1 The HSL SystemThe HSL is an innovative distributed I/O technology that enablestime-deterministic scanning of th
2 Introducing HSL1.1.1 Product Overview The illustration shows the basic HSL system topology. Figure 1-1: HSL topology1.1.2 Product Highlights High-sp
Introducing HSL 3Time-deterministic scanningThe HSL master controller implements a deterministic timeperiod when scanning all slave I/O modules. The
4 Introducing HSLavailable slot. In contrast with centralized configuration, the dis-tributed I/O configuration eliminates this limitation of a centra
Introducing HSL 5modules at fixed scanning period and keeps the most updatedI/O status information on the SRAM. You may read and writethe data in the
6 Introducing HSLFigure 1-3: Networking PLCPLCs that are capable of network communications are usuallyvery expansive. And since the PLC is not an open
Copyright 2007 ADLINK TECHNOLOGY INC.All Rights Reserved. The information in this document is subject to change without priornotice in order to improv
Introducing HSL 7The HSL distributed control architecture is illustrated in Figure 1.4.With HSL, there is no need for an extra PC for Ethernet commun
8 Introducing HSLThe time-deterministic characteristic of an HSL system is animportant factor when implementing a DAQ application. Withan HSL system,
Introducing HSL 91.2 HSL System SpecificationsPlatformX Hardware platform: Industrial PC with PCI Bus/Embedded SBC with PMC connectorX Operating syst
10 Introducing HSLSupports maximum 2.4 km wiring via seven HSL-HUB/Repeater modulesWiringX Connector: RJ-45 (on master controller and some of slave mo
Introducing HSL 11CommunicationsX Multi-drop full-duplex RS-422 with transformer isolation schemeX Transmission speed: 3/6/12 Mbps (6 Mbps is factory
12 Introducing HSL1.3 HSL Series ProductsHSL Master controller boardsSee HSL Master Board on the previous section.At least one master controller card
Introducing HSL 13Note: Start Index Setting Range means range of the start index address of DIP switch setting. Full duplex and half duplex mode hav
14 Introducing HSL1.4 Technical Information1.4.1 HSL Technology IntroductionInside an HSL system, a single master controller communicateswith multi-sl
Introducing HSL 15The teacher (master) sends message “ID.#, your output valuesare XXX” to all students (slave I/O modules). Every student (withID.#)
16 Introducing HSLThe teacher (master) sends the message “ID.#, what is your latestinput status” to all students (slave I/O modules). Every student(wi
Getting Service from ADLINKCustomer Satisfaction is top priority for ADLINK Technology Inc.Please contact us should you require any service or assista
Introducing HSL 17Figure 1-8: HSL I/O polling cycle
18 Introducing HSLThe HSL master-slave communication architecture is illustratedbelow:Figure 1-9: Master-slave communication architecture
Introducing HSL 191.4.2 HSL TerminologyIn addition to the input/output polling mechanism shown above,here are some HSL-related syntax for your refere
20 Introducing HSL1.4.3 System ConfigurationsTo develop an HSL application, you must know how to configurethe HSL cards and slave I/O modules. The fol
Introducing HSL 21Slave Index. A complete HSL system is composed of one masterand 1 to 63 slave indexes. The following diagram illustrates anHSL syst
22 Introducing HSL1.4.4 WiringThe HSL network follows a modified RS-422 electrical specifica-tion. WiringThe wire cables of an HSL system are carefull
Introducing HSL 23The diagram below illustrates RS-422 with multi-drop:Figure 1-12: HSL wiring – RS-422 with multi-dropX There are two RJ-45 notches
24 Introducing HSL1.4.5 Networking TopologyBase on the RS-422/RS-485 architecture, a variety of topologiesare available for an HSL circuit, including
Introducing HSL 251.4.6 I/O refreshing rate of an HSL systemThe scan time unit for one slave index is set in 3/6/12 Mbps trans-mission rate. Once the
26 Introducing HSL1.4.7 Communication error handlingThe HSL communication protocol is designed to eliminate anyerror, there may be some chances of com
Introducing HSL 271.5 Software SupportWindow® 2000/XP DLL The provided Windows® 2K/XP DLL (Dynamic Link Library) isa programming interface for system
28 Introducing HSL
HSL Master Controller 292 HSL Master ControllerThe HSL master is the key component in charge of communicat-ing with slave I/O modules. The master set
30 HSL Master Controller2.2 SpecificationsPCI BusX PCI local bus specification Rev. 2.1-compliant Master Controller X HSL ASIC master controllerX 48 M
HSL Master Controller 312.2.1 PCI-7853/7854 LayoutFigure 2-2: PCI-7853/7854 LayoutCN1: RJ-45 connector with first HSL master controllerCN2: RJ-45 c
32 HSL Master Controller2.2.2 PMC-7852/G LayoutFigure 2-3: PMC-7852/G LayoutX H1A, H1B: RJ-45 connector with first HSL master controller X H2A, H2B: R
HSL Master Controller 33X JP1, 2, 3, 6: Full/Half duplex mode with first master control-ler (Default: Full duplex mode)X JP4, 5: Full/Half duplex mod
34 HSL Master Controller2.3 Configuration2.3.1 SW1 (PMC-7852/G only)Figure 2-4: SW1 – Transmission Rate SettingDefault: 6 Mbps.2.3.2 JP 1, 2, 3, 6 / J
HSL Master Controller 352.4 PIN Assignment (female)
36 HSL Master Controller2.5 Software Architecture DescriptionThe PCI-7853/PCI-7854/PMC-7852/G comes with one or two HSLmaster ASICs that control the H
Table of Contents iTable of ContentsTable of Contents... iList of Tables...
HSL Master Controller 372.6 Installation2.6.1 Hardware Installation The PCI-7853/PCI-7854 is a plug and play device, with the systemBIOS automaticall
38 HSL Master Controller
HSL Slave Module 393 HSL Slave ModuleThe HSL is a master-slave network system that features an inno-vative distributed architecture that modularizes
40 HSL Slave Module3.1 Slave I/O Module3.1.1 Discrete I/O ModuleADLINK provides three I/O module series: DB, M and L.X DB: Daughterboard form factorX
HSL Slave Module 413.1.2 Analog I/O ModuleADLINK provides M series analog I/O module.Below is the selection guide.3.1.3 Motion ControlADLINK provides
42 HSL Slave Module3.1.4 General SpecificationsDiscrete I/O Module(1): NPN sinking type sensor input module(2): PNP sourcing type sensor input modules
HSL Slave Module 43*Note: The HSL-DI16-UL supports 5 V, 12 V, and 24 V, selectedby a jumper for each channel:X JDI0 - JDI15 (input voltage setting)An
44 HSL Slave Module3.1.5 DIP Switch Setting:Notes(1) The address (or slave index) 0 is reserved.(2) The HSL-DI32-M, HSL-DO32-M, HSL-DI32-DB, and HSL-D
HSL Slave Module 453.1.6 Wiring Diagram-N NPN Sinking type sensor Input -N Dry Contact Input-P PNP Sourcing type sensor Input v+INLEDInternalCircuit
46 HSL Slave Module-P Wet Contact Input -N NPN Sinking Output v+INLEDInternalCircuitsG
ii Table of Contents3 HSL Slave Module... 393.1 Slave I/O Module ...
HSL Slave Module 47-P PNP Sourcing Output-R Relay OutputAnalog Input (Differential Voltage Input) NO.nCOM.nLEDSSRInternalCircuitLoadAGND Diffe
48 HSL Slave ModuleAnalog Input (Single-End Voltage Input)Analog Input (Current Measure)Thermocouple Measurement GroundSignalSource AGNDIN(+) ADC
HSL Slave Module 49Dimension-DB Daughterboard form factor (100 mm X 78.2 mm)-M Daughterboard with aluminum cover (125 mm X 80 mm)
50 HSL Slave Module-U U-series slave I/O module (71.8 mm X 138 mm)
HSL Slave Module 513.2 Terminal Base Available terminal bases include:X HSL-TB32-U-DINX HSL-TB64-DIN X HSL-TB32-M-DINX HSL-TB32-MDFeaturesX Field I/O
52 HSL Slave Module3.2.2 Jumper SettingsSince HSL is a serial transmission system, a terminator must beplaced at the end of the cable. Each TB has an
HSL Slave Module 533.2.3 HSL-TB32-MD Jumper Settings
54 HSL Slave Module3.2.4 Dimensions-DB with HSL-TB32-U-DIN (126 mm x 120.1 mm x 107.3 mm) -DB with HSL-TB64-DIN (168.7 mm x 120.1 mm x 107.3 mm)
HSL Slave Module 55-M module with HSL-TB32-M-DIN (128.5 mm x 85.5 mm x 108mm)-HSL-TB32-MD (129 mm x 107 mm)
56 HSL Slave Module3.3 HSL-HUB/RepeaterAvailable HSL-HUB/Repeater includes:X HSL-HUBX HSL-RepeaterFeaturesX Master to HUB, HUB to HUB, HUB to Slave li
Table of Contents iii5.6 Pulse Stretcher Function (HSL-DI16-UL Only) ... 1056 How to Program with HSL Function Library...
HSL Slave Module 573.3.2 Jumper SettingFD/HD setting JP*(0 to 3), JFH13/6/12 Mbps setting: JBPS1
58 HSL Slave Module3.3.3 DimensionsHSL-HUBHSL-Repeater
HSL Slave Module 593.4 Managing Slave Index in an HSL Network 3.4.1 Before you proceedBefore powering on the slave modules, you have to adjust the DI
60 HSL Slave ModuleObserve the motion control module rule5. Special rulesZ If you will install only one HSL-AI16AO2-M-VV or HSL-AI16AO2-M-AV and the D
HSL Slave Module 613.4.2 ExamplesThe following examples are provided for user reference. All mod-ules used are set in full duplex mode.Example 1Provi
62 HSL Slave ModuleHSL-AI6AO2-M-VV is assigned as 1. Because of the special rule,users have to assign the “max_slave_No” of HSL_start(…) as 3 orcall H
HSL Slave Module 63Example 2Provided you installed two HSL-DI16DO16-UJ, one HSL-DI16DO16-M-NN, two HSL-DO32-M-N, one HSL-AI16AO2-VV,and two HSL-4XMO-
64 HSL Slave Moduleand two HSL-4XMO-CG-N modules connect to another mastercontroller. The management table below is for reference.Refer to the illustr
HSL LinkMaster Utility 654 HSL LinkMaster Utility After installing the master controller and slave modules, you arenow ready to install the HSL drive
66 HSL LinkMaster Utility4.1 Software Installation You can install the HSL drivers from the ADLINK All-in-One CDthat comes with the package or you may
iv List of TablesList of TablesTable 1-1: Remote Operation ... 10Table 1-2: Slave I/O modules ...
HSL LinkMaster Utility 674.2 ADLINK HSL LinkMaster Utility4.2.1 Launching the LinkMaster UtilityAfter installing the drivers, click Start > PCI-78
68 HSL LinkMaster Utility4.2.3 LinkMaster Utility IntroductionBelow is the LinkMaster main user interface labeled according tofunction.X A. Select car
HSL LinkMaster Utility 69X J. Test slave moduleX K. Exit motion creatorX L. Version informationBelow are descriptions of the main interface buttons.1
70 HSL LinkMaster Utility4. Connect/Auto Scan. Clicking this button allows the util-ity to scan all slave modules connected to the mastercard with spe
HSL LinkMaster Utility 714.2.4 HSL-DI16DO16 Utility1. Slave Address. Shows the slave index occupied by themodule.2. Digital Input. A white circle ind
72 HSL LinkMaster Utility4.2.5 HSL-DI32 and HSL-DO32 Utility1. Slave Address. Shows the slave index occupied by themodule. These modules occupy two sl
HSL LinkMaster Utility 734.2.6 HSL-DI8/HSL-DO8/HSL-DI4DO4 Utility1. Slave Address. Shows the slave index occupied by themodule. These modules occupy
74 HSL LinkMaster Utility4.2.7 HSL-R8DI16 Utility1. Slave Address. Shows the slave index occupied by themodule. These modules occupy only one slave in
HSL LinkMaster Utility 754.2.8 HSL-AI16AO2 Utility1. Slave Address. Shows the slave index occupied by themodule. The module occupies two consecutive
76 HSL LinkMaster Utility9. Calibration. Calibrates the module. The modules areshipped with correct calibration. Refer to Appendix C ifyou want to rec
List of Figures vList of FiguresFigure 1-1: HSL topology ... 2Figure 1-2: Traditional dist
HSL Function Library 775 HSL Function LibraryThis chapter describes the functions for developing programs in C,C++, or Visual Basic.5.1 List of Funct
78 HSL Function LibraryFor the motion control library description, refer to the HSL-4XMOfunction library manual. This section contains the system leve
HSL Function Library 79Discrete I/O, Section 5.4Analog I/O, Section 5.5Function Name DescriptionHSL_D_read_input Read back all discrete I/O with unsi
80 HSL Function LibraryPulse Stretcher Function (HSL-DI16-UL only), Section 5.6Function Name DescriptionHSL_D_set_di_latch_function Set DI-ltech funct
HSL Function Library 815.2 Initialization and System Information@ NameHSL_initial – Master board initializationHSL_close – Release all resource occup
82 HSL Function LibraryHSL_auto_start:Automatically detects the total connected slave modules. Everymaster controller can connect up to 63 slave index
HSL Function Library 83I16 HSL_get_scan_condition(I16 card_ID, I16 connect_index, I16 *comm_type, I16 *transfer_rate, I16 *hub_number);I16 HSL_connec
84 HSL Function Libraryconnect_index: For PCI-7851, the valid value is 0. For PCI-7852 and PMC-7852/G, the valid value is 0 or 1.max_slave_No: The max
HSL Function Library 85@ Return CodeERR_No_Error ERR_Open_Driver_Fail ERR_Invalid_Board_NumberERR_Satellite_NumberERR_Connect_Index
86 HSL Function Library5.3 Timer Control@ NameHSL_enable_timer_interrupt (7851/52 only) – Enable timerinterrupt of master cardHSL_disable_timer_interr
Commentaires sur ces manuels