CAN Getting Started with Your PXI-846x Series and the NI-CAN™ Software for Windows NT PXI-8460, PXI-8461, and PXI-8462 PXI-846x and NI-CAN for Windows NT August 2000 Edition Part Number 370294A-01
Support Worldwide Technical Support and Product Information ni.
Important Information Warranty The PXI hardware 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 FCC/Canada Radio Frequency Interference Compliance* 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 industrialcommercial locations only) or Class B (for use in residential or commercial locations). Depending on where it is operated, this product could be subject to restrictions in the FCC rules.
• • Connect the equipment into an outlet on a circuit different from that to which the receiver is connected. Consult the dealer or an experienced radio/TV technician for help. Canadian Department of Communications This Class B digital apparatus meets all requirements of the Canadian Interference-Causing Equipment Regulations. Cet appareil numérique de la classe B respecte toutes les exigences du Règlement sur le matériel brouilleur du Canada.
Contents About This Manual How To Use the Manual Set..........................................................................................xi Conventions ...................................................................................................................xii Related Documentation..................................................................................................xiii Chapter 1 Introduction What You Need to Get Started ...........................................................
Contents Appendix B Cabling Requirements for PXI-8460 Low-Speed CAN Connector Pinouts ......................................................................................................... B-1 Power Supply Information for the Low-Speed CAN Ports........................................... B-2 Bus Power Supply Requirements .................................................................................. B-3 Cable Specifications .............................................................................
Contents Appendix G Specifications Appendix H Technical Support Resources Glossary Index Figures Figure 2-1. Figure 2-2. Figure 2-3. Figure 2-4. Add/Remove Programs Properties Dialog Box.....................................2-2 Installing the PXI Hardware..................................................................2-4 PXI-8461 That Is Working Properly .....................................................2-5 NI-CAN Hardware Settings Dialog Box...............................................
Contents Tables Table B-1. Table B-2. Table C-1. Power Requirements for the Low-Speed CAN Physical Layer for Bus-Powered Versions .................................................................... B-3 ISO 11519-2 Specifications for Characteristics of a CAN_H and CAN_L Pair of Wires..................................................................... B-4 Table C-3. Power Requirements for the CAN Physical Layer for Bus-Powered Versions ...................................................................
About This Manual This manual contains instructions to help you install and configure your PXI-8460 (low speed; one port or two port), PXI-8461 (high speed; one port or two port) or PXI-8462 (dual speed; port one high-speed, port two low-speed) and the NI-CAN software for Windows NT. This guide uses PXI-8460 or PXI-8461 to refer to both the one port and two port versions of the boards. This manual assumes that you are already familiar with Windows NT.
About This Manual Use the NI-CAN Programmer Reference Manual for specific information about each NI-CAN function and object, including format, parameters, and possible errors. Conventions The following conventions appear 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.
About This Manual Related Documentation The following documents contain information that you may find helpful as you read this manual: • ANSI/ISO Standard 11898-1993, Road Vehicles—Interchange of Digital Information—Controller Area Network (CAN) for High-Speed Communication • ANSI/ISO Standard 11519-2-1994, Road Vehicles—Low-Speed Serial Data Communication—Part 2: Low-Speed Controller Area Network (CAN) • CAN Specification Version 2.0, 1991, Robert Bosch Gmbh.
1 Introduction This chapter lists what you need to get started, provides an overview of the PXI hardware and the NI-CAN software for Windows NT, and describes optional equipment you can order. What You Need to Get Started Make sure you have all of the following items before you attempt to install the hardware and software: ❑ Windows NT 3.51 or later installed on your computer – PXI-8460 one port – PXI-8460 two port – PXI-8461 one port – PXI-8461 two port – PXI-8462 two port ❑ 3.5 in.
Chapter 1 Introduction The PXI-8461 physical layer fully conforms to the ISO 11898 physical layer specification for CAN and is optically isolated to 500 V. The PXI-8460 physical layer conforms to the ISO 11519-2 physical layer specification for CAN and is also optically isolated to 500 V. CAN interfacing is accomplished using the Intel 82527 CAN controller chip. The PXI-8461 supports a wide variety of transfer rates up to 1 Mb/s. The PXI-8460 supports rates up to 125 kb/s.
Chapter 1 Introduction The NI-CAN software for Windows NT supports the concurrent use of multiple CAN boards. For example, you can use two PXI-8461 boards in the same system at the same time. The NI-CAN software, along with the PXI hardware, transforms your computer into a CAN interface with complete communications and bus management capability.
Chapter 1 Introduction Leveraging National Instruments patented graphical programming language G (otherwise known as LabVIEW), BridgeVIEW gives you the ability to integrate functionality in a way that is not possible with traditional automation software.
Installation and Configuration 2 This chapter describes how to install and configure the NI-CAN software for Windows NT and the PXI-8460, PXI-8461 or PXI-8462 hardware. Install the NI-CAN Software Install the NI-CAN software for Windows NT before you install your hardware. Installation for Windows NT 3.51 1. Log on as Administrator or as a user with Administrator privileges.
Chapter 2 Installation and Configuration 3. Double-click on the Add/Remove Programs icon in the Control Panel to launch the Add/Remove Programs applet. A dialog box similar to the one in Figure 2-1 appears. Figure 2-1. Add/Remove Programs Properties Dialog Box You can use this same applet to uninstall the NI-CAN software at a later time. Refer to Appendix A, Uninstalling the Hardware and Software, for more information. 4. Click on the Install button. 5.
Chapter 2 Installation and Configuration Install the Hardware This section describes how to install your PXI-8460, PXI-8461 or PXI-8462 hardware. Check the Configuration of Your PXI-8460, PXI-8461 or PXI-8462 If you plan to use your CAN board in a system where bus power is available, you may want to configure the power supply jumpers on your board. See Appendix C, Cabling Requirements for PXI-8461 High-Speed CAN for more information.
Chapter 2 Installation and Configuration 3 ON STA ND BY 1 2 3 4 5 6 7 8 2 4 1 1 2 Injector/Ejector Handle (In Down Position) PXI Board 3 4 PXI Chassis Injector/Ejector Rail Figure 2-2. Installing the PXI Hardware 7. Screw the front panel of the PXI board to the front panel mounting rail of the PXI or CompactPCI chassis. 8. Turn on your PXI or CompactPCI chassis and start Windows NT. Connect the Cables After you have installed your board, connect the CAN cables to your PXI board.
Chapter 2 Installation and Configuration Configure the NI-CAN Software The NI-CAN Configuration utility is located in the Windows NT Control Panel. You can use it to examine or modify the configuration of the NI-CAN software. The context-sensitive online help, available by right-clicking on any of the controls on the configuration utility buttons, includes all the information you need to configure the NI-CAN software.
Chapter 2 Installation and Configuration To view information about the NI-CAN software configuration for the PXI-8460, PXI-8461, or PXI-8462, click on the Settings button. Figure 2-4 shows the Settings dialog box. Figure 2-4. NI-CAN Hardware Settings Dialog Box Each port of the PXI-8460, PXI-8461 or PXI-8462 is configured from this tab. Use the drop-down box nearest the top of the tab to select the physical port number to configure.
3 Verify the Installation This chapter describes how to verify the hardware and software installation. You can use the NI-CAN Diagnostic utility, installed with your NI-CAN software, to test the hardware and software installation. The utility verifies that your hardware and software are functioning properly and that the configuration of your hardware does not conflict with anything else in your system. To run the utility, select the NI-CAN Diagnostic item: • Windows NT 3.
Chapter 3 Verify the Installation You can get details about any tested CAN interface by selecting the interface and clicking on the Details button. For each failed CAN interface, select it and click on the Details button to get a description of the failure. Use that information and the information in Appendix F, Troubleshooting and Common Questions, to troubleshoot the problem.
4 Begin to Use the NI-CAN Software This chapter helps you get started with the NI-CAN software for Windows NT. Using the NI-CAN Software The functions provided by the NI-CAN software are similar to those provided by many other device drivers. For example, NI-CAN has open, close, read, and write functions. NI-CAN provides two different levels of access to a CAN network: the CAN Network Interface Object and CAN Objects.
Chapter 4 Begin to Use the NI-CAN Software General Programming Considerations As you begin developing your Win32 NI-CAN application, remember the following points: • For your LabVIEW or BridgeVIEW application, you must use the NI-CAN LabVIEW functions in nican.llb. • For your C/C++ application, you must include the NI-CAN header file, nican.h, in your source code. • The NI-CAN software is accessed through the 32-bit DLL, nican.
A Uninstalling the Hardware and Software This appendix describes how to uninstall the PXI-8461 or PXI-8460 hardware and the NI-CAN software from Windows NT. Uninstalling the Hardware from Windows NT Because Windows NT 3.51 and 4.0 do not maintain hardware information for the board, you just need to physically remove your PXI hardware from your computer. To do so, shut down Windows NT, power off your PXI or CompactPCI chassis, remove any cables attached to your board, and physically remove the board.
Appendix A Uninstalling the Hardware and Software Complete the following steps to remove the NI-CAN software from Windows NT 4.0: 1. Select the Add/Remove Programs icon under Start»Settings» Control Panel. A dialog box similar to the one in Figure A-1 appears. This dialog box lists the software available for removal. Figure A-1. Add/Remove Programs Properties Dialog Box 2. Select the NI-CAN software you want to remove and click on the Add/Remove button.
B Cabling Requirements for PXI-8460 Low-Speed CAN This appendix describes the cabling requirements for the PXI-8460 hardware. Cables should be constructed to meet these requirements, as well as the requirements of the other CAN devices in the network. Connector Pinouts The PXI-8460 has DB-9 D-Sub connector(s). The 9-pin D-Sub follows the pinout recommended by CiA DS 102. Figure B-1 shows the pinout for this connector.
Appendix B Cabling Requirements for PXI-8460 Low-Speed CAN CAN_H and CAN_L are signal lines that carry the data on the CAN network. These signals should be connected using twisted-pair cable. The V+ and V– pins are used to supply bus power to the CAN physical layer if external power is required for the CAN physical layer. If internal power for the CAN physical layer is used, the V– pin serves as the reference ground for CAN_H and CAN_L.
Appendix B Cabling Requirements for PXI-8460 Low-Speed CAN Connecting pins 2 and 3 of a jumper configures the CAN physical layer to be powered internally (from the card). In this configuration, the V– signal serves as the reference ground for the isolated signals. Even if the CAN physical layer is powered internally, the fault-tolerant CAN transceiver still requires bus power to be supplied in order for it to monitor the power supply (battery) voltage.
Appendix B Cabling Requirements for PXI-8460 Low-Speed CAN Cable Specifications Cables should meet the physical medium requirements specified in ISO 11519-2, shown in Table B-2. Belden cable (3084A) meets all of those requirements, and should be suitable for most applications. Table B-2.
Appendix B Cabling Requirements for PXI-8460 Low-Speed CAN Low-Speed Termination Every device on the low-speed CAN network requires a termination resistor for each CAN data line: RRTH for CAN_H and RRTL for CAN_L. Figure B-4 shows termination resistor placement in a low-speed CAN network. Low-speed CAN Device RTL CAN_L Low-speed CAN Device RTH CAN_H RTL CAN_L RTH CAN_H Low-speed CAN Device RTL CAN_L RTH CAN_H CAN_H CAN_L Figure B-4.
Appendix B Cabling Requirements for PXI-8460 Low-Speed CAN Philips also recommends an individual device RTH and RTL termination of 500 Ω to 16 kΩ. The PXI-8460 board ships with mounted RTH and RTL values of 510 Ω ±5% per port. The PXI-8460 kit also includes a pair of 15 kΩ ±5% resistors for each port.
Appendix B Cabling Requirements for PXI-8460 Low-Speed CAN Replacing the Termination Resistors Follow these steps to replace the termination resistors, after you have determined the correct value in the previous section, Determining the Necessary Termination Resistance for Your Board. 1. Remove the termination resistors on your PXI-8460. Figure B-5 shows the location of the termination resistor sockets on a PXI-8460. 1 2 1 Port 1 Termination Resistors 2 Port 2 Termination Resistors Figure B-5.
Appendix B Cabling Requirements for PXI-8460 Low-Speed CAN 3. Insert the replacement resistors into the empty sockets. 4. Refer to Install the Hardware, in Chapter 2, Installation and Configuration, to complete the hardware installation. Cabling Example Figure B-7 shows an example of a cable to connect two low-speed CAN devices. For the internal power configuration, the V+ connection is required for the low-speed transceiver to operate as specified in the Philips data sheet.
C Cabling Requirements for PXI-8461 High-Speed CAN This appendix describes the cabling requirements for the PXI-8461 hardware. Cables should be constructed to meet these requirements and the requirements of the other CAN or DeviceNet devices in the network. Connector Pinouts Depending on the type of PXI board you are installing, it either has DB-9 D-Sub connector(s) or Combicon-style pluggable screw terminal connector(s). The 9-pin D-Sub follows the pinout recommended by CiA Draft Standard 102.
Appendix C Cabling Requirements for PXI-8461 High-Speed CAN V– CAN_L Shield CAN_H V+ The 5-pin Combicon-style pluggable screw terminal follows the pinout required by the DeviceNet Specification. Figure C-2 shows the pinout for this connector. 1 2 3 4 5 Figure C-2. Pinout for 5-Pin Combicon-Style Pluggable Screw Terminal CAN_H and CAN_L are signal lines that carry the data on the CAN network. These signals should be connected using twisted-pair cable.
Appendix C Cabling Requirements for PXI-8461 High-Speed CAN 3 4 2 1 5 1 2 Power Supply Jumper J6 Power Supply Jumper J5 3 4 Assembly Number Product Name 5 Serial Number Figure C-3. PXI-8461 Part Locator Diagram Connecting pins 1 and 2 of a jumper configures the CAN physical layer to be powered externally (from the bus cable power). In this configuration, the power must be supplied on the V+ and V– pins on the port connector.
Appendix C Cabling Requirements for PXI-8461 High-Speed CAN Figure C-4 shows how to configure your jumpers for internal or external power supplies. INT 3 2 EXT 1 a. Internal Power Mode INT 3 2 EXT 1 b. External Power Mode Figure C-4. Power Source Jumpers The CAN physical layer is still isolated regardless of the power source chosen.
Appendix C Cabling Requirements for PXI-8461 High-Speed CAN Cable Specifications Cables should meet the physical medium requirements specified in ISO 11898, shown in Table C-2. Belden cable (3084A) meets all of those requirements and should be suitable for most applications. Table C-2.
Appendix C Cabling Requirements for PXI-8461 High-Speed CAN Number of Devices The maximum number of devices that you can connect to a CAN port depends on the electrical characteristics of the devices on the network. If all of the devices meet the requirements of ISO 11898, at least 30 devices may be connected to the bus. Higher numbers of devices may be connected if the electrical characteristics of the devices do not degrade signal quality below ISO 11898 signal level specifications.
Appendix C Cabling Requirements for PXI-8461 High-Speed CAN Cabling Example Figure C-6 shows an example of a cable to connect two CAN devices. For the internal power configuration, no V+ connection is required. 5-Pin Combicon 9-Pin D-Sub Pin 4 Pin 7 CAN_H 120 Ω Pin 2 Pin 2 Pin 3 Pin 5 Pin 5 Pin 9 Pin 1 Pin 3 9-Pin D-Sub 5-Pin Combicon Pin 7 Pin 4 Pin 2 Pin 2 Pin 5 Pin 3 Pin 9 Pin 5 Pin 3 Pin 1 120 Ω CAN_L Shield V+ V– Power Connector V+ V– Figure C-6.
Cabling Requirements for PXI-8462 Dual-Speed CAN D The appendix describes the cabling requirements for the PXI-8462 hardware. Port Identification The PXI-8462 board provides a high-speed CAN port (port one), and a low-speed CAN port (port two). Port one of the PXI-8462 is identical to port one of the PXI-8461 one port and PXI-8461 two port boards. Port two of the PXI-8462 is identical to port two of the PXI-8460 two port board.
E RTSI Bus This appendix describes the RTSI interface on your PXI-846x series board. RTSI, PXI and CompactPCI Using PXI-compatible products with standard CompactPCI products is an important feature provided by the PXI Specification, Revision 1.0. If you use a PXI-compatible plug-in device in a standard CompactPCI chassis, you will be unable to use PXI-specific functions, but you can still use the basic plug-in device functions.
Appendix E RTSI Bus Table E-1. Pins Used By the PXI-846x Series Boards PXI-846x and NI-CAN for Windows NT PXI Pin Name PXI J2 Pin Number PXI Star PXI Trigger <0> PXI Trigger <1> PXI Trigger <2> PXI Trigger <3> PXI Trigger <4> PXI Trigger <5> PXI Trigger <7> D17 B16 A16 A17 A18 B18 C18 E16 E-2 ni.
F Troubleshooting and Common Questions This appendix describes how to troubleshoot problems and answers some common questions. Missing Board in the NI-CAN Configuration Utility The NI-CAN Configuration utility contains configuration information for all of the CAN hardware it is aware of that is installed in your system. To start the NI-CAN Configuration utility, double-click on the NI-CAN Configuration icon in the Control Panel: • Windows NT 3.
Appendix F Troubleshooting and Common Questions NI-CAN Software Problem Encountered This error occurs if the NI-CAN Diagnostic utility detects that it is unable to communicate correctly with the hardware using the installed NI-CAN software. If you get this error, shut down your computer, restart it, and run the NI-CAN Diagnostic utility again. If the problem persists, try reinstalling the NI-CAN software for Windows NT.
Appendix F Troubleshooting and Common Questions How do I connect a CAN cable to my CAN port? You will need to use an appropriate cable. For information about cabling requirements for National Instruments CAN hardware, refer to Appendix B, Cabling Requirements for PXI-8460 Low-Speed CAN or Appendix C, Cabling Requirements for PXI-8461 High-Speed CAN. Are interrupts required for the PXI-8460, PXI-8461, and PXI-8462? Yes, one interrupt per board is required.
G Specifications This appendix describes the physical characteristics of the hardware and the recommended operating conditions. PXI-8460 One Port and Two Port Dimensions............................................. PXI 3U Module 100 by 160 mm (3.94 by 6.30 in.) Power requirement ................................. +5 VDC 500 mA typical I/O connector.......................................... 9-pin D-Sub for each port Operating environment Component temperature.................. 0 to 55 °C Relative humidity.
Appendix G Specifications Operating environment Component temperature ..................0 to 55 °C Relative humidity ............................10% to 90%, noncondensing Storage environment Temperature.....................................–20 to 70 °C Relative humidity ............................10% to 90%, noncondensing PXI-8462 Two Port Dimensions .............................................PXI 3U Module 100 by 160 mm (3.94 by 6.30 in.) Power requirement..................................
Technical Support Resources H Web Support National Instruments Web support is your first stop for help in solving installation, configuration, and application problems and questions. Online problem-solving and diagnostic resources include frequently asked questions, knowledge bases, product-specific troubleshooting wizards, manuals, drivers, software updates, and more. Web support is available through the Technical Support section of ni.com NI Developer Zone The NI Developer Zone at ni.
Appendix H Technical Support Resources Worldwide Support National Instruments has offices located around the world to help address your support needs. You can access our branch office Web sites from the Worldwide Offices section of ni.com. Branch office Web sites provide up-to-date contact information, support phone numbers, e-mail addresses, and current events.
Glossary Prefix Meaning Value n- nano- 10 –9 m- milli- 10 –3 k- kilo- 10 3 M- mega- 10 6 ° degrees Ω ohms % percent A amperes ANSI American National Standards Institute b bits B bytes C Celsius CAN Controller Area Network CiA CAN in Automation DC direct current DLL dynamic link library FCC Federal Communications Commission ft feet HMI Human Machine Interface Hz hertz IEEE Institute of Electrical and Electronic Engineers in.
Glossary ISO International Standards Organization LED light-emitting diode m meters PC personal computer PCI peripheral component interconnect PCMCIA Personal Computer Memory Card International Association PLC Programmable Logic Controller RAM random-access memory resource hardware settings used by National Instruments CAN hardware, including an interrupt request level (IRQ) and an 8 KB physical memory range (such as D0000 to D1FFF hex) RTSI bus Real-Time System Integration Bus.
Index Numerics 9-Pin D-Sub connector high-speed CAN (figure), C-1 low-speed CAN (figure), B-1 B BridgeVIEW, 1-3, 4-2, F-3 bus power supply requirements high-speed CAN (table), C-4 low-speed CAN (table), B-3 C cable lengths high-speed CAN (table), C-5 cable specification high-speed CAN (table), C-5 low-speed CAN (table), B-4 cable termination high-speed CAN, C-6 cables connecting, 2-4 cabling example, high-speed CAN (figure), C-7 cabling example, low-speed CAN (figure), B-8 cabling requirements dual-speed
Index H determining necessary termination resistance, B-5 number of devices, B-4 port characteristics for bus-powered ports, G-2 power supply, B-2 power source jumpers (figure), B-3 preparing lead wires of, (figure), B-7 replacing termination resistors, B-7 termination resistor placement (figure), B-5 termination resistors, location of, (figure), B-7 hardware installing, 2-3 overview, 1-1 uninstalling from Windows NT, A-1 Hardware Problem Encountered (error message), F-2 high-speed CAN bus power supply r
Index PXI and CompactPCI and RTSI, E-1 PXI-8460 bus power supply requirements (table), B-3 cable specification (table), B-4 cabling example (figure), B-8 cabling requirements, B-1 checking configuration, 2-3 determining necessary termination resistance, B-5 fault reporting capabilities, E-1 installation, 2-3 interrupts required, F-3 number of boards configured, F-2 number of devices, B-4 parts locator diagram (figure), B-2 physical layer, 1-2 pinout for 9-Pin D-Sub connector (figure), B-1 port characterist
Index R connectors, 1-2 fault reporting capabilities, E-1 installation, 2-3 interrupts required, F-3 number of boards configured, F-2 number of devices, C-6 parts locator diagram (figure), C-3 physical layer, 1-2 pinout 5-Pin Combicon-style pluggable screw terminal (figure), C-2 pinout for 9-Pin D-Sub connector (figure), C-1 port characteristics, G-2 power source jumpers (figure), C-4 power supply, C-2 specifications, G-1 termination resistor placement (figure), C-6 transfer rates, 1-2 PXI-8462 cabling re
Index W troubleshooting, F-1 Hardware Problem Encountered (error message), F-2 Missing Board in the NI-CAN Configuration Utility (error message), F-1 NI-CAN Diagnostic utility failures, F-1 NI-CAN Software Problem Encountered (error message), F-2 troublshooting Missing Board in Diagnostic Utility (error message), F-2 Web support from National Instruments, E-1 what you need to get started, 1-1 Windows NT installing 3.51, 2-1 installing 4.