background image

 

20 

 Register Format 

3.7 

Interrupt Control Register 

There are two different interrupt modes in PCI-7256. In the first mode, users 
enable the COS interrupt function to monitor the enabled input channel’s 
status whenever the status changes from 0 to 1 or 1 to 0. In the second 
mode, users can select digital input channel 0, channel 1 or both channels as 
the interrupt sources. In this mode, interrupt only assertes when the DI status 
changes from 0 to 1, i.e., rising edge. 

Because the two different modes 

share the same interrupt signal in hardware, users are not allowed to 
enable these two modes at the same time.

 

After processing the interrupt request event, users have to clear the interrupt 
request in order to handle another interrupt request. To clear the interrupt 
request, write 1 to the corresponding bit. 

 

Address: BASE + 0x08 

Attribute: Write

 

--- 

--- 

--- 

--- 

--- 

CH1 
CLR 

CH0 
CLR 

COS 

CLR 

15 

14 

13 

12 

11 

10 

--- 

--- 

--- 

--- 

--- 

CH1 

Int_EN 

CH0 

Int_EN 

COS 

Int_EN 

COS CLR (bit 0): write 1 to clear the COS interrupt. 

1 : clear the COS interrupt 
0 :  no effect 

CH0 CLR (bit 1): write 1 to clear DI channel 0 interrupt. 

1 : clear DI channel 0 interrupt 
0 : no effect 

CH1 CLR (bit 2): write 1 to clear DI channel 1 interrupt. 

1 : clear DI channel 1 interrupt 
0 : no effect 

COS Int_EN (bit 8):  Write/Read 

Change-of-State interrupt enable control 
1 : enable 
0 : disable 

CH0 Int_EN (bit 9): Write/Read 

DI channel 0 interrupt enable control 
1 : enable 
0 : disable 

Содержание PCI-7256

Страница 1: ...NuDAQ PCI 7256 Latching Relay Actuator Isolated D I Cards User s Guide Recycled Paper ...

Страница 2: ...ial 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 r...

Страница 3: ...PC nuipc adlinktech com 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 inform 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 OS Compu...

Страница 4: ...7 Chapter 2 Installation 8 2 1 What you have 8 2 2 Unpacking 9 2 3 PCB Layout 10 2 4 Jumper Setting 11 2 4 External LED connection 12 2 5 Board ID 13 2 6 Connector Pin Assignments 14 2 7 Termination Board Connection 15 Chapter 3 Register Format 16 3 1 I O Address Map 16 3 2 Relay Output Control Register 17 3 3 Relay Output Read Back Register 18 3 4 Isolated Digital Input Register 18 3 5 COS Setup ...

Страница 5: ...s 28 5 1 Programming Guide 28 5 1 1 Naming Convention 28 5 1 2 Data Types 29 5 2 _7256 Initial 30 5 3 _7256_DO 31 5 4 _7256_DO_Read_Back 31 5 5 _7256_DI 32 5 6 _7256_COS_Channel 33 5 7 _7256_COS_Latch 33 5 8 _7256_INT_Control 34 5 9 _7256_CLR_IRQ 35 5 10 _7256_GET_IRQ_Status 35 Appendix A Relay Contact Protection Circuits 36 Warranty Policy 39 ...

Страница 6: ...egister Format describes the details of register format and structure of the PCI 7256 This information is very important for the programmers who want to control the hardware by low level programming Chapter 4 Operation Theorem describes how to operate the PCI 7256 The latching relay isolated digital input and change of state functions are introduced Some programming concepts are also described Cha...

Страница 7: ...uitable for collecting digital inputs in noisy environments The function of Change of State COS interrupt is provided It means when any of these digital inputs changes its state an interrupt will be generated for user to handle this external event Using latching relays the PCI 7256 has the advantage of power saving The status of each latching relay output is reflected by a LED When the latching re...

Страница 8: ... and can be read back Jumper selectable AC filtered non AC filtered input signals On board relay driving circuits Change of State COS detection for digital input channels Digital input channel 0 1 interrupt Dry contact input available Board ID 1 2 Applications Industrial ON OFF control External high power relay driving Signal switching Laboratory automation Industrial automation Switch contact sta...

Страница 9: ...age 1000 Vrms Release time 3 msec Operate time 3 msec Contact resistance 60mΩ Insulation resistance 1000M Ω min at 500 VDC Life expectancy min operations 2 X 105 times at 1A 30VDC 105 times at 0 5A 125VAC Vibration Resistance 176 4m s2 18G 10 to 55Hz at double amplitude of 3mm LED indicators Monitor SET RESET status of each relay external LED connectors could be applied Power supply of Relay 5V fr...

Страница 10: ...4 Introduction Humidity 5 to 95 non condensing Power Consumption PCI 7256 5V 340 mA No relays energized 980mA maximum when all relays are active simultaneously ...

Страница 11: ...ons are included 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 a ll 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 ...

Страница 12: ... ADLINK supplies an ActiveX control software DAQBench DAQBench is a collection of ActiveX controls for measurement or automation applications With DAQBench you can easily develop custom user interfaces to display your data analyze data you acquired or received from some other sources and integrate with popular applications or data sources For more detailed information about DAQBench please refer t...

Страница 13: ...InControl driver which support the Windows NT The PCIS ICL is included in the ADLINK CD It needs license Please contact ADLINK or dealer to purchase the license 1 4 8 PCIS OPC OPC Server PCIS OPC is an OPC server which can link with the OPC clients There are many software packages on the market can provide the OPC clients now The PCIS OPC supports the Windows 98 NT and 2000 Please contact ADLINK o...

Страница 14: ... you have In addition to the User s Manual the package includes the following items PCI 7256 latching relay and digital input cards ADLINK Software CD Software Installation Guide If any of these items is 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 ...

Страница 15: ...ge Shipping and handling may cause damage to your module Be sure there are no shipping and handling damages on the module before processing After opening the card module carton extract the system module and place it only on a grounded antistatic surface with component side up Again inspect the module for damage Press down on all the socketed IC s to make sure that they are properly seated Do this ...

Страница 16: ...10 Installation 2 3 PCB Layout The location of connector switch and jumpers are shown in the figure2 1 They are described in the following sections Figure 2 1 PCI 7256 PCB Layout CN1 JP2 JP1 S1 JP4 JP3 ...

Страница 17: ... set for the digital input The jumpers on PCI 7256 card are used to configure the digital input channels as AC Filtered or Non AC Filtered inputs Each digital input channel and their corresponding jumpers are shown in the following Table2 1 JUMPER INPUT SIGNAL JP1 DI0 DI7 JP2 DI8 DI15 Table 2 1 The jumpers and DI channels The default setting of the input signal selection is Non AC Filtered DC sign...

Страница 18: ...ng with the JP3 and JP4 users can have their relays status shown on chassis panel or other apparatus Only LED which have fordward voltage Vf lower than 3V can work normally Each external LED connector has a current limiting resistor 330O connecting with 5V power so it s not necessary for user to add a resistor to limit the current flow through LED The direction of the external LED s connection is ...

Страница 19: ...to a specific card directly and access the card correctly through software programming For more details about Board ID in programming please refer to chapter 5 Table 2 2 shows all of the switch setting conditions 1 2 3 4 ON Figure 2 4 Board ID setting Switch No Board ID 1 2 3 4 0 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...

Страница 20: ... COM0 NO0 NC1 COM1 NO1 NC2 COM2 NO2 NC3 COM3 NO3 NC4 COM4 NO4 NC5 COM5 NO5 NC6 COM6 NO6 NC7 COM7 NO7 ISOGND DI1 DI3 DI5 DI7 DICOM1 DI9 DI11 DI13 DI15 NC8 COM8 NO8 NC9 COM9 NO9 NC10 COM10 NO10 NC11 COM11 NO11 NC12 COM12 NO12 NC13 COM13 NO13 NC14 COM14 NO14 NC15 COM15 NO15 Figure 2 5 Pin Assignment of PCI 7256 CN1 Legend DI x Digital input channel x x 0 15 DICOM x DI common ground group x x 1 for DI...

Страница 21: ... 7256 is equipped with a SCSI 68 pin connector The available termination board is DIN 68S 1S The DIN 68S 1S is a general purpose 68 pin screw terminal with DIN socket It is also equipped with a SCSI 68 pin cable that makes users install PCI 7256 more easily ...

Страница 22: ...ll 16 bit wide Users can access these registers only by 16 bits I O instructions The control of the relays and status of the isolation input is by means of accessing registers The following table shows the register map including descriptions and their offset addresses relative to the base address Table 3 1 The register map of PCI 7256 Offset Write Read 0x00h Relay Output CH 0 7 0x02h Relay Output ...

Страница 23: ... open For safety operation do not fill the register with 1 1 or it will cause an uncertain output status of the relay For more information about the latching relay and software function library please refer to section 4 1 and 5 3 respectively Address BASE 0x00 Attribute Write 7 6 5 4 3 2 1 0 DO3_S DO3_R DO2_S DO2_R DO1_S DO1_R DO0_S DO0_R 15 14 13 12 11 10 9 8 DO7_S DO7_R DO6_S DO6_R DO5_S DO5_R D...

Страница 24: ...ad back data of relay x x 0 15 1 relay is in SET status 0 relay is in RESET status 3 4 Isolated Digital Input Register There are 16 isolated input channels on PCI 7256 card The status of the 16 channels can be read from the isolated input register Each bit corresponds to each channel The bit value 1 means the input logic is high and 0 menas the input logic is low Address BASE 0x04 Attribute Read 7...

Страница 25: ...S SET15 COS SET14 COS SET13 COS SET12 COS SET11 COS SET10 COS SET9 COS SET8 COS SETx change of state setup of DI channel x x 0 15 1 enable the COS interrupt 0 disable the COS interrupt 3 6 COS Latch Register When COS occurs the COS Latch register will also latch the DI data Once the user clear the interrupt request the COS Latch register will be cleared automatically The COS function releases the ...

Страница 26: ...e same time After processing the interrupt request event users have to clear the interrupt request in order to handle another interrupt request To clear the interrupt request write 1 to the corresponding bit Address BASE 0x08 Attribute Write 7 6 5 4 3 2 1 0 CH1 CLR CH0 CLR COS CLR 15 14 13 12 11 10 9 8 CH1 Int_EN CH0 Int_EN COS Int_EN COS CLR bit 0 write 1 to clear the COS interrupt 1 clear the CO...

Страница 27: ... up Interurpt type Bit 10 Bit 9 Bit 8 IRQ source IRQ trigger condition Disable 0 0 0 Interrupt disable Mode 1 0 0 1 COS interrupt Change of state in the enabled channel Mode 2 0 1 0 Ch 0 interrupt enable Rising edge of DI channel 0 Mode 2 1 0 0 Ch 1 interrupt enable Rising edge of DI channel 1 Mode 2 1 1 0 Ch 0 1 interrupt enable Rising edge of DI channel 0 or 1 0 1 1 0 Forbidden 1 1 1 Not allowed...

Страница 28: ...errupt asserts CH1 Int Status bit 2 Digital input channel 1 interrupt status 0 Ch1 interrupt de asserts 1 Ch1 interrupt asserts 3 9 Handling PCI Controller Registers The PCI bus controller adopted in PCI 7256 is PCI 9030 which is provided by PLX technology Inc When users attempt to handle low level programming some registers in PCI 9030 should be noticed The interrupt control register INTCSR 0x4Ch...

Страница 29: ...to handle the procedure of interrupt Using these functions users don t need to care about the interrupt register in PCI controller We suggest users use these functions instead of developing interrupt functions by themselves For more information about PCI 7256 funciton library please refer to Chapter 5 ...

Страница 30: ... PCI 7256 has two coils which serve as one SET coil and one RESET coil To control the two coil latching relay we need two control bits one for the SET coil and one for the RESET coil What we have to do is to energize the SET coil and deenergize the RESET coil when switching RESET condition to SET condition After the contact switches to the opposite position at a steady state we can cut out the cur...

Страница 31: ...of writing 32 bit data to the relay output register user only needs to prepare 16 bit data and each bit represents a relay s status Value 1 represents SET condition and value 0 represents RESET condition For more details about the relay output function library refer to section 5 3 The relay output contacts are rated for a maximum of 0 5A at 125VAC resistive or 1A 30VDC You should reduce these rati...

Страница 32: ...der filter with time constant about 1 5ms is provided to filter high frequency noise The normal input voltage range for high state is 5 to 24V The PCI 7256 provides an isolated 5V power for dry contact input When the external circuit has no voltage source e g a switch users can use the on board 5V to respond the change of external circuit The maximum output current of the on board isolated power i...

Страница 33: ... circuit will detect the edge of level change In the PCI 7256 card the COS detection circuit is applied to all the input channels When any channel changes its logic level the COS detection circuit generates an interrupt request to PCI controller COS Detection The following timing is an example of COS operation All of the enabled DI channels signal level change will be detected to generate the inte...

Страница 34: ...n The functions of the NuDAQ PCI cards or NuIPC CompactPCI cards software driver are using full names to represent the functions real meaning The naming conventions are _ hardware_model _ action_name e g _7256_Initial All functions in the PCI 7256 drivers are with 7256 as hardware_model ...

Страница 35: ...range Type 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 79...

Страница 36: ...er functions Syntax U16 _7256_Initial U16 existCards PCI_INFO pciInfo Argument existCards The number of installed PCI 7256 cards The returned value shows how many PCI 7256 cards are installed in your system pciInfo It is a structure to memorize the PCI bus plug and play initiallization information which is decided by p p BIOS The PCI_INFO structure is defined in ACL_PCI H The base I O address and ...

Страница 37: ...rdID Board ID to the specific borad doData value which will be written to digital output port Return Code ERR_NoError ERR_BoardNoInit 5 4 _7256_DO_Read_Back Description This function is used to read data back from digital output port control by 7256_DO function There are 16 bit digital outputs on the PCI 7256 You can get back all RELAYs status SET or RESET by using this function Syntax U16 _7256_D...

Страница 38: ... input port There are 16 bit digital inputs on the PCI 7256 You can get all 16 input data by using this function Syntax U16 _7256_DI U16 boardID U16 diData Argument boardID Board ID to the specific borad diData return 16 bit value from digital input port Return Code ERR_NoError ERR_BoardNoInit ...

Страница 39: ...the corresponding channel and 0 disable the corresponding channel Return Code ERR_NoError ERR_BoardNoInit 5 7 _7256_COS_Latch Description This function is used to latch digital input data after COS interrupt occurs Syntax U16 _7256_COS_Latch U16 boardID U16 COS_Latch_Data Argument boardID Board ID to the specific borad COS_Latch_Data Digital input data when COS occurs This register will be erased ...

Страница 40: ...nput channel 0 interrupt enable disable CH1_Enable Digital input channel 1 interrupt enable disable The possible combinations of interrupt source are shown in the following table CH1_Enable CH0_Enable COS_Enable IRQ source IRQ trigger condition 0 0 0 Interrupt disable 0 0 1 COS interrupt Change of state in the enabled channel 0 1 0 Ch 0 interrupt enable Rising edge of DI channel 0 1 0 0 Ch 1 inter...

Страница 41: ...out any effect Return Code ERR_NoError ERR_BoardNoInit 5 10 _7256_GET_IRQ_Status Description This function is used to get the interrupt status of PCI 7256 Syntax U16 _7256_GET_IRQ_Status U16 boardID U16 COS_Status U16 CH0_Status U16 CH1_Status Argument boardID Board ID to the specific borad COS_Status COS interrupt status 1 represents interrupt asserts 0 represents interrupt de asserts CH0_Status ...

Страница 42: ... a low level However note that incorrect use will result in an adverse effect Typical contact protection circuits are given below 1 RC Circuit This circuit is suitable for DC application If the load is a timer leakage current flows through the RC circuit causing faulting operation Contact Inductive Load R C The below circuit is suitable for both AC and DC applications If the load is a relay or sol...

Страница 43: ...on The diode connected in parallel causes the energy stored in the coil to flow to the coil in the form of current and dissipates it as joule heat at the resistance component of the inductive load This circuit further delays the release time compared to the RC circuit Contact Inductive Load Diode Device Selection Use a diode with a reverse breakdown voltage at least 10 times the circuit voltage an...

Страница 44: ...uitable for both AC DC applications Using the stable voltage characteristics of the varistor this circuit prevents excessively high voltages from being applied across the contacts This circuit also slightly delays the release time Effective when connected to both contacts of the power supply voltage is 24 or 48V and the voltage across the load is 100 to 200 V Contact Inductive Load Diode ...

Страница 45: ...rs Local warranty conditions will depend on the local dealers 3 Our repair service does not cover two year guarantee while damages are caused by the following a Damage caused by not following instructions on user menus 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 transf...

Страница 46: ...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 ...

Отзывы: