background image

Getting Started 

 11 

2.5 

Board ID 

When two or more data acquisition cards are installed in a system, it can be 
tedious trying to identify a specific card. For easier identification, the PCI-
7258 implemented a Board ID function. By setting the Dipswitch located at 
S1, users can assign an ID address to a specific card and access the card 
through software programming.  For more details about the Board ID in 
programming, please refer to chapter 5.  Table 1 below shows all dipswitch 
setting conditions.  

Figure 3:    Board ID Dips witch 

Switch No. 

Board ID 

0     (default) 

10 

11 

12 

13 

14 

15 

Table 1.  Board ID Setting Conditions  

Note: 1=on, 0=off  

ON 

1

Summary of Contents for NuDAQ PCI-7258

Page 1: ...NuDAQ PCI 7258 PhotoMos Relay Cards User s Guide Recycled Paper ...

Page 2: ......

Page 3: ...al damages arising out of the use or inability to use the product or documentation even if advised of the possibility of such damages This document contains proprietary information protected by copyright All rights are reserved No part of this manual may be reproduced by any mechanical electronic or other means in any form without prior written permission of the manufacturer Trademarks NuDAQ is re...

Page 4: ...ktech com Technical Support NuPRO EBC nupro 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 us of your detailed information for a prompt satisfactory and constant service Detailed Company Information Company Organization Contact Person E mail Address Address Country TEL FAX Web Site Questions Product Model Envir...

Page 5: ... PCIS DDE DDE Server and InTouch TM 5 1 4 6 PCIS ISG ISaGRAFTM driver 5 1 4 7 PCIS ICL InControl TM Driver 6 1 4 8 PCIS OPC OPC Server 6 Getting Started 7 2 1 What you have 7 2 2 Unpacking 8 2 3 PCB Layout 9 2 4 Board ID 11 2 6 Connector Pin Assignments 12 2 7 Termination Board Connection 13 Registers 15 3 1 I O Address Map 15 3 2 Relay Output Control Register 16 3 3 Relay Output Read Back Registe...

Page 6: ...22 4 3 Interrupt Architecture 22 C C DOS Libraries 23 5 1 Programming Guide 23 5 1 1 Naming Convention 23 5 1 2 Data Types 24 5 2 _7258 Initial 25 5 3 _7258_DO 26 5 4 _7258_DO_Read_Back 26 5 5 _7258_DI 27 5 6 _7258_INT_Control 27 5 9 _7258_CLR_IRQ 28 5 10 _7258_GET_IRQ_Status 28 Warranty Policy 29 ...

Page 7: ...ss Map 15 Table 3 Data Types and Range 24 Figures Figure 1 PCI 7258 PCB Layout 9 Figure 2 Board ID Dipswitch 11 Figure 3 Pin Assignment of PCI 7258 CN1 12 Figure 4 PhotoMos relay schematic 20 Figure 5 PhotoMos relay wiring diagram 21 Figure 6 Protection circuit for an Inductive load 21 Figure 7 Photo Coupler 22 ...

Page 8: ...s are also described Chapter3 Registers describes the registers that are available to the PCI 7258 The information is important for programmers who want to control the hardware with low level programming languages Chapter 4 Operation Theory describes how to operate the PCI 7258 The PhotoMos relay and isolated digital input are introduced Some programming concepts are also described Chapter 5 C C l...

Page 9: ...CI 7258 provides 32 PhotoMos relay actuators and 2 opto isolated digital inputs All relays are of Form A type and is very suited for constant ON OFF control devices Other useful feature includes the Board ID It is convenient for board identification when two or more PCI 7258 cards are in a system All I O signals are routed via a 68 pin SCSI connector ...

Page 10: ...driving circuits Digital input channel 0 1 interrupt Board ID 1 2 Applications Industrial ON OFF control Energy management Laboratory automation Industrial automation Switch contact status sensing limit switch monitoring Integrate with A D and D A cards to implement a data acquisition control system 1 3 Specifications Digital input Input channels 2 Photo coupler PC 3H4 Input current P 10 mA rated ...

Page 11: ...s load current peak AC 0 12A Peak load current 0 3A I O isolation voltage 1 500 V AC Output turn on resistance typical 17O Output off state leakage current Maximum 1µ A Turn on time typical 0 23 ms Turn off time typical 0 04 ms General Specifications Bus 32 bit PCI bus Dimension 174 mm x 106 mm standard PCI half size Operating temperature 0 60 C Storage temperature 20 C 80 C Humidity 5 to 95 non c...

Page 12: ...ncluded in this user s guide PCIS DASK Include device drivers and DLL for Windows 98 Windows NT and Windows 2000 DLL is binary compatible across Windows 98 Windows NT and Windows 2000 That means all applications developed with PCIS DASK are compatible across Windows 98 Windows NT and Windows 2000 The developing environment can be VB VC Delphi BC5 or any Windows programming language that allows cal...

Page 13: ...ollection of ActiveX controls for measurement and automation applications With DAQBench you can develop custom user interfaces to display and analyze data you acquired or received from other sources or integrate with popular applications or data sources For more information about DAQBench please refer to the user s guide in the CD Manual_PDF Software DAQBench DAQBenchManual PDF There is a free 4 h...

Page 14: ... a license Please contact ADLINK dealers or ADLINK to purchase the license 1 4 8 PCIS OPC OPC Server PCIS OPC is an OPC server which can be used to link with other OPC clients There are many software packages on the market that can provide the OPC clients The PCIS OPC supports Windows 98 NT and 2000 It is not free Please contact ADLINK dealers or ADLINK to purchase the license ...

Page 15: ...d first 2 1 What you have In addition to the User s Manual the package should include the following items PCI 7258 PhotoMos relay cards ADLINK Software CD Software Installation Guide If any of these items are missing or damaged contact ADLINK or the dealer from whom you purchased the product Save the shipping materials and carton in case you want to ship or store the product in the future ...

Page 16: ...es Shipping and handling may cause damage to your module Be sure there are no shipping and handling damages on the modules carton before continuing After opening the card module carton extract the system module and place it only on a grounded anti static surface with component side up Again inspect the module for damages Press down on all the socketed IC s to make sure that they are properly seate...

Page 17: ...Getting Started 9 2 3 PCB Layout The location of the connectors and switches on the PCI 7258 are shown in figure 1 below Descriptions are outline in the proceeding sections Figure 1 PCI 7258 PCB Layout ...

Page 18: ... can have a visual status of each relay displayed on a chassis panel or on any apparatus Only LED s with a forward voltage Vf lower than 2V will operate Each external LED connector has a current limiting resistor 330O connected to the 5V supply therefore external current limiting circuitry for external LED s are not necessary The direction of the external LED s connection is shown in Figure 2 Befo...

Page 19: ...s to a specific card and access the card through software programming For more details about the Board ID in programming please refer to chapter 5 Table 1 below shows all dipswitch setting conditions Figure 3 Board ID Dipswitch Switch No Board ID 1 2 3 4 0 default 1 1 1 1 1 0 1 1 1 2 1 0 1 1 3 0 0 1 1 4 1 1 0 1 5 0 1 0 1 6 1 0 0 1 7 0 0 0 1 8 1 1 1 0 9 0 1 1 0 10 1 0 1 0 11 0 0 1 0 12 1 1 0 0 13 0...

Page 20: ...7 13 47 NO24 COM7 14 48 COM24 NO8 15 49 NO25 COM8 16 50 COM25 NO9 17 51 NO26 COM9 18 52 COM26 NO10 19 53 NO27 COM10 20 54 COM27 NO11 21 55 NO28 COM11 22 56 COM28 NO12 23 57 NO29 COM12 24 58 COM29 NO13 25 59 NO30 COM13 26 60 COM30 NO14 27 61 NO31 COM14 28 62 COM31 NO15 29 63 NO32 COM15 30 64 COM32 NO16 31 65 DIO COM16 32 66 DI1 NO17 33 67 DIGND0 COM17 34 68 DIGND1 Figure 4 Pin Assignment of PCI 725...

Page 21: ...n The available termination board for the 68 pin SCSI connector is the DIN 68S 1S The DIN 68S 1S is a general purpose 68 pin screw terminal with a DIN socket It is also equipped with a 68 pin SCSI cable that allows for easy installation of the PCI 7258 ...

Page 22: ......

Page 23: ...PCI 7258 registers are all 16 bits long Users can access these registers by 16 bit I O instructions only The controls for the relays and status of the isolated inputs are by means of accessing these registers The following table shows the registers mapping addresses the addresses are offset relative to the base address Offset Write Read 0x00h Relay Output CH 1 16 Relay Output Read back CH 1 16 0x0...

Page 24: ...o close and 0 will cause it to open Address BASE 0x00 Attribute Write 7 6 5 4 3 2 1 0 RLY8 RLY7 RLY6 RLY5 RLY4 RLY3 RLY2 RLY1 15 14 13 12 11 10 9 8 RLY16 RLY15 RLY14 RLY13 RLY12 RLY11 RLY10 RLY9 Address BASE 0x02 Attribute Write 7 6 5 4 3 2 1 0 RLY24 RLY23 RLY22 RLY21 RLY20 RLY19 RLY18 RLY17 15 14 13 12 11 10 9 8 RLY32 RLY31 RLY30 RLY29 RLY28 RLY27 RLY26 RLY25 RLYx relay output channel x x 1 32 ...

Page 25: ...he relay is open then the bit value is 0 Address BASE 0x00 Attribute Read 7 6 5 4 3 2 1 0 RBK8 RBK7 RBK6 RBK5 RBK4 RBK3 RBK2 RBK1 15 14 13 12 11 10 9 8 RBK16 RBK15 RBK14 RBK13 RBK12 RBK11 RBK10 RBK9 Address BASE 0x02 Attribute Read 7 6 5 4 3 2 1 0 RBK24 RBK23 RBK22 RBK21 RBK20 RBK19 RBK18 RBK17 15 14 13 12 11 10 9 8 RBK32 RBK31 RBK30 RBK29 RBK28 RBK27 RBK26 RBK25 RBKx Read back data of relay x x 1...

Page 26: ...s the input logic is high and 0 means the input logic is low Address BASE 0x04 Attribute Read 7 6 5 4 3 2 1 0 DI1 DI0 15 14 13 12 11 10 9 8 DIx isolated digital input channel x x 0 1 3 5 Clear IRQ register The PCI 7258 has two interrupt sources for the digital input channels 0 and 1 Writing anything to this register will clear the interrupt request Address BASE 0x08 Attribute Write 7 6 5 4 3 2 1 0...

Page 27: ...interrupt function driver both interrupt registers in the PCI 9030 and in PCI 7258 have to work together For more information about the interrupt control register in the PCI 9030 refer to the PCI 9030 data book With the PCI 7258 software function library ADLINK has provided simple and easy to use functions to handle the procedures of interrupts Using these functions users are not required to know ...

Page 28: ... from the LED is detected by the photoelectric element solar cell which is mounted opposite to the LED The photoelectric element then converts the received light to a voltage which charges the MOSFET gate on the output side When the voltage reaches a preset voltage value the MOSFET begins to conduct and turns on the load The simplified circuit of PhotoMos relay is shown in figure 4 below Figure 5 ...

Page 29: ...ore dithering problems is eliminated The PCI 7258 is equipped with 32 PhotoMos relays which are all form A type The load voltage can either be AC or DC The basic wiring diagram is shown in figure 5 below Figure 6 PhotoMos relay wiring diagram If an inductive load is connected the spike voltage may exceed the relay s maximum rating To protect the components user should add a diode in the circuit A ...

Page 30: ...nterrupt routing scheme and t he interrupt sources are on the digital input channels 0 and 1 Using these interrupts will make handling complicated digital information much easier and relief your computer from the heavy burden of dealing with digital input data Note that dual interrupts does not mean the card occupies two IRQ levels The interrupt will occur only when digital input level changes fro...

Page 31: ...der files located in the LIB and INCLUDE directory 5 1 Programming Guide 5 1 1 Naming Convention The functions of the NuDAQ PCI or NuIPC CompactPCI card software drivers uses full names to represent the functions real meaning The naming convention rules are _ hardware_model _ action_name e g _7258_Initial All functions in the PCI 7258 drivers are with 7258 as hardware_model ...

Page 32: ...ype Name Description Range U8 8 bit ASCII character 0 to 255 I16 16 bit signed integer 32768 to 32767 U16 16 bit unsigned integer 0 to 65535 I32 32 bit signed integer 2147483648 to 2147483647 U32 32 bit single precision floating point 0 to 4294967295 F32 32 bit single precision floating point 3 402823E38 to 3 402823E38 F64 64 bit double precision floating point 1 797683134862315E308 to 1 797683134...

Page 33: ...ther functions Syntax U16 _7258_Initial U16 existCards PCI_INFO pciInfo Argument existCards The number of installed PCI 7258 cards The returned value shows how many PCI 7258 cards are installed in the system pciInfo This structure stores the PCI bus plug and play initialization information which is determined by PnP BIOS The PCI_INFO structure is defined in the ACL_PCI H header file The base I O a...

Page 34: ...s used to read data back from the digital output port controlled by the 7258_DO function You can read back all relay status close or open by using this function Syntax U16 _7258_DO_Read_Back U16 boardID U16 Group U16 doReadBackData Argument boardID Board ID for the specific board Group group 0 represents DO channel 1 16 group 1 represents DO channel 17 32 diReadBackData Value read back from digita...

Page 35: ...digital input port Only last 2 bit data are valid Return Code ERR_NoError ERR_BoardNoInit 5 6 _7258_INT_Control Description This function is used to control the interrupt source of the PCI 7258 The interrupt source can be the digital input of channel 0 1 or both Syntax U16 _7258_INT_Control U16 boardID U16 int1Flag U16 int2Flag Argument boardID Board ID for the specific board Int1Flag Digital inpu...

Page 36: ...tion This function is used to obtain the interrupt status Syntax U16 _7258_GET_IRQ_Status U16 boardID U16 int1Status U16 int2Status Argument boardID Board ID for the specific board Int1Status interrupt source 0 status 1 represents interrupt request assert and 0 represents interrupt request de assert Int2Status interrupt source 1 status 1 represents interrupt request assert and 0 represents interru...

Page 37: ... Local warranty conditions will depend on the local dealers 3 Our repair service does not cover the two year guarantee while damages are caused by the following a Damage caused by not following instructions in the usermenus b Damage caused by carelessness on the users part during product transportation c Damage caused by fire earthquakes floods lightening pollution and incorrect usage of voltage t...

Page 38: ...adlinktech com Damaged products with RMA forms attached receive priority For further questions please contact our FAE staff ADLINK service adlinktech com Test Measurement Product Segment NuDAQ adlinktech com Automation Product Segment Automation adlinktech com Computer Communication Product Segment NuPRO adlinktech com NuIPC adlinktech com ...

Reviews: