background image

HSL Slave Module 

 37

3.4

Managing Slave Index in an HSL Network 

3.4.1

Before you proceed

Before powering on the slave modules, you have to adjust the DIP 
switch. For more information, refer to section 3.1.6. Take note of 
the following:

1. A master controller can connect up to 63 slave indexes. 

For example, the PCI-7852 has two master controllers. 
Therefore, it supports a maximum 126 slave indexes.

2. The more compact the slave addresses are in an HSL 

network, the greater efficiency.

3. Observe the discrete I/O and relay module rule.

4. Observe the analog I/O and thermocouple module rule.

Module

Slave Index
Occupation

Transmission

Mode

Transmission

Speed

HSL-DI16DO16-M-NN/NP/PN/PP

1 (Any address)

Full Duplex (Fixed)

6 Mbps (Fixed)

HSL-DI16DO16-DB-NN/NP/PN/PP

HSL-R8DI16-M-N/P

HSL-DI8-L-N/P

HSL-DO8-L-N/P

HSL-DI4DO4-L-NN/NP/PN/PP

HSL-DI16-UL

HSL-DI16DO16-UJ/US

HSL-DI32-M-N/P

2 (Consecutive

from odd number)

HSL-DI32-DB-N/P

HSL-DO32-M-N/P

HSL-DO32-DB-N/P

Module

Slave Index
Occupation

Transmission

Mode

Transmission

Speed

HSL-AI16AO2-M-VV

2 (Leap number)  Full Duplex (Fixed) 

3/6/12 Mbps 

Selectable

HSL-AI16AO2-M-AV

HSL-AO4-U

Summary of Contents for DB-8151

Page 1: ...Advance Technologies Automate the World Manual Rev 2 00 Revision Date May 20 2008 Part No 50 14009 2000 DB 8151 Modulized Function Board HSL User s Manual ...

Page 2: ... or inability to use the product or documentation even if advised of the possibility of such damages This document contains proprietary information protected by copy right All rights are reserved No part of this manual may be repro duced by any mechanical electronic or other means in any form without prior written permission of the manufacturer Trademarks NuDAQ NuIPC DAQBench are registered tradem...

Page 3: ...vice adlinktech com TEL 886 2 82265877 FAX 886 2 82265717 Address 9F No 166 Jian Yi Road Chungho City Taipei 235 Taiwan Please email or FAX this completed service form for prompt and satisfactory service Company Information Company Organization Contact Person E mail Address Address Country TEL FAX Web Site Product Information Product Model Environment OS M B CPU Chipset BIOS Please give a detailed...

Page 4: ......

Page 5: ...oting 11 2 4 Software Driver Installation 12 2 5 DB 8151 Pin Assignments 13 CN3 Pin Description 13 2 6 DB 8151 RJ45 Pin Assignments 14 CN1 Pin Description 14 RJ1 Pin Description 15 3 HSL Slave Module 17 3 1 Slave I O Module 18 Discrete I O Module 18 Analog I O Module 19 Motion Control 19 General Specifications 20 DIP Switch Setting 22 Wiring Diagram 23 3 2 Terminal Base 29 General Description 29 J...

Page 6: ... 52 HSL R8DI16 Utility 54 HSL AI16AO2 Utility 55 HSL 4XMO Utility 56 5 Function Library PCI 8154 DB 8151 57 5 1 List of Functions 57 5 2 Initialization System Information 62 5 3 Discrete I O 67 5 4 Analog I O 77 Appendix A Scan Time Table 85 A 1 Full Duplex Mode 85 A 2 Half Duplex Mode 86 Appendix B HSL AI16AO2 Calibration 87 B 1 Before you proceed 87 B 2 Calibrating the modules 88 Appendix C HSL ...

Page 7: ...List of Tables iii List of Tables Table 1 1 DB 815x Series 1 Table 2 1 DB 8151 CN3 Pin Assignment 13 Table 2 2 DB 8151 RJ45 CN1 Pin Assignment 14 Table 2 3 DB 8151 RJ45 RJ1 Pin Assignment 15 ...

Page 8: ...CB Layout 8 Figure 2 2 DB 8151 RJ45 PCB Layout 9 Figure 2 3 Board Configuration 10 Figure 4 1 PCI 8154 58 Installation Page 44 Figure 4 2 HSL LinkMaster Utility 45 Figure 5 1 HSL DI Interrupt for Example 1 69 Figure 5 2 HSL DI Interrupt for Example 2 70 Figure 5 3 HSL DI Interrupt for Example 3 70 ...

Page 9: ...ies are The DB 8151 offers an HSL High Speed Link system for distrib uted I O on the PCI 8154 58 HSL is an innovative distributed I O Model Name Primary Function Description DB 8150 High Speed Trigger Out X High speed trigger pulse out up to 1 MHz X Simultaneous 8 differential trigger output X 2 channels encoder input from external I F or carrier FIFO Linear function com pared trigger output DB 81...

Page 10: ...e HSL slaves modules as close as possi ble to sensor devices again resulting in a dramatic reduction of wiring System integrators can benefit from HSL network because it integrates discrete I O and analog I O This local network fea tures rapid response real time scanning Integration of multi axis operations can also be accomplished with the DB 8151 module as the HSL architecture is ready to use on...

Page 11: ...rd solutions making the motion system config uration more flexible and compact X Simpler wiring for remote I O including discrete I O and analog I O modules X A vast number of discrete I O points hundreds or more X Real time and fast scanning X High speed data acquisition The block diagram of the DB 8151 is as follows ...

Page 12: ...4 Introduction Figure 1 1 Block Diagram of the DB 8151 PCI 8154 58 Local bus HSL Master Transformer TX RX HSL Potocol FPGA ...

Page 13: ...8 MHz external clock Interface X RS 485 with transformer isolation X Full duplex communication X 3 6 12 Mbps transmission rate can be set by software 6 Mbps default Connector X RJ45 connector x 2 Interrupt X Status read back LED Indicator X Link status Dimension X 96 42 L x 62 W mm Operating Temperature X 0 to 60 C Storage Temperature X 20 to 80 C Power Consumption X 3 3V 250 mA typical X 5V 100 m...

Page 14: ...roduction 1 2 Supported Software Program Library ADLINK provides a Windows WDM driver and DLL function library for the DB 8151 These function libraries are shipped with the board and supports Windows 2000 XP ...

Page 15: ... the I O signal connections Chapter 3 page 17 and their operations Chapter 4 page 43 2 1 Package Contents In addition to this User s Guide the package also includes the fol lowing items X DB 8151 HSL Master control board x1 X DB 8151 RJ45 HSL interface board x1 X Copper Pillar x4 X Screws x8 X 10 Pin Flat Cable x1 If any of these items are missing or damaged contact the dealer from whom you purcha...

Page 16: ... Installation 2 2 DB 8151 and DB 8151 RJ45 Outline Drawing Figure 2 1 DB 8151 PCB Layout DB 8151 X CN1 CN2 Daughter board connectors for the PCI 8154 58 X CN3 Main signal connector CN2 CN1 CN3 6 2 96 42 ...

Page 17: ...Installation 9 Figure 2 2 DB 8151 RJ45 PCB Layout DB 8151 RJ45 X RJ1 Main HSL master controller connector X CN1 Link to DB 8151 RJ1 CN1 10 6 6 8 4 6 4 2 ...

Page 18: ...t to the PCI 8154 or PCI 8158 2 3 2 Installation Procedures Please follow installation procedure as follows Daughter Board Installation 1 Attach the DB 8151 on to the PCI 8154 or PCI 8158 Please ensure correct orientation of the DB 8151 daugh ter board 2 Screw the eight screws into the corresponding copper pillars 3 Connect the DB 8151 and DB 8151 RJ45 with the 10 pin flat cable Figure 2 3 Board C...

Page 19: ... case of the computer Hold the edge of the card and do not touch the components 7 Plug the PCI 8154 58 with DB series vertically down into the PCI slot and then secure the PCI 8154 58 bracket and DB 8151 RJ45 bracket onto rear panel 2 3 3 Troubleshooting If the system doesn t boot or if any erratic behavior of the PCI board is experience it is most likely caused by an interrupt conflict possibly a...

Page 20: ...tion 2 4 Software Driver Installation Execute the following steps 1 Auto run the ADLINK All In One CD 2 Follow the procedures of the installation wizard 3 After setup installation has completed reboot the sys tem ...

Page 21: ... Pin Description CN3 is the main DB 8151 connector linking to DB 8151 RJ45 via a 10 pin flat cable PIN NO PIN OUT PIN 1 5V PIN 2 FG PIN 3 DG PIN 4 LED Signal PIN 5 RXD1 PIN 6 TXD PIN 7 RXD2 PIN 8 TXE PIN 9 DG PIN 10 FG Table 2 1 DB 8151 CN3 Pin Assignment ...

Page 22: ... Description CN1 is the main DB 8151 RJ45 connector linking to the DB 8151 through a 10 pin flat cable PIN NO PIN OUT PIN 1 5V PIN 2 FG PIN 3 DG PIN 4 LED Signal PIN 5 RXD1 PIN 6 TXD PIN 7 RXD2 PIN 8 TXE PIN 9 DG PIN 10 FG Table 2 2 DB 8151 RJ45 CN1 Pin Assignment ...

Page 23: ...n 15 2 6 2 RJ1 Pin Description RJ1 is the RJ45 connector on the DB 8151 RJ45 PIN NO PIN OUT PIN 1 NC PIN 2 NC PIN 3 RX PIN 4 TX PIN 5 TX PIN 6 RX PIN 7 NC PIN 8 NC Table 2 3 DB 8151 RJ45 RJ1 Pin Assignment 1 8 1 8 ...

Page 24: ...16 Installation ...

Page 25: ...in the module and each module is identified by an address ID configurable via the 6 bit DIP switch Depending on the I O support each slave I O module may be assigned one or two address IDs Since the highest ID number in an HSL master is 63 6 bit and 0 reserved for master up to 63 slave I O modules are supported in one HSL master Terminal Base Offers an easy wiring media Both power and sig nal wiri...

Page 26: ...6DO16 DB N P 16 16 1 M HSL DI32 M N P 32 2 Consecutive from odd number HSL DO32 M N P 32 2 Consecutive from odd number HSL DI16DO16 M NN NP PN PP 16 16 1 HSL R8DI16 M N P 16 8 1 U HSL DI16DO16 US UJ NN NP PN PP 16 16 1 HSL DI16 UL 16 1 HSL DIxDOx x XY Discrete I O Type DI16DO16 16 discrete inputs and 16 discrete outputs DI32 32 discrete inputs DO32 32 discrete outputs R8DI16 8 relay outputs and 16...

Page 27: ...s refer to the HSL 4XMO user s manual Series Model Analog Input Analog Output Slave Index Occupation M HSL AI16AO2 M VV 16 2 2 Leap number HSL AI16AO2 M AV 16 2 2 Leap number U HSL AO4 4 2 HSL AIxAOx x XY Discrete I O Type AI16AO16 16 analog inputs and 2 ana log outputs Series M Daughter board with aluminum cover Signal Type X Input signal type V means voltage and A means current Y Output signal t...

Page 28: ... Input Current For NPN 1 10 mA For PNP 2 10 mA Operation Voltage 24 VDC Power Supply For NPN 1 ON 11 4 VDC max OFF 14 3 VDC min For PNP 2 ON 12 6 VDC min OFF 9 8 VDC max Response Time ON 8 8 µs Typical OFF 42 µs Typical Discrete Output Switch capacity For NPN 3 All channels 5 50mA ch at 24VDC For PNP 4 All channels 50mA ch at 24VDC Response Time ON to OFF 68 µs OFF to ON 1 1 µs Relay Relay Type SP...

Page 29: ... 7 kΩ 24 VDC 2 74 k 12 VDC 1 1 k 5 VDC Operation Voltage DI_COM 24 VDC ON 14 0 VDC max OFF 18 0 VDC min DI_COM 12 VDC ON 6 0 VDC min OFF 8 0 VDC max DI_COM 5 VDC ON 1 0 VDC min OFF 3 0 VDC max Analog Input A D Resolution 16 bit 14 bit guaranteed Input Range For VV type 10 5 2 5 1 25 V For AV type 20 mA 10 mA 5 mA A D Conversion 10 µs Signal Type 16 CH single ended 8 CH differential Analog Output D...

Page 30: ...e DIP switch is set to 3 it occupies slave index 3 and 4 3 The HSL AI16AO2 M VV AV requires two leap addresses at full duplex mode For example if the DIP switch is set to 2 the module occupies addresses 2 and 4 4 The HSL 4XMO CG N P and HSL 4XMO CD N P require four leap addresses at full duplex mode For example if the DIP switch is set to 2 these modules occupy 2 4 6 and 8 At half duplex mode it r...

Page 31: ...ule 23 3 1 6 Wiring Diagram N NPN Sinking type sensor Input N Dry Contact Input P PNP Sourcing type sensor Input v IN LED Internal Circuits Circuit G v IN LED Internal Circuits G v IN LED Internal Circuits Circuit G ...

Page 32: ...24 HSL Slave Module P Wet Contact Input N NPN Sinking Output v IN LED Internal Circuits G ...

Page 33: ...HSL Slave Module 25 P PNP Sourcing Output R Relay Output Analog Input Differential Voltage Input NO n COM n LED SSR Internal Circuit Load AGND Differential Signal Source 30V IN IN ADC ...

Page 34: ...L Slave Module Analog Input Single End Voltage Input Analog Input Current Measure Thermocouple Measurement Ground Signal Source AGND IN ADC Current Source R 125 Ohm 1 accuracy IN IN ADC R 30V IN IN ADC AGND ...

Page 35: ...HSL Slave Module 27 Dimension DB Daughterboard form factor 100 mm X 78 2 mm M Daughterboard with aluminum cover 125 mm X 80 mm ...

Page 36: ...28 HSL Slave Module U U series slave I O module 71 8 mm X 138 mm ...

Page 37: ...ng design for installation in rugged environments X Power LED indicator X DIN rail mounting X Onboard terminator resistor 3 2 1 General Description Model Name Specifications Supports For DB Series HSL TB32 U 1 32 channels direct connected terminal base All HSL DB series modules 2 One DB slot HSL TB64 1 64 channels direct connected terminal base All HSL DB series modules 2 Two DB slots For M Series...

Page 38: ...3 2 2 Jumper Settings Since HSL is a serial transmission system a terminator must be placed at the end of the cable Each TB has an onboard jumper selectable terminator The terminator must be enable only by the last module ...

Page 39: ...HSL Slave Module 31 3 2 3 HSL TB32 MD Jumper Settings ...

Page 40: ...32 HSL Slave Module 3 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 ...

Page 41: ...HSL Slave Module 33 M module with HSL TB32 M DIN 128 5 mm x 85 5 mm x 108 mm HSL TB32 MD 129 mm x 107 mm ...

Page 42: ...T bracing connection Star connection subsystem concept X Supports up to 2 4 km wiring distance via seven HSL HUB Repeater modules X One input port with three output segment ports X Jumper configurable 3 6 12 Mbps transmission speed X Jumper configurable full and half duplex transmission modes X RJ 45 phone jack for easy installation X 24 VDC input 3 3 1 General Description ...

Page 43: ...HSL Slave Module 35 3 3 2 Jumper Setting FD HD setting JP 0 to 3 JFH1 3 6 12 Mbps setting JBPS1 ...

Page 44: ...36 HSL Slave Module 3 3 3 Dimensions HSL HUB HSL Repeater ...

Page 45: ...the greater efficiency 3 Observe the discrete I O and relay module rule 4 Observe the analog I O and thermocouple module rule Module Slave Index Occupation Transmission Mode Transmission Speed HSL DI16DO16 M NN NP PN PP 1 Any address Full Duplex Fixed 6 Mbps Fixed HSL DI16DO16 DB NN NP PN PP HSL R8DI16 M N P HSL DI8 L N P HSL DO8 L N P HSL DI4DO4 L NN NP PN PP HSL DI16 UL HSL DI16DO16 UJ US HSL DI...

Page 46: ... will install only one HSL 4XMO CG N P or HSL 4XMO CD N P and the DIP switch is set as to 1 and full duplex mode the occupied indexes will be 1 3 5 and 7 You must assign the parameter max_slave_No of HSL_start as 8 to ensure correct communication You may ignore this rule when using the HSL_auto_start function In half duplex mode these modules occupy 1 2 3 and 4 Therefore you must assign the max_sl...

Page 47: ...t 6 Mbps full duplex mode Users can connect the modules with one master controller Condition 2 HSL AI16AO2 VV operates at 12 Mbps We recommended that you use the provided slave index con figuration Another example of a compact composition The scan time needs 30 33 µs x 6 at 6 Mbps full duplex mode You may connect these modules with one master controller The HSL AI16AO2 M VV module connects to anot...

Page 48: ...ssign the max_slave_No of HSL_start as 3 or call HSL_auto_start by connect_index 1 The illustration below explains this Consequently the cycle time of the first master controller is 30 33 µs x 6 and the cycle time of the second master controller is 45 5 µs at 12 Mbps full duplex mode HSL DI16DO16 ...

Page 49: ...h one master controller Condition 2 An HSL AI16AO2 VV and two HSL 4XMO CG N modules operate at 12 Mbps We recommended that you use the provided slave index con figuration The scan time needs 30 33µs x 7 You may connect these modules with one master controller The HSL AI16AO2 M VV Item DIP Switch Index Occupation in HSL HSL 4XMO CG N 1 1 1 3 5 7 HSL 4XMO CG N 2 2 2 4 6 8 HSL DO32 M N 1 9 9 10 HSL D...

Page 50: ...for reference Refer to the illustration below The cycle time of the first master controller is 30 33µs x 7 while the cycle time of second master controller is 15 17µs x 11 at 12 Mbps full duplex mode Group 2 DIP Switch Index Occupation in HSL HSL 4XMO CG N 1 1 1 3 5 7 HSL 4XMO CG N 2 2 2 4 6 8 HSL AI16AO2 M VV 9 9 11 ...

Page 51: ...the LinkMaster utility to test and debug the system This utility provides a user friendly inter face to easily test I O status including read write the I O data cali bration and motion control It is strongly recommended that this utility be used before implementing the whole system Note LinkMaster is only available for Windows 2k XP with screen resolution higher than 800 600 ...

Page 52: ...vers from the ADLINK website The latest driver version are available from the website 1 Find the SETUP exe and execute the file 2 The follwoing screen will appear Figure 4 1 PCI 8154 58 Installation Page Follow the instruction to complete installation 3 After complete the installation processes you have to restart Windows system so that the PCI 8154 58 drivers could work normally ...

Page 53: ...5 4 2 ADLINK HSL LinkMaster Utility 4 2 1 Launching the LinkMaster Utility After installing the drivers click Start PCI 8154 LinkMaster_8154_DB8151 to launch the LinkMaster utility The main window appears Figure 4 2 HSL LinkMaster Utility ...

Page 54: ...for Windows 98 NT 2000 XP environments with a monitor that has a screen resolution of 800x600 or higher The utility does not sup port DOS environment 2 The LinkMaster version control may be found on the top right corner of the main window 3 Any slave modules may be tested with this utility includ ing discrete I O analog I O thermocouple module and motion control modules For motion control utility ...

Page 55: ...erface labeled according to function X A Select card X B Network quality test X C Set hub number X D Set duplex mode X E Set speed mode X F General slave selection X G Auto scan slave modules X H Show software information X I Show module information X J Test slave module X K Exit LinkMaster X L Version information ...

Page 56: ...rd to oper ate 2 Current Select Connect Index For 8154_DB8151 only CN0 is available 3 ALL Slave ID Connection Test The screen capture below shows a live scan of all I O modules for network quality test The LinkMaster lets you check the network environment Start the test by clicking on the Test button Press Stop to stop scanning When you start the test the utility con tinuously tests each ID and sh...

Page 57: ...g all the slave modules and to disconnect them 6 Status Msg Checks if the slave modules are connected or disconnected 7 Test Slave While all connected slave modules list in 9th block you can use this function to activate the testing dialog For example when you connect the HSL DI16DO16 M NN you will see this module from the screen Clicking on it will show a window from where you can test and debug ...

Page 58: ...ndicates that the digital output is turned on and vice versa 4 Slave Status Shows the communication status between the slave module and the master card The functions definition are enumerated below Z Bit 0 is Data_Req bit Z Bit 2 is for CHK1 When Bit 2 is equal to 1 a communi cation error occurred once Z Bit 3 is for CHK3 When Bit 3 is equal to 1 a communi cation error occurred three times Z Bit 4...

Page 59: ...tivated 3 Digital Output Click on the icon to activate the digital output Red icon indicates that the digital output is turned on and vice versa 4 Slave Status Shows the communication status between the slave module and the master card The functions definition are enumerated below Z Bit 0 is Data_Req bit Z Bit 2 is for CHK1 When Bit2 is equal to 1 a communica tion error occurred once Z Bit 3 is fo...

Page 60: ...HSL LinkMaster Utility for DB 8151 4 2 6 HSL DI8 HSL DO8 HSL DI4DO4 Utility The HSL DI8 L HSL DO8 L and HSL DI4DO4 L series all have the same utility dialog as above All contents are described as fol lows ...

Page 61: ...d icon indicates that the digital output is turned on and vice versa 4 Slave Status Shows the communication status between the slave module and the master card The functions definition are enumerated below Z Bit 0 is Data_Req bit Z Bit 2 is for CHK1 When Bit2 is equal to 1 a communica tion error occurred once Z Bit 3 is for CHK3 When Bit3 is equal to 1 a communica tion error occurred three times Z...

Page 62: ...ction turns the relay ON or OFF A red circle indi cates that the relay is on and vice versa 4 Slave Status Shows the communication status between the slave module and the master card The functions definition are enumerated below Z Bit 0 is Data_Req bit Z Bit 2 is for CHK1 When Bit 2 is equal to 1 a communi cation error occurred once Z Bit 3 is for CHK3 When Bit 3 is equal to 1 a communi cation err...

Page 63: ...5 V for HSL AI16AO2 M VV For HSL AI16AO2 M AV the signal ranges are 20 mA 10 mA and 5 mA 4 Firmware Version Shows the latest firmware version 5 AO Function Key in the analog output value in the text box then press SEND to trigger the AO The range is 10 V 6 Configuration Allows you to check if the signal range is correct before clicking on the Start Read button The Configuration button allows you t...

Page 64: ...he slave module and the master card The functions definition are enumerated below Z Bit 0 is Data_Req bit Z Bit 2 is for CHK1 When Bit 2 is equal to 1 a communi cation error occurred once Z Bit 3 is for CHK3 When Bit 3 is equal to 1 a communi cation error occurred three times Z Bit 4 Bit 5 and Bit 6 bits are for CHK7 When Bit 4 Bit 5 and Bit 6 are all equal to 1 a communication error occurred seve...

Page 65: ...51_HSL_ prefix The _8154_db51_HSL_ prefix is used below for use with the PCI 8154 If functions belong to a sys tem level purpose the convention will be as follows _8154_db51_HSL_ action_name e g _8154_db51_HSL_initial If they belong to discrete I O modules purpose the function will be as follows _8154_db51_HSL_D_ action_name e g _8154_db51_HSL_D_read_input If they belong to analog I O modules purp...

Page 66: ... motion control modules purpose the function will be as follows _8154_db51_HSL_M_ action_name e g _8154_db51_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 67: ...ules con nected to DB8151 master card _8154_db51_HSL_auto_start Start to scan and automatically detect all the slave modules connected to DB8151 master card _8154_db51_HSL_stop Stop scanning the connected slave mod ules _8154_db51_HSL_set_scan_condition Set scanning conditions _8154_db51_HSL_get_scan_condition Get scanning conditions _8154_db51_HSL_connect_status Get the communication status of th...

Page 68: ..._read_ouput Read back the output value stored in RAM _8154_db51_HSL_D_read_all_slave_input Read back all inputs of slave mod ules _8154_db51_HSL_D_write_all_slave_output Write all outputs of slave modules _8154_db51_HSL_D_set_input_logic Set the logic of digital input _8154_db51_HSL_D_set_output_logic Set the logic of digital output _8154_db51_HSL_D_set_int_renewal_type Set DI renewal check type _...

Page 69: ...8154_db51_HSL_A_get_input_mode Get the signal input mode _8154_db51_HSL_A_set_last_channel Set the last channel of analog input channels _8154_db51_HSL_A_get_last_channel Get the last channel of analog input channels _8154_db51_HSL_A_read_input Read back the value of analog input channels _8154_db51_HSL_A_write_output Send out the analog output _8154_db51_HSL_A_read_output Read back the analog out...

Page 70: ...o master board _8154_db51_HSL_auto_start Start to scan and automati cally detect all the slave modules connected to master card _8154_db51_HSL_stop Stop scanning the connected slave modules _8154_db51_HSL_set_scan_condition Set scanning con ditions _8154_db51_HSL_get_scan_condition Get scanning con ditions _8154_db51_HSL_connect_status Get the communication status of the specified slave module _81...

Page 71: ...d by 8154_DB8151 HSL card _8154_db51_HSL_start This function is used to scan the total connected slave modules Users can assign how many slave indexes HSL master board should scan Then it will scan from 1 to the specified value _8154_db51_HSL_auto_start This function is used to automatically detect the total connected slave modules Every master controller can connect up to 63 slave indexes As a re...

Page 72: ...I16 _8154_db51_HSL_initial U16 card_ID I16 _8154_db51_HSL_close U16 card_ID I16 _8154_db51_HSL_start U16 card_ID U16 max_slave_No I16 _8154_db51_HSL_auto_start U16 card_ID I16 _8154_db51_HSL_stop U16 card_ID I16 _8154_db51_HSL_set_scan_condition I16 card_ID I16 transfer_rate I16 hub_number I16 _8154_db51_HSL_get_scan_condition I16 card_ID I16 transfer_rate I16 hub_number I16 _8154_db51_HSL_connect...

Page 73: ...card_ID As Integer ByVal slave_No As Integer sts_data as Byte As Integer B_8154_db51_HSL_slave_live ByVal card_ID As Integer ByVal slave_No as Integer live_data as Byte As Integer Argument card_ID Specify the HSL master card index Normally the board index sequence would be decided by the system The index is from 0 max_slave_No The maximum slave index connected to the HSL master card with the conne...

Page 74: ...munication error X Bit 3 is for CHK3 If Bit3 is 1 It means that there are 3 times communication errors X Bit 4 BIT 5 and BIT 6 bits are for CHK7 If Bit4 Bit5 and Bit6 all are 1 It means that there are 7 times communication errors live_data The module status X 1 the module is live X 0 the module is die Return Code ERR_No_Error ERR_Open_Driver_Fail ERR_Invalid_Board_Number ERR_Satellite_Number ERR_C...

Page 75: ...ck the output value stored in RAM _8154_db51_HSL_D_read_all_slave_input Read back all inputs of slave modules _8154_db51_HSL_D_write_all_slave_output Write all outputs of slave modules _8154_db51_HSL_D_set_input_logic Set the logic of digi tal input _8154_db51_HSL_D_set_output_logic Set the logic of digital output _8154_db51_HSL_D_set_int_renewal_type Set DI renewal check type _8154_db51_HSL_D_set...

Page 76: ... to specify the connect index and slave index _8154_db51_HSL_D_write_channel_output This function is to write the digital output value of the discrete I O module at the specified channel _8154_db51_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...

Page 77: ... s address is slave_No _8154_db51_HSL_D_set_output_logic This function is to set the digital output logic to the specified slave I O module The slave I O module s address is slave_No _8154_db51_HSL_D_set_int_renewal_type This function is used to set the types of hardward interrupt occur rence timing There are 3 kind of types that are described as fol low Type 1 Generates hardware interrupt when an...

Page 78: ...ll paused until driver reset the state Figure 5 3 HSL DI Interrupt for Example 3 Caution Scanning is paused while user choice the type3 of renewal type This pause time depends on the user system perfor mance Consequently when using type3 constancy always keeping scan cycle constant will not be maintained between scans R W Time ID 1 ID 2 ID 3 ID 4 ID 1 ID 2 Full Duplex Mode R W R W R W R W R W INT ...

Page 79: ...slave DI modules by _8154_db51_HSL_D_set_int_renewal_bit _8154_db51_ HSL_D_set_int_renewal_type This function can be used to wait on a specific interrupt When this function is running the pro cess would never stop until a even is triggered or the function is time out The following code is an example I16 ret _8154_db51_HSL_D_set_int_renewal_type 1 1 slave id 1 monitor the states of bit 0 and bit 1 ...

Page 80: ...ad_output I16 card_ID I16 slave_No U32 out_data_in_ram I16 _8154_db51_HSL_D_read_all_slave_input I16 card_ID U16 in_data I16 _8154_db51_HSL_D_write_all_slave_output I16 card_ID U16 out_data I16 _8154_db51_HSL_D_set_input_logic I16 card_ID I16 slave_No I16 input_logic I16 _8154_db51_HSL_D_set_output_logic I16 card_ID I16 slave_No I16 output_logic I16 _8154_db51_HSL_D_set_int_renewal_type I16 card_I...

Page 81: ...8154_db51_HSL_D_read_output ByVal card_ID As Integer ByVal slave_No As Integer out_data_in_ram As Long As Integer B_8154_db51_HSL_D_read_all_slave_input ByVal card_ID As Integer in_data As Integer As Integer B_8154_db51_HSL_D_write_all_slave_output ByVal card_ID As Integer out_data As Integer As Integer B_8154_db51_HSL_D_set_input_logic ByVal card_ID As Integer ByVal slave_No As Integer ByVal inpu...

Page 82: ...o cre ate an unsigned short array which contain 63 cells The cell index is corresponding to slave index For example cell index 0 corre sponds to the module which slave index is 1 The cell index 1 cor responds to the module which slave index is 2 and so on The last cell index 62 corresponds to the module which slave index is 63 in_data The input data of slave modules The definition is as follows X ...

Page 83: ... data of channel 0 is assigned to bit 0 the data of channel 1 is assigned to bit 1 and so on input_logic Set the input logic to the specified module output_logic Set the output logic to the specified module Type Type of hardward interrupt occurrence timing Value is 1 3 bitsOfCheck renewal data bits 16bits enable enable 0 or disable 1 the Di interrupt time_out_ms Specifies the time out interval in ...

Page 84: ...54 DB 8151 Return Code ERR_No_Error ERR_Invalid_Board_Number ERR_Memory_Mapping ERR_Connect_Index ERR_Satellite_Number ERR_Over_Max_Address ERR_DI_Renewal_Type ERR_Wait_Di_Interrupt ERR_Di_Event_Open_Already ERR_Di_Event_Disable ...

Page 85: ...get_input_mode Get the signal input mode _8154_db51_HSL_A_set_last_channel Set the last chan nel of analog input channels _8154_db51_HSL_A_get_last_channel Get the last chan nel of analog input channels _8154_db51_HSL_A_read_input Read back the value of analog input channels _8154_db51_HSL_A_write_output Send out the analog output _8154_db51_HSL_A_read_output Read back the analog output data _8154...

Page 86: ..._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 _8154_db51_HSL_A_set_signal_range This function is used to set the input range of the specified HSL AI O modules _8154_db51_HSL_A_get_signal_range This function is us...

Page 87: ... analog input channels of HSL AI O modules For example if you use _8154_db51_HSL_A_set_last_channel and set the last channel as 5 then you can read the value with _8154_db51_HSL_A_get_lastchannel _8154_db51_HSL_A_read_input This function is used to read the specified AI channel of the slave module _8154_db51_HSL_A_write_output This function is used to write the specified AO channel of the slave mo...

Page 88: ..._get_input_mode I16 card_ID I16 slave_No I16 mode I16 _8154_db51_HSL_A_set_last_channel I16 card_ID I16 slave_No I16 last_channel I16 _8154_db51_HSL_A_get_last_channel I16 card_ID I16 slave_No I16 last_channel I16 _8154_db51_HSL_A_read_input I16 card_ID I16 slave_No I16 ai_channel F64 ai_data I16 _8154_db51_HSL_A_write_output I16 card_ID I16 slave_No I16 ao_channel F64 ao_data I16 _8154_db51_HSL_A...

Page 89: ...nnel As Integer As Integer B_8154_db51_HSL_A_get_last_channel ByVal card_ID As Integer ByVal slave_No As Integer last_channel As Integer As Integer B_8154_db51_HSL_A_read_input ByVal card_ID As Integer ByVal slave_No As Integer ByVal ai_channel As Integer ai_data As Double As Integer B_8154_db51_HSL_A_write_output ByVal card_ID As Integer ByVal slave_No As Integer ByVal ao_channel As Integer ByVal...

Page 90: ...ndex which want to perform this function The valid value is from 1 to 63 signal_range The single range of analog input setting For HSL AI16AO2 M VV X 0 1 25 V X 1 2 5 V X 2 5 V X 3 10 V For HSL AI16AO2 M AV X 0 5mA X 1 10mA X 2 20mA X 3 20mA signal_range Read back the single range of analog input set ting For HSL AI16AO2 M VV X 0 1 25 V X 1 2 5 V X 2 5 V X 3 10 V For HSL AI16AO2 M AV X 0 5mA X 1 1...

Page 91: ...ant to perform this function The valid value is described as fol lows For HSL AI16AO2 M VV AV X Differential 0 15 X Single ended 0 7 ao_channel Specify the AI channel of the slave module which want to perform this function For HSL AI16AO2 M VV AV the valid value is 0 and 1 ai_data The AI data of the specified channel The unit is Volt for HSL AI16AO2 M VV module and mA for HSL AI16AO2 M AV module a...

Page 92: ...84 Function Library PCI 8154 DB 8151 ...

Page 93: ...nder 3 Mbps Cycle Time under 6 Mbps Cycle Time under 12 Mbps Base Unit 60 67 µs 30 33 µs 15 17 µs 3 182 00µs 91 00 µs 45 50 µs 5 303 33 µs 151 67 µs 75 83 µs 10 606 67µs 303 33 µs 151 67 µs 20 1 213 ms 606 67 µs 303 33 µs 30 1 820 ms 910 00 µs 455 00 µs 40 2 427 ms 1 213 ms 606 67 µs 50 3 033 ms 1 516 ms 758 33 µs 60 3 640 ms 1 820 ms 910 00 µs 63 3 822 ms 1 911 ms 955 50 µs ...

Page 94: ...me under 3 Mbps Cycle Time under 6 Mbps Cycle Time under 12 Mbps Base Unit 118 µs 59 µs 29 5 µs 3 354 µs 177 µs 88 5 µs 5 590 µs 295 µs 147 5 µs 10 1 180 ms 590 µs 295 µs 20 2 360 ms 1 180 ms 590 µs 30 3 540 ms 1 770 ms 885 µs 40 4 720 ms 2 360 ms 1 180 ms 50 5 900 ms 2 950 ms 1 475 ms 60 7 080 ms 3 540 ms 1 770 ms 63 7 434 ms 3 717 ms 1 859 ms ...

Page 95: ... M VV and HSL AI16AO2 M AV take note of the following 1 Make sure that the signal type is single ended You may set this via the jumper 2 Use a precise calibrator that can generate a precise 5 V 3 Check the status text to know if the calibration is suc cessful or not 4 Refer to the analog input field configuration below ...

Page 96: ...s the AI Offset Calibration button 3 Connect AI channel 0 to the calibrator then press the AI Span Calibration button 4 Connect AI channel 12 to AO channel 0 and AI channel 14 to AO channel 1 then press the AO Offset Calibration button 5 If the previous step is successful press the AO Gain Calibration button to finish the calibration If calibration is successful the module is ready for use If not ...

Page 97: ... 600 m 900 m 1 2 km 1 5 km 1 8 km 2 1 km 2 4 km 6Mbps 200 m 400 m 600 m 800 m 1 km 1 2 km 1 4 km 1 6 km 12Mbps 100 m 200 m 300 m 400 m 500 m 600 m 700 m 800 m Number of inserted Hubs Repeater Slave Index Number 3 Min 30 63 max Basic configuration 0 45 50 us 455 00 us 955 50 us 1 82 00 us 820 00 us 1722 00 us 2 118 00 us 1180 00 us 2478 00 us 3 154 00 us 1540 00 us 3234 00 us 4 190 00 us 1900 00 us...

Page 98: ...4 380 00 us 3800 00 us 7980 00 us 5 452 00 us 4520 00 us 9492 00 us 6 524 00 us 5240 00 us 11004 00 us 7 596 00 us 5960 00 us 12516 00 us Number of inserted Hubs Repeater Slave Index Number 3 Min 30 63 max Basic configuration 0 182 00 us 1820 00 us 3822 00 us 1 328 00 us 3280 00 us 6888 00 us 2 472 00 us 4720 00 us 9912 00 us 3 616 00 us 6160 00 us 12936 00 us 4 760 00 us 7600 00 us 15960 00 us 5 ...

Reviews: