Resumo do conteúdo contido na página número 1
NI Vision
NI PCI-8254R User Manual
IEEE 1394a Interface Device with Reconfigurable I/O
NI PCI-8254R User Manual
February 2007
371578D-01
Resumo do conteúdo contido na página número 2
Support Worldwide Technical Support and Product Information ni.com National Instruments Corporate Headquarters 11500 North Mopac Expressway Austin, Texas 78759-3504 USA Tel: 512 683 0100 Worldwide Offices Australia 1800 300 800, Austria 43 0 662 45 79 90 0, Belgium 32 0 2 757 00 20, Brazil 55 11 3262 3599, Canada 800 433 3488, China 86 21 6555 7838, Czech Republic 420 224 235 774, Denmark 45 45 76 26 00, Finland 385 0 9 725 725 11, France 33 0 1 48 14 24 24, Germany 49 0 89 741 31 30, India 91
Resumo do conteúdo contido na página número 3
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. The media on which you receive National Instruments software are warranted not to fail to execute programming instructions
Resumo do conteúdo contido na página número 4
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. Depending on where it
Resumo do conteúdo contido na página número 5
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. bold
Resumo do conteúdo contido na página número 6
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 Overvi
Resumo do conteúdo contido na página número 7
Contents Considerations When Connecting the Digital I/O......................................................... 2-12 Wiring an Isolated Input to a Sourcing Output Device................................... 2-12 Wiring an Isolated Output to an External Load .............................................. 2-13 Protecting Inductive Loads ............................................................................. 2-14 Transmission Line Effects .......................................................
Resumo do conteúdo contido na página número 8
1 Introduction The NI PCI-8254R is a OHCI compliant IEEE 1394a interface device with reconfigurable I/O (RIO). The NI 8254R device ships with NI Vision Acquisition Software, which contains all of the drivers in the NI Vision product line. With NI Vision Acquisition Software, you can quickly and easily start your applications without having to program the device at the register level. The NI 8254R includes TTL inputs and outputs for triggering, and isolated inputs and outputs for connecting
Resumo do conteúdo contido na página número 9
Chapter 1 Introduction 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. Vision Builder AI does not require programming, but is scalable to powerful programming environments. Vision Builder AI allows you to easily configure and benchmark a sequence of visual inspection steps, as well as deploy the visual inspection system for automat
Resumo do conteúdo contido na página número 10
Chapter 1 Introduction LabVIEW VI creation wizard, Vision Assistant can create LabVIEW VI diagrams that perform the prototype you created in Vision Assistant. You can then use LabVIEW to add functionality to the generated VI. IEEE 1394 and NI 8254R ® The NI 8254R uses FireWire (IEEE 1394) technology. FireWire is a cross-platform implementation of the high-speed serial data bus—defined by the IEEE 1394-1995 and IEEE 1394a-2000 standards—that can move large amounts of data between computers a
Resumo do conteúdo contido na página número 11
Chapter 1 Introduction ISO In V2 FPGA TTL In DSUB PCI PCI Dust CPLD TTL Out CONN Bridge MITE ISO Out Config ROM ISO Power Connection 1394A 1394 Controller Conns 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. Use this configuration for capturi
Resumo do conteúdo contido na página número 12
2 Hardware Overview 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
Resumo do conteúdo contido na página número 13
Chapter 2 Hardware Overview Using National Instruments RIO hardware and the LabVIEW FPGA Module, you can define your hardware without in-depth knowledge of hardware design tools or hardware description languages (HDL). When the signal requirements change, the LabVIEW code can be modified and downloaded to the FPGA to change the I/O mix or type. This flexibility allows you to reuse the same hardware and software at no extra expense. NI-IMAQ I/O devices such as the such as the NI 8254R, the N
Resumo do conteúdo contido na página número 14
Chapter 2 Hardware Overview Table 2-1 summarizes the TTL inputs and outputs available on the NI 8254R. Table 2-1. NI 8254R TTL Inputs and Outputs 44-Pin D-SUB on 37-Pin Input NI 8254R Terminal Primary or Number Pin Block Function Output Available Signal Names Number Number Trigger Input 2 TTL Input 0, 1 1 * General Purpose TTL Input 1, 16 2 * General Purpose Timed Output 6 TTL Output 1, Pulse 1 4 5 Pulse TTL Output 2, Pulse 2 6 7 TTL Output 3, Pulse 3 7 8 TTL Output 4, Pulse4 18 20 TRIG 1,
Resumo do conteúdo contido na página número 15
Chapter 2 Hardware Overview Table 2-2 summarizes the isolated inputs and outputs available on the NI 8254R. Table 2-2. NI 8254R Isolated Inputs and Outputs 44-Pin 37-Pin D-SUB on Terminal Primary Input or Number Signal NI 8254R Block Function Output Available Names Pin Number Number * Trigger Input 3 TRIG 0 11 — † ISO Input 5 35 15 * ISO Input 8 40 27 Quadrature Input 1 ISO Input 6 37 25 Encoder ISO Input 7 38 26 External Input 1 ISO Input 11 44 31 Shutdown Control Product Input 1 ISO Inpu
Resumo do conteúdo contido na página número 16
Chapter 2 Hardware Overview 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 outp
Resumo do conteúdo contido na página número 17
Chapter 2 Hardware Overview If the trigger input is set to Immediate in LabVIEW or using a None status signal in C and Visual Basic, the pulse generation occurs as soon as the pulse mode is set to Start in LabVIEW or imaqIOPulseStart in C and Visual Basic. After generating a pulse, it immediately generates another pulse 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 appropri
Resumo do conteúdo contido na página número 18
Chapter 2 Hardware Overview 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. Figure 2-2 shows the output of a pulse generator config
Resumo do conteúdo contido na página número 19
Chapter 2 Hardware Overview 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. Supported trigger input lines include TTL Input 0, TTL Input 1, ISO Input 8, ISO
Resumo do conteúdo contido na página número 20
Chapter 2 Hardware Overview Based on the input to the product selection port, you can configure the application software to run the appropriate inspection sequence. For example, an upstream NI 8254R programmed for part classification might drive the product selection port of a downstream NI 8254R. 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