background image

Chapter 2

Hardware Overview

©

 National Instruments Corporation

2-3

NI PCIe-8255R User Manual

Table 2-1 summarizes the TTL inputs and outputs available on the 
NI 8255R.

Isolated Inputs and Outputs

The isolated inputs and outputs on the NI 8255R have a separate ground 
reference from the main NI 8255R supply, providing an easy means to 
prevent ground loops that can introduce noise into a system. You can apply 
signals up to 30 V to the isolated inputs. The voltage swing of the isolated 
outputs is determined by the voltage you supply on the V

iso

 pins of the 

device.

Note

V

iso

 can be supplied directly to the 44-pin D-SUB when using custom cabling. 

Alternatively, V

iso

 can be supplied directly to the 37-pin terminal block and to the NI Vision 

I/O Terminal Block and Prototyping Accessory with the 44-pin to 37-pin NI cable.

Note

The isolated outputs have current-limiting protection circuitry. If this circuitry is 

tripped, you can re-enable the outputs by removing the fault and restarting your computer.

Table 2-1.  

NI 8255R TTL Inputs and Outputs

Primary 

Function

Input or 

Output

Number 

Available

Signal Names

44-Pin D-SUB 

on NI 8255R 

Pin Number

37-Pin 

Terminal 

Block 

Number

Trigger

Input

2

TTL Input 0,

General Purpose

*

TTL Input 1,

General Purpose

*

16

2

Timed 
Pulse

Output

6

TTL Output 1, Pulse 1
TTL Output 2, Pulse 2
TTL Output 3, Pulse 3
TTL Output 4, Pulse 4

TRIG 1, Pulse 5
TRIG 2, Pulse 6

4
6
7

18
24 

9

5
7
8

20
— 

Watchdog

Output

1

TTL Output 0

3

4

General
Purpose

Output

3

TTL Output 5
TTL Output 6
TTL Output 7

19
21
22

21
23
24

* TTL Input 0 and TTL Input 1 can also function as trigger change detectors.

Summary of Contents for NI PCIe-8255R

Page 1: ...NI Vision NI PCIe 8255R User Manual IEEE 1394a and IEEE 1394b Interface Device with Reconfigurable I O NI PCIe 8255R User Manual February 2007 371911C 01 ...

Page 2: ...00 Lebanon 961 0 1 33 28 28 Malaysia 1800 887710 Mexico 01 800 010 0793 Netherlands 31 0 348 433 466 New Zealand 0800 553 322 Norway 47 0 66 90 76 60 Poland 48 22 3390150 Portugal 351 210 311 210 Russia 7 495 783 6851 Singapore 1800 226 5886 Slovenia 386 3 425 42 00 South Africa 27 0 11 805 8197 Spain 34 91 640 0085 Sweden 46 0 8 587 895 00 Switzerland 41 56 2005151 Taiwan 886 02 2377 2222 Thailan...

Page 3: ... storing in an information retrieval system or translating in whole or in part without the prior written consent of National Instruments Corporation National Instruments respects the intellectual property of others and we ask our users to do the same NI software is protected by copyright and other intellectual property laws Where NI software may be used to reproduce software or other materials bel...

Page 4: ...nt of Communications DOC Changes or modifications not expressly approved by NI could void the user s authority to operate the equipment under the FCC Rules Class A Federal Communications Commission This equipment has been tested and found to comply with the limits for a Class A digital device pursuant to part 15 of the FCC Rules These limits are designed to provide reasonable protection against ha...

Page 5: ...t you must select or click in the software such as menu items and dialog box options Bold text also denotes parameter names italic Italic text denotes variables emphasis a cross reference or an introduction to a key concept Italic text also denotes text that is a placeholder for a word or value that you must supply monospace Text in this font denotes text or characters that you should enter from t...

Page 6: ...al I O 2 1 RIO and the LabVIEW FPGA Module 2 1 TTL Inputs and Outputs 2 2 Isolated Inputs and Outputs 2 3 I O for Normal Operation 2 5 Trigger Inputs 2 5 Timed Pulse Output 2 5 Initiating a Timed Pulse 2 6 Pulse Modes 2 6 Pulse Delay 2 7 Pulse Width 2 7 Trigger Polarity 2 7 Trigger Change Detectors 2 8 Quadrature Encoder 2 8 Product Selection Port 2 9 Using ISO Input 5 as a Latch 2 9 General Purpo...

Page 7: ...uctive Loads 2 15 Transmission Line Effects 2 16 Chapter 3 Signal Connections Connectors 3 2 IEEE 1394b Connector 3 2 ATX Connector 3 2 General Purpose Digital I O 3 3 Cabling 3 8 IEEE 1394 Camera Cables 3 8 I O Terminal Block 3 8 NI Vision I O Terminal Block and Prototyping Accessory 3 8 Power Requirements 3 9 Isolated Outputs Power Connection 3 9 Appendix A Technical Support and Professional Ser...

Page 8: ...sion tasks However if the factory configured functionality does not fulfill your requirements the FPGA is user configurable using the LabVIEW FPGA Module The NI 8255R provides a convenient 44 pin D SUB connector on its front panel to access the digital I O For detailed specifications of the NI 8255R refer to the Specifications section of Getting Started with the NI PCIe 8255R Software Overview Pro...

Page 9: ...e NI Vision Development Module which consists of NI Vision and NI Vision Assistant is an image acquisition processing and analysis library of more than 270 functions for the following common machine vision tasks Pattern matching Particle analysis Gauging Taking measurements Grayscale color and binary image display You can use the Vision Development Module functions individually or in combination W...

Page 10: ...pairs hot swapping and transfer speeds of up to 800 megabits per second You can support up to 63 devices on the high speed bus with IEEE 1394 The NI 8255R provides two direct connect IEEE 1394b bilingual ports which support IEEE 1394a and IEEE 1394b devices1 More IEEE 1394 devices can be added using IEEE 1394 hubs The NI 8255R can acquire images from IEEE 1394 cameras conforming to the IIDC 1394 b...

Page 11: ...re control You can configure the NI 8255R to capture a fixed number of frames Use this configuration for capturing a single frame or a sequence of frames Trigger control You can start an acquisition by enabling external trigger lines Each of these inputs can start a video acquisition on a rising or falling edge RIO ISO Out ISO Power Connection TTL Out DSUB TTL In ISO In PCIe to PCI Bridge PCIe Con...

Page 12: ...eo acquisition window Acquisition window The NI 8255R and the IIDC 1394 based Digital Camera Specification allow you to specify a particular region of active pixels and lines on a camera to acquire In many cases specifying a smaller acquisition window will increase the maximum frame rate of the camera Valid acquisition windows and their corresponding frame rates are defined by the camera ...

Page 13: ...T to implement specific digital I O functions refer to the examples at National Instruments NI IMAQ IO Examples RIO and the LabVIEW FPGA Module Behind the digital I O of the NI 8255R is an FPGA which has been preconfigured with the functionality required for most common machine vision tasks However if the factory configured functionality does not fulfill your requirements the FPGA is user configur...

Page 14: ...es and 10 dedicated TTL lines Using these signals you can dynamically control your lighting or cameras synchronize with a conveyor belt or communicate with relays that control solenoids and other actuators For more information about using the LabVIEW FPGA Module to implement custom FPGA logic refer to the examples at LabVIEW examples IMAQ IMAQ IO FPGA llb TTL Inputs and Outputs TTL is a fast switc...

Page 15: ...pin terminal block and to the NI Vision I O Terminal Block and Prototyping Accessory with the 44 pin to 37 pin NI cable Note The isolated outputs have current limiting protection circuitry If this circuitry is tripped you can re enable the outputs by removing the fault and restarting your computer Table 2 1 NI 8255R TTL Inputs and Outputs Primary Function Inputor Output Number Available Signal Nam...

Page 16: ... 40 15 27 Quadrature Encoder Input 1 ISO Input 6 ISO Input 7 37 38 25 26 External Shutdown Control Input 1 ISO Input 11 44 31 Product Selection Port Input 1 ISO Input 0 ISO Input 1 ISO Input 2 ISO Input 3 ISO Input 4 15 30 31 32 34 9 10 11 13 14 General Purpose Input 2 ISO Input 9 ISO Input 10 41 43 29 30 General Purpose Output 4 ISO Output 0 ISO Output 1 ISO Output 2 ISO Output 3 12 13 27 28 19 3...

Page 17: ...ly function as a latch for the product selection port Timed Pulse Output The NI 8255R is capable of timed pulse output on six different digital outputs which provides precise control over time critical signals such as camera exposure This section describes the various uses for the timed pulse output and the parameters you can set to control these outputs Uses for timed pulse output include control...

Page 18: ...e until the pulse generation is stopped If the trigger input is set to one of the hardware trigger inputs the timed pulse output waits for an assertion edge on the appropriate trigger input After generating a pulse it waits for another trigger before generating another pulse The assertion edge is configurable based on the trigger polarity parameter It then generates one pulse and rearms to wait fo...

Page 19: ...ces is 0 counts to 4 294 967 295 counts Pulse Width Pulse width is the amount of time between the first assertion edge of a pulse and the second deassertion edge Pulse width is configurable only in microseconds from 1 µs to 4 294 967 295 µs Trigger Polarity Each pulse generator can be individually configured for rising or falling edge triggering Even if multiple pulse generators are using the same...

Page 20: ...t the need for software polling You can arm for the detection of a rising edge falling edge or both on a supported trigger input line Supported trigger input lines include TTL Input 0 TTL Input 1 ISO Input 8 ISO Input 9 ISO Input 10 and TRIG 0 Quadrature Encoder The quadrature encoder uses ISO Input 6 for its Phase A input and ISO Input 7 for its Phase B input Encoder speed is limited by the speed...

Page 21: ...ure the application software to run the appropriate inspection sequence For example an upstream NI 8255R programmed for part classification might drive the product selection port of a downstream NI 8255R Alternatively a PLC with information about which part is being inspected can drive the product selection port of the NI 8255R Using ISO Input 5 as a Latch You can configure the product selection p...

Page 22: ...ent An example of how to use general purpose inputs is reading the status of a general purpose input as the first step in your inspection sequence and recording that value as part of your inspection General Purpose Outputs The primary difference between general purpose outputs and timed pulse outputs is that the timing of general purpose outputs is controlled by software rather than hardware As a ...

Page 23: ...nfiguration affects the behavior of the NI 8255R in the event of a fault condition The following sections describe each fault condition Shutdown Shutdown mode is a software enabled feature that when activated allows an external device to halt the NI 8255R processing operations Additionally Shutdown mode allows you to specify user defined shutdown states for all fault conditions When Shutdown mode ...

Page 24: ...st the watchdog timer If software becomes unresponsive it cannot be relied upon to send notification to the host Indicator Only This option sends the expiration signal back to the development machine through software True indicates an expired watchdog timer False indicates an unexpired watchdog timer The expiration signal that indicates an expired watchdog timer continues to assert until the watch...

Page 25: ...utput Device You can wire an isolated input to a sourcing output device as shown in the following figure Refer to Getting Started with the NI PCIe 8255R for information about switching thresholds and current requirements Caution Do not apply a voltage greater than 30 VDC to the isolated inputs Doing so could damage the NI 8255R Figure 2 5 shows an example of connecting an isolated input to a sourc...

Page 26: ...digital output circuit sources current to external loads as shown in Figure 2 6 Caution Do not draw more than 100 mA from 24 V or 30 V isolated outputs Do not draw more than 50 mA from 5 V isolated outputs Figure 2 6 Digital output circuit sourcing current to external loads Digital Output Viso Ciso Vcc NI 8255R Load ...

Page 27: ...amage the outputs and the power supply To limit flyback voltages at the inductive load install a flyback diode across the load Mount the flyback diode as close to the load as possible Use this protection method if you connect any of the isolated outputs on the NI 8255R to an inductive load Figure 2 7 shows an example of using an external flyback diode to protect inductive loads Figure 2 7 An exter...

Page 28: ...4 pin D SUB connector that minimize transmission line effects Figure 2 8 Connections to the 44 pin D SUB connector that minimize transmission line effects When connecting to TTL inputs on the NI 8255R match the output impedance of the transmitting device to the characteristic impedance of the cable For example if the cable characteristic impedance is 118 Ω make Rs equal to 118 Ω as shown in the Fi...

Page 29: ...tors and LEDs on the NI 8255R Figure 3 1 NI 8255R Connectors 1 IEEE 1394b Bilingual Connector 2 ISO ATX Power Status LEDs 3 IEEE 1394b Bilingual Connector 4 Digital I O Connector 5 Camera Power ATX Connector NI PCIe 8255R FOR PATENTS NI COM PATENTS NI PCIe 8255R DIGITAL I O IEEE 1394b IEEE 1394b CAM ISO 1 2 3 4 5 ...

Page 30: ...r on the NI 8255R allows the 1394 devices that are connected to the NI 8255R to draw power directly from the computer power supply instead of the PCI Express bus The PCI Express bus has a stricter current draw allowance than the computer power supply Connect the NI 8255R device to the computer power supply by connecting an unused ATX power connector from within the computer chassis to the ATX conn...

Page 31: ...The orange LED on the front panel of the NI 8255R illuminates when power for the isolated outputs is present For easy connection to the digital I O connector use the National Instruments digital I O cable and the NI Vision I O Terminal Block and Prototyping Accessory Note The accessories available for use with the NI 8255R do not provide access to all available I O on the NI 8255R device To access...

Page 32: ...rminal block Table 3 2 Signal Connections 44 Pin D SUB on NI 8255R Pin Number 37 Pin Terminal Block Number Signal Name Primary Function Alternate Function 1 1 TTL Input 0 Pulse generator trigger input Trigger Change Detector General purpose input 2 3 C Common mode signal of the NI 8255R device main power 3 4 TTL Output 0 Watchdog timer output General purpose output 4 5 TTL Output 1 Pulse generator...

Page 33: ...power 11 NC TRIG 0 ISO Input 12 Pulse generator trigger input Trigger Change Detector General purpose input 12 19 ISO Output 0 General purpose output 13 35 ISO Output 1 General purpose output 14 34 Ciso Isolated common mode signal 15 9 ISO Input 0 Input port Data 0 16 2 TTL Input 1 Pulse generator trigger input Trigger Change Detector General purpose input 17 3 C Common mode signal of the NI 8255R...

Page 34: ...utput 23 22 C Common mode signal of the NI 8255R device main power 24 NC TRIG 1 TTL Output 9 Pulse generator output General purpose output 25 33 Viso Isolated power 26 34 Ciso Isolated common mode signal 27 36 ISO Output 2 General purpose output 28 37 ISO Output 3 General purpose output 29 12 Ciso Isolated common mode signal 30 10 ISO Input 1 Input port Data 1 Table 3 2 Signal Connections Continue...

Page 35: ...gnal 37 25 ISO Input 6 Quadratureencoder Phase A General purpose input 38 26 ISO Input 7 Quadratureencoder Phase B General purpose input 39 28 Ciso Isolated common mode signal 40 27 ISO Input 8 Pulse generator trigger input Trigger Change Detector General purpose input 41 29 ISO Input 9 General purpose input Trigger Change Detector General purpose input 42 32 Ciso Isolated common mode signal Table...

Page 36: ...ndard 44 to 37 pin cable and I O terminal block NI Vision I O Terminal Block and Prototyping Accessory Use the NI Vision I O Terminal Block and Prototyping Accessory to troubleshoot and prototype digital I O applications for the NI 8254R NI 8255R and the NI CVS 1450 Series compact vision system The NI Vision I O Terminal Block and Prototyping Accessory provides screw terminals for easy connections...

Page 37: ... Ciso pins on the 44 pin D SUB connector the 37 pin terminal block or the NI Vision I O Terminal Block and Prototyping Accessory The isolated outputs power connection on the NI 8255R accommodates one power supply The Viso terminal provides the isolated power 5 to 30 VDC for the NI 8255R The Ciso terminal provides the common mode signal for the NI 8255R as shown in Table 3 3 Note The orange ISO LED...

Page 38: ...nstruments Application Engineers make sure every question receives an answer For information about other technical support options in your area visit ni com services or contact your local office at ni com contact Training and Certification Visit ni com training for self paced training eLearning virtual classrooms interactive CDs and Certification program information You also can register for instr...

Page 39: ...com calibration If you searched ni com and could not find the answers you need contact your local office or NI corporate headquarters Phone numbers for our worldwide offices are listed at the front of this manual You also can visit the Worldwide Offices section of ni com niglobal to access the branch office Web sites which provide up to date contact information support phone numbers email addresse...

Page 40: ...evice can respond C current The rate of flow of electric charge measured in amperes D D SUB A serial connector DCAM Digital camera E exposure The amount of time that light reaches the image sensor F falling edge An edge trigger occurs when the trigger signal passes through a specified threshold A slope that is negative to the trigger is specified as the falling edge FireWire A high speed serial in...

Page 41: ...act of removing or swapping a device when power is applied to it I IEEE Institute of Electrical and Electronics Engineers IIDC IEEE 1394 Trade Association Instrumentation and Industrial Control Working Group Digital Camera Sub Working Group isolated A signal which has no electrical connection to the overall system power N NI IMAQdx Driver software for National Instruments IEEE 1394 and Gigabit Eth...

Page 42: ...t possible to detect the direction of the motion R RIO Reconfigurable inputs and outputs rising edge An edge trigger occurs when the trigger signal passes through a specified threshold A slope that is positive to the trigger is specified as the rising edge T trigger Any event that causes or starts some form of data capture TTL Transistor transistor logic A digital circuit composed of bipolar trans...

Page 43: ... overview 2 1 documentation conventions used in the manual vii NI resources A 1 drivers NI resources A 1 E examples NI resources A 1 F FireWire 1 3 FPGA 2 1 G general purpose I O 2 10 general purpose inputs 2 10 general purpose outputs 2 10 H help technical support A 1 I I O for fault conditions 2 11 I O for normal operation 2 5 I O terminal block 3 8 IEEE 1394 camera cables 3 8 connector 3 2 conn...

Page 44: ...8 reconfigurable I O 2 1 signal connections 3 1 start conditions 1 4 trigger change detectors 2 8 trigger inputs 2 5 TTL inputs 2 2 TTL outputs 2 2 NI support and services A 1 NI Vision Assistant 1 2 NI Vision Terminal Block and Prototyping Accessory 3 8 P power connection terminals 3 9 power requirements 3 9 product selection port 2 9 programming examples NI resources A 1 protecting inductive loa...

Page 45: ...Index National Instruments Corporation I 3 NI PCIe 8255R User Manual W Web resources A 1 wiring isolated input to sourcing output device 2 13 isolated output to external load 2 14 ...

Reviews: