NI Vision NI PCI-8254R User Manual 1394a Image Acquisition Device with Reconfigurable I/O NI PCI-8254R User Manual September 2006 371578C-01
Support Worldwide Technical Support and Product Information ni.
Important Information Warranty The NI PCI-8254R is warranted against defects in materials and workmanship for a period of one year from the date of shipment, as evidenced by receipts or other documentation. National Instruments will, at its option, repair or replace equipment that proves to be defective during the warranty period. This warranty includes parts and labor.
Compliance Compliance with FCC/Canada Radio Frequency Interference Regulations Determining FCC Class The Federal Communications Commission (FCC) has rules to protect wireless communications from interference. The FCC places digital electronics into two classes. These classes are known as Class A (for use in industrial-commercial locations only) or Class B (for use in residential or commercial locations). All National Instruments (NI) products are FCC Class A products.
Conventions The following conventions are used in this manual: » The » symbol leads you through nested menu items and dialog box options to a final action. The sequence File»Page Setup»Options directs you to pull down the File menu, select the Page Setup item, and select Options from the last dialog box. This icon denotes a note, which alerts you to important information. This icon denotes a caution, which advises you of precautions to take to avoid injury, data loss, or a system crash.
Contents Chapter 1 Introduction Software Overview ........................................................................................................1-1 Vision Builder for Automated Inspection .......................................................1-2 Vision Development Module ..........................................................................1-2 IEEE 1394 and NI 8254R ..............................................................................................1-3 Functional Overview...........
Contents Chapter 3 Signal Connections Connectors..................................................................................................................... 3-2 2-Position Isolated Outputs Power Connector ................................................ 3-2 IEEE 1394a Connector.................................................................................... 3-3 General-Purpose Digital I/O ........................................................................... 3-3 Cabling ...................
1 Introduction The National Instruments PCI-8254R is an IEEE 1394a interface device for PCI with reconfigurable I/O (RIO). The NI 8254R is OHCI compliant and should be used with IEEE 1394a devices that run natively in Windows 2000/XP. The NI 8254R device ships with documentation and NI Vision Acquisition Software, which contains all of the drivers in the NI Vision product line.
Chapter 1 Introduction National Instruments also offers the following application software packages for analyzing and processing your acquired images. For detailed information about individual software packages, refer to the documentation specific to each package. Vision Builder for Automated Inspection NI Vision Builder for Automated Inspection (Vision Builder AI) is configurable machine vision software that you can use to prototype, benchmark, and deploy applications.
Chapter 1 Introduction Vision Assistant generates a Builder file, which is a text description containing a recipe of the machine vision and image processing functions. This Builder file provides a guide you can use for developing applications in any ADE, such as LabWindows™/CVI™ or Visual Basic, using the Vision Assistant machine vision and image processing libraries.
Chapter 1 Introduction V2 FPGA ISO In TTL In DSUB PCI CONN PCI Bridge Dust MITE CPLD TTL Out ISO Out Config ROM ISO Power Connection 1394 Conns 1394A Controller Power Supply +5 V, +1.5 V 1394 Power Conn Figure 1-1. NI 8254R Block Diagram Start Conditions The NI 8254R can start acquisitions in the following ways: • Software control—The NI 8254R supports software control of acquisition start. You can configure the NI 8254R to capture a fixed number of frames.
2 Digital I/O The digital I/O functions on the NI 8254R are accessible through 2 TTL inputs, 10 TTL outputs, 13 isolated inputs, and 4 isolated outputs. You can use input signals as triggers, product selection ports, change detectors, or to read quadrature encoders. Uses for output signals include controlling camera reset and exposure, controlling strobe lighting, outputting inspection results, or communicating with PLCs. You can also define the functions of digital input and output signals.
Chapter 2 Digital I/O NI-IMAQ I/O devices such as the such as the NI 8254R, the NI 8255R, and the CVS-1450 Series Compact Vision Systems have 29 digital I/O lines with built-in functionality for communicating with external devices, such as reading quadrature encoder inputs, generating strobe pulses, and writing to or reading from digital lines. NI-IMAQ I/O devices have 15 digital input lines—13 isolated 24 V lines and two dedicated TTL lines.
Chapter 2 Digital I/O Table 2-1. NI 8254R TTL Inputs and Outputs (Continued) Primary Function Input or Output Number Available Signal Names 44-Pin D-SUB on NI 8255R Device Pin Number 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 37-Pin Terminal Block Number * TTL Input 0 and TTL Input 1 can also function as trigger change detectors.
Chapter 2 Digital I/O Table 2-2 summarizes the isolated inputs and outputs available on the NI 8254R. Table 2-2.
Chapter 2 Digital I/O Trigger Inputs Trigger inputs are available from both TTL inputs and isolated inputs. You can use these trigger inputs to synchronize the NI 8254R with an external event, such as the assertion of a signal generated by a proximity sensor or a PLC, to indicate that an inspection item is passing in front of the camera. The NI 8254R uses this input to initiate a timed pulse that can be used for camera control, lighting control, encoder pulse counting, and result output timing.
Chapter 2 Digital I/O When the pulse generator is configured for a particular trigger input, after generating a pulse, it waits for another trigger before generating another pulse. When the pulse generator is configured to immediately generate the pulse on a software start, after generating a pulse, it immediately generates another pulse.
Chapter 2 Digital I/O 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 trigger, each can have different polarities.
Chapter 2 Digital I/O Trigger Change Detectors The NI 8254R is capable of detecting edges on various trigger lines and latching this information for future retrieval. This feature is useful for high-precision hardware-monitoring of the presence of external events without 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.
Chapter 2 Digital I/O example, an upstream NI 8254R device programmed for part classification might drive the product selection port of a downstream NI 8254R device. Alternatively, a PLC with information about which part is being inspected can drive the product selection port of the NI 8254R. Using ISO Input 5 as a Latch You can configure the product selection port to use ISO Input 5 as a latch. A rising edge on ISO Input 5 can latch the data into a data register on the NI 8254R.
Chapter 2 Digital I/O 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.
Chapter 2 Digital I/O Shutdown Shutdown mode is a software-enabled feature that, when activated, allows an external device to halt the NI 8254R device processing operations. Additionally, Shutdown mode allows you to specify user-defined shutdown states for all fault conditions. When Shutdown mode is enabled and the shutdown input signal, ISO Input 11, turns off, the NI 8254R registers an external shutdown condition. When a fault occurs, outputs operate according to user-defined shutdown states.
Chapter 2 Digital I/O Considerations When Connecting the Digital I/O The isolated trigger inputs on the NI 8254R are current sinking and optically isolated. The following are considerations you need to make when connecting the digital I/O. Wiring an Isolated Input to a Sourcing Output Device You can wire an isolated input to a sourcing output device, as shown in the following figure. Refer to the NI PCI-8254R Quick Start Guide for switching thresholds and current requirements.
Chapter 2 Digital I/O Wiring an Isolated Output to an External Load The digital output circuit sources current to external loads, as shown in the following figure. 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.
Chapter 2 Digital I/O Protecting Inductive Loads When an inductive load, such as a relay or solenoid, is connected to an output, a large counter-electromotive force may occur at switching time due to energy stored in the inductive load. This flyback voltage can damage 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.
Chapter 2 Digital I/O Transmission Line Effects Transmission line effects can degrade the signals on the I/O cables and cause instability. To minimize transmission line effects, use twisted pair wires with a characteristic impedance of 118 Ω to connect external signals to the 44-pin I/O D-SUB connector. The following figure shows connections to the 44-pin D-SUB connector that minimize transmission line effects.
3 Signal Connections The following diagram shows the connectors on the NI 8254R device.
Chapter 3 Signal Connections Table 3-1 summarizes the functions of the connectors on the NI 8254R device. Table 3-1.
Chapter 3 Signal Connections Table 3-2 summarizes the functions of the power connector terminals. Table 3-2. Power Connector Terminals Terminal Description V Isolated power (5 to 30 VDC) C Isolated common-mode signal IEEE 1394a Connector The IEEE 1394a connectors on the NI 8254R device provide a reliable, high-frequency connection between the NI 8254R device and up to two DCAM-compliant IEEE 1394 cameras.
Chapter 3 Signal Connections Figure 3-2 illustrates the 44-pin D-SUB connector on the NI 8254R. 44 30 15 31 16 1 Figure 3-2. NI 8254R 44-Pin D-SUB Connector Table 3-3 lists pin numbers, signal names, and signal descriptions for the 44-pin D-SUB connector on the NI 8254R and the 37-pin terminal block. Caution Do not draw more than 500 mA combined from the V pins on the 44-pin D-SUB connector. Do not draw more than 100 mA from 24 V or 30 V isolated outputs.
Chapter 3 Signal Connections Table 3-3.
Chapter 3 Signal Connections Table 3-3.
Chapter 3 Signal Connections Table 3-3.
Chapter 3 Signal Connections Table 3-3.
Chapter 3 Signal Connections I/O Terminal Block National Instruments provides an I/O terminal block with the NI 8254R, which can be mounted either horizontally or vertically. The I/O terminal block breaks the signals out into easy-to-use screw terminals and comes with a cable that connects directly to the 44-pin D-SUB connector on the NI 8254R. Note TRIG 0, TRIG 1, and TRIG 2 signals are not accessible via the standard 44 to 37-pin cable and I/O terminal block.
Chapter 3 Signal Connections The isolated outputs power connector on the NI 8254R device accommodates one power supply. The V terminal provides the isolated output circuitry (5 to 30 VDC) for the NI 8254R device. The C terminal provides the common-mode signal for the NI 8254R device. Table 3-4. Power Connector Terminals Terminal NI PCI-8254R User Manual Description V Isolated power (5 to 30 VDC) C Isolated common-mode signal 3-10 ni.
Technical Support and Professional Services A Visit the following sections of the National Instruments Web site at ni.com for technical support and professional services: • Support—Online technical support resources at ni.
Appendix A Technical Support and Professional Services • Calibration Certificate—If your product supports calibration, you can obtain the calibration certificate for your product at ni.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.
Glossary A ADE Application development environment such as LabVIEW, Visual Basic, or MSVC. B bandwidth The range of frequencies present in a signal, or the range of frequencies to which a measuring device can respond. C current The rate of flow of electric charge measured in amperes D D-SUB A serial connector. DCAM Digital camera. deployment machine Machine used to run the software in its final state. this machine typically runs the software without an ADE in the form of an executable.
Glossary 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 interface invented by Apple Computer in 1989, also known as IEEE 1394 or iLink. FPGA Field-programmable gate array.
Glossary P pixel The fundamental picture element in a digital image. The smallest resolvable rectangular area of an image, either on a screen or stored in memory. Each pixel has its own brightness and color, usually represented as red, green, and blue intensities. PLC Programmable Logic Controller. An industrial computer used for factory automation, process control, and manufacturing systems. proximity sensor Optical sensor which toggles an electrical signal when an object passes near it.
Glossary V VDC Volts direct current. voltage The electromotive force. NI PCI-8254R User Manual G-4 ni.
Index A G acquisition window control, 1-4 general purpose outputs, 2-10 general-purpose I/O, 2-9 general-purpose inputs, 2-9 C cabling, 3-8 calibration certificate (NI resources), A-2 connector functions, 3-2 connectors, 3-2 2-position isolated output power, 3-2 general-purpose digital I/O, 3-3 IEEE 1394a, 3-3 conventions used in the manual, v H help, technical support, A-1 I I/O for fault conditions, 2-10 I/O for normal operation, 2-4 I/O terminal block, 3-9 IEEE 1394, 1-3 camera cables, 3-8 IEEE 139
Index N NI support and services, A-1 NI Vision Assistant, 1-2 NI Vision Terminal Block and Prototyping Accessory, 3-9 National Instruments support and services, A-1 NI 1427 software programming choices NI Vision Builder for Automated Inspection, 1-2 NI Vision Development Module, 1-2 NI 8254R acquisition window control, 1-4 cabling, 3-8 connection considerations, 2-12 connector functions, 3-2 connectors, 3-2 digital I/O, 2-1 functional overview, 1-3 general-purpose I/O, 2-9 I/O for fault conditions, 2-10
Index T W technical support, A-1 timed pulse output initiating, 2-5 overview, 2-5 training and certification (NI resources), A-1 transmission line effects, 2-14 trigger change detectors, 2-8 trigger inputs, 2-5 trigger polarity, 2-7 troubleshooting (NI resources), A-1 TTL inputs, 2-2 list of, 2-2 TTL outputs, 2-2 list of, 2-2 watchdog timer, 2-11 Web resources, A-1 wiring isolated input to sourcing output device, 2-12 isolated output to external load, 2-12 © National Instruments Corporation I-3 NI PC