CAN Getting Started with Your PXI-8461 or PXI-8460 and the NI-CAN™ Software for Windows 98/95 PXI-8461 or PXI-8460 and NI-CAN for Windows 98/95 September 1999 Edition Part Number 322005B-01
Worldwide Technical Support and Product Information www.natinst.
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/DOC Radio Frequency Interference Class A Compliance This equipment generates and uses radio frequency energy and, if not installed and used in strict accordance with the instructions in this manual, may cause interference to radio and television reception. Classification requirements are the same for the Federal Communications Commission (FCC) and the Canadian Department of Communications (DOC).
Contents About This Manual How To Use the Manual Set..........................................................................................ix Conventions ...................................................................................................................x Related Documentation..................................................................................................x Chapter 1 Introduction What You Need to Get Started ................................................................
Contents Appendix B Cabling Requirements for PXI-8461 High-Speed CAN Connector Pinouts ......................................................................................................... B-1 Power Supply Information for the High-Speed CAN Ports .......................................... B-2 Bus Power Supply Requirements .................................................................................. B-4 Cable Specifications ...........................................................................
Contents Appendix F Technical Support Resources Glossary Figures Figure 2-1. Figure 2-2. Figure 2-3. Figure 2-4. Figure 2-5. Add/Remove Programs Properties Dialog Box.....................................2-1 Installing the PXI Hardware..................................................................2-3 Device Manager Shows PXI-8461 That Is Working Properly..............2-4 Device Manager Shows PXI-8461 That Is Not Working Properly.......2-5 NI-CAN Hardware Settings Dialog Box..............................
Contents Table C-1. Table C-2. Power Requirements for the Low-Speed CAN Physical Layer for Bus-Powered Versions.......................................................................... C-3 ISO 11519-2 Specifications for Characteristics of a CAN_H and CAN_L Pair of Wires ........................................................................... C-4 PXI-8461 or PXI-8460 and NI-CAN for Windows 98/95 viii www.natinst.
About This Manual This manual contains instructions to help you install and configure your PXI-8461 (one port and two port) or PXI-8460 (one port or two port) and the NI-CAN software for Windows 98/95. This manual uses PXI-8461 or PXI-8460 to refer to both the one port and two port versions of the boards. This manual assumes that you are already familiar with Windows.
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 • CiA Draft Standard 102, Version 2.0, CAN Physical Layer for Industrial Applications • CompactPCI Specification, Revision 2.0, PCI Industrial Computers Manufacturer’s Group. • DeviceNet Specification, Version 2.0, Open DeviceNet Vendor Association • Microsoft Windows 95/98 user’s guide, Microsoft Corporation • PXI Specification, Revision 1.
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 98/95, and describes optional equipment you can order.
Chapter 1 Introduction 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. The CAN physical layer on the PXI-8461 and PXI-8460 can be powered either internally (from the board) or externally (from the bus cable power).
Chapter 1 Introduction • Configuration utility • Language interface libraries for Microsoft Visual C/C++ 2.0 or later, LabWindows/CVI 4.0 or later, and LabVIEW 4.0 or later • Example programs that use NI-CAN functions Optional Programming Tools Your kit includes the NI-CAN software for Windows 98/95. In addition, you can order the LabWindows/CVI, LabVIEW, or BridgeVIEW software from National Instruments.
Installation and Configuration 2 This chapter describes how to install and configure the NI-CAN software for Windows 98/95 and the PXI-8461 or PXI-8460 hardware. Install the NI-CAN Software Install the NI-CAN software before you install your hardware. 1. Select Start»Settings»Control Panel. 2. 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.
Chapter 2 Installation and Configuration 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. 3. Click on the Install button. 4. When prompted, insert the NI-CAN Software for Windows 95/98/NT (Disk 1 of 3), and click on the Next button to proceed. 5. The setup wizard guides you through the necessary steps to install the NI-CAN software.
Chapter 2 Installation and Configuration 4. Touch a metal part on your chassis to discharge any static electricity that might be on your clothes or body. 5. Insert the PXI board into the selected 5 V slot. Use the injector/ejector handle to fully inject the device into place. Figure 2-2 shows how to install the PXI board into a PXI or CompactPCI chassis.
Chapter 2 Installation and Configuration If the New Hardware Found dialog box does not appear when you restart Windows, refer to the section Device Manager Problems in Appendix D, Troubleshooting and Common Questions. Connect the Cables After you have installed your board, connect the CAN cables to your PXI board. Because exact cabling requirements vary for each application, National Instruments does not provide cables.
Chapter 2 Installation and Configuration Figure 2-4. Device Manager Shows PXI-8461 That Is Not Working Properly To configure a particular interface, double-click on that interface in the list of installed interfaces below National Instruments CAN Interfaces. The Resources tab provides information about the hardware resources assigned to the CAN interface. Use the Resources tab to examine the assigned resources to verify that there are no conflicts. The Conflicting Device List lists any conflicts.
Chapter 2 Installation and Configuration Each port of the PXI-8461 or PXI-8460 is configured from the same tab. Use the drop-down box nearest the top of the tab to select the physical port number to configure. For each port, use the Name drop-down box to select the name for the CAN Network Interface Object (CAN0, CAN1, and so on). You use this name to refer to the physical port from within your NI-CAN application.
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 under Start»Programs»National Instruments CAN.
Chapter 3 Verify the Installation and Common Questions, to troubleshoot the problem. Troubleshooting information is also available in the online help for the NI-CAN Diagnostic utility, which you can access by clicking on the Help button. PXI-8461 or PXI-8460 and NI-CAN for Windows 98/95 3-2 www.natinst.
Begin to Use the NI-CAN Software 4 This chapter helps you get started with the NI-CAN software for Windows 98/95. 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.
Uninstalling the Hardware and Software A This appendix describes how to uninstall the PXI hardware and the NI-CAN software from Windows 98/95. Uninstalling the Hardware from Windows 98/95 Before physically removing the board from the computer, you must remove the hardware information from the Windows Device Manager. To remove the hardware information from Windows 98/95, complete the following steps: 1. Select Start»Settings»Control Panel. 2. Double-click on the System icon. 3.
Appendix A Uninstalling the Hardware and Software Figure A-1. Selecting an Interface to Remove from Windows 98/95 After you remove the appropriate hardware information from the Device Manager, you should shut down Windows, power off your PXI or CompactPCI chassis, remove any cables attached to your board, and physically remove the board from your computer. PXI-8461 or PXI-8460 and NI-CAN for Windows 98/95 A-2 www.natinst.
Appendix A Uninstalling the Hardware and Software Uninstalling the NI-CAN Software from Windows 98/95 Before uninstalling the NI-CAN software, you should remove all PXI-8461 or PXI-8460 boards from your computer, as explained in the previous section. Complete the following steps to remove the NI-CAN software: 1. Select the Add/Remove Programs icon under Start»Settings» Control Panel. A dialog box similar to the one in Figure A-2 appears. This dialog box lists the software available for removal.
Appendix A Uninstalling the Hardware and Software The uninstall program removes only items that the installation program installed. If you add anything to a directory that was created by the installation program, the uninstall program does not delete that directory because the directory is not empty after the uninstallation. You must remove any remaining components yourself. If you want to reinstall the hardware and software, refer to Chapter 2, Installation and Configuration.
B Cabling Requirements for PXI-8461 High-Speed CAN This appendix describes the cabling requirements for the 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 has either 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 B 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 B-2 shows the pinout for this connector. 1 2 3 4 5 Figure B-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 B 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 B-3. PXI-8461 Parts 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 B Cabling Requirements for PXI-8461 High-Speed CAN Figure B-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 B-4. Power Source Jumpers The CAN physical layer is still isolated regardless of the power source chosen.
Appendix B Cabling Requirements for PXI-8461 High-Speed CAN Cable Specifications Cables should meet the physical medium requirements specified in ISO 11898, 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-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 B Cabling Requirements for PXI-8461 High-Speed CAN Cabling Example Figure B-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 Pin 2 Pin 2 Pin 3 Pin 5 Pin 5 Pin 9 Pin 1 Pin 3 CAN_H 120Ω 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 B-6.
C 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 C-1 shows the pinout for this connector.
Appendix C 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 C Cabling Requirements for PXI-8460 Low-Speed CAN 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. 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.
Appendix C 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 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-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 C-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 Low-speed CAN Device RTH CAN_H RTL CAN_L RTH CAN_H CAN_H CAN_L Figure C-4.
Appendix C Cabling Requirements for PXI-8460 Low-Speed CAN values of 510 Ω ±5% per port. The PXI-8460 kit also includes a pair of 15 kΩ ±5% resistors for each port.
Appendix C Cabling Requirements for PXI-8460 Low-Speed CAN 1 2 1 Port 1 Termination Resistors 2 Port 2 Termination Resistors Figure C-5. Location of Termination Resistors on a PXI-8460 2. Cut and bend the lead wires of the resistors you want to install. Refer to Figure C-6. 0.5 in (13 mm) 0.165 in (4 mm) Figure C-6. Preparing Lead Wires of Replacement Resistors 3. Insert the replacement resistors into the empty sockets. 4.
Appendix C Cabling Requirements for PXI-8460 Low-Speed CAN Cabling Example Figure C-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.
Troubleshooting and Common Questions D This appendix describes how to troubleshoot problems and answers some common questions. Device Manager Problems The Windows Device Manager contains configuration information for all of the hardware in your system. To start the Windows Device Manager, double-click on the System icon under Start»Settings»Control Panel. In the System Properties box that appears, select the Device Manager tab and click on the View devices by type radio button at the top of the tab.
Appendix D Troubleshooting and Common Questions To fix the problem, complete the following steps: 1. Select Start»Settings»Control Panel. 2. Double-click on the System icon to display the System Properties dialog box for the computer. 3. Click on the Device Manager tab at the top of the System Properties sheet to bring up the Device Manager property page. Make sure the View devices by type button at the top of the Device Manager page is selected. 4.
Appendix D Troubleshooting and Common Questions Problem Shown in Device Manager If a PXI-8461or PXI-8640 is not working properly, its icon has a circled X or exclamation mark (!) overlaid on it, as shown in Figure D-1. Figure D-1. Device Manager Shows PXI-8461 That Is Not Working Properly This problem can occur for several reasons. If you encounter this problem, the Device Manager should list an error code that indicates why the problem occurred.
Appendix D Troubleshooting and Common Questions Code 12: Your interface was not assigned a physical memory range. If your computer does not have 8 KB of available memory, Windows might configure your interface without a physical memory assignment. The NI-CAN software cannot function without 8 KB of physical memory. Another way to verify this problem is to look at the Resource settings list on the Resources tab to verify that the interface was not assigned a Memory Range.
Appendix D Troubleshooting and Common Questions Diagnostic Utility Failures The following sections explain common error messages generated by the NI-CAN Diagnostic utility. Memory Resource Conflict This error occurs if the memory resources assigned to a board conflict with the memory resources being used by other hardware in the system. Resource conflicts typically occur when your system contains legacy hardware that uses resources that have not been reserved properly with the Device Manager.
Appendix D Troubleshooting and Common Questions Missing Board in Diagnostic Utility If a board is physically installed in your system, but is not listed in the NI-CAN Diagnostic utility, check the Windows Device Manager to see if Windows has detected the board. For more information, refer to the Device Manager Problems section, earlier in this appendix. Hardware Problem Encountered This error occurs if the NI-CAN Diagnostic utility detects a defect in the hardware.
Appendix D Troubleshooting and Common Questions What do I do if my board is listed in the Windows Device Manager with a circled X or exclamation point (!) overlaid on it? Refer to the Problem Shown in Device Manager section of this appendix for specific information about what might cause this problem. If you have already completed the troubleshooting steps, contact National Instruments.
E Specifications This appendix describes the physical characteristics of the hardware and the recommended operating conditions. PXI-8461 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..........................................
Appendix E 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 High-Speed CAN Port Characteristics for Bus-Powered Ports Power requirement..................................10–30 V, 40 mA typical 100 mA maximum Isolation ............................
Technical Support Resources F This appendix describes the comprehensive resources available to you in the Technical Support section of the National Instruments Web site and provides technical support telephone numbers for you to use if you have trouble connecting to our Web site or if you do not have internet access. NI Web Support To provide you with immediate answers and solutions 24 hours a day, 365 days a year, National Instruments maintains extensive online technical support resources.
Appendix F Technical Support Resources Software-Related Resources • Instrument Driver Network—A library with hundreds of instrument drivers for control of standalone instruments via GPIB, VXI, or serial interfaces. You also can submit a request for a particular instrument driver if it does not already appear in the library. • Example Programs Database—A database with numerous, non-shipping example programs for National Instruments programming environments.
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 AC alternating current ANSI American National Standards Institute AT-compatible compatible with the 16-bit Industry Standard Architecture b bits B bytes C Celsius CAN Controller Area Network CiA CAN in Automation DC direct current DLL dynamic link library DMA direct memory access EMI electromagnetic interference FCC Federal Communicatio
Glossary HMI Human Machine Interface Hz hertz IEEE Institute of Electrical and Electronic Engineers in.