background image

©

 National Instruments Corporation

G-1

Getting Started with CAN for Windows NT

Glossary

Prefix

Meanings

Value

n-

nano-

10

– 9

m-

milli-

10

– 3

c-

centi-

10

–2

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

DLL

dynamic link library

DMA

direct memory access

EMI

electromagnetic interference

FCC

Federal Communications Commission

Hz

hertz

IEEE

Institute of Electrical and Electronic Engineers

Summary of Contents for CAN Series

Page 1: ...CAN Getting Started with Your CAN Hardware and the NI CAN Software for Windows NT Getting Started with CAN for Windows NT January 1998 Edition Part Number 321372C 01...

Page 2: ...36 Canada Ontario 905 785 0085 Canada Qu bec 514 694 8521 Denmark 45 76 26 00 Finland 09 725 725 11 France 01 48 14 24 24 Germany 089 741 31 30 Hong Kong 2645 3186 Israel 03 6120092 Italy 02 413091 Ja...

Page 3: ...RODUCTS OR INCIDENTAL OR CONSEQUENTIAL DAMAGES EVEN IF ADVISED OF THE POSSIBILITY THEREOF This limitation of the liability of National Instruments will apply regardless of the form of action whether i...

Page 4: ...l area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense Notices to User Changes or modifications not expressly approved by...

Page 5: ...Hardware Overview 1 2 NI CAN Software Overview 1 3 Optional Programming Tools 1 4 Chapter 2 Installation and Configuration Install the NI CAN Software 2 1 Installing for Windows NT 3 51 2 1 Installing...

Page 6: ...Lengths B 5 Maximum Number of Devices B 6 Cable Termination B 6 Cabling Example B 7 Appendix C Troubleshooting and Common Questions Missing CAN Interface in the NI CAN Configuration Utility C 1 Troubl...

Page 7: ...Figure B 2 Pinout for 5 Pin Combicon Style Pluggable Screw Terminal B 2 Figure B 3 PCMCIA CAN Cable B 2 Figure B 4 PCI CAN 2 Power Source Jumpers B 3 Figure B 5 Power Source Jumpers B 4 Figure B 6 Ter...

Page 8: ...liar with Windows NT How to Use the Manual Set Use this getting started manual to install and configure your CAN hardware and the NI CAN software for Windows NT Use the NI CAN User Manual for Windows...

Page 9: ...he hardware and software installation Chapter 4 Begin to Use the NI CAN Software helps you get started with the NI CAN software for Windows NT Appendix A Uninstall the Hardware and Software describes...

Page 10: ...ws NT tabs or LEDs bold italic Bold italic text denotes a note or caution CAN hardware CAN hardware refers to the PCI CAN PCI CAN 2 PCMCIA CAN and PCMCIA CAN 2 in cases where the material applies to a...

Page 11: ...CiA Draft Standard 102 Version 2 0 CAN Physical Layer for Industrial Applications DeviceNet Specification Volume 1 Version 2 0 Open DeviceNet Vendor Association Microsoft Windows NT User s Guide Micr...

Page 12: ...and briefly describes the CAN hardware and the NI CAN software for Windows NT How to Use This Manual Yes No Chapter 3 Chapter 4 User Manual and Programmer Reference Manual Write Application Program P...

Page 13: ...t meet the requirements in Appendix B Cabling Requirements CAN Hardware Overview The National Instruments CAN hardware supported under Windows NT includes the PCI CAN PCI CAN 2 PCMCIA CAN and PCMCIA C...

Page 14: ...e CAN hardware supports a wide variety of transfer rates up to 1 Mb s All of the CAN hardware uses the Intel 386EX embedded processor to implement time critical features provided by the NI CAN softwar...

Page 15: ...ls and a graphical editor for building custom user interfaces It also includes built in libraries for IEEE 488 2 VXI RS 232 control and plug in data acquisition When you order LabWindows CVI you also...

Page 16: ...or as a user that has Administrator privileges 2 Insert the NI CAN Software for Windows 95 and Windows NT Disk 1 into an unused drive 3 In the Run dialog box type the following x setup where x is the...

Page 17: ...x You can use this same applet to uninstall the NI CAN software at a later time Refer to Appendix A Uninstall the Hardware and Software for more information 4 Click on the Install button 5 Insert the...

Page 18: ...he setup is complete Install the CAN Hardware This section describes how to install your CAN hardware Install Your PCI CAN or PCI CAN 2 Caution Electrostatic discharge can damage several components on...

Page 19: ...sticking out of the opening on the back panel It might be a tight fit but do not force the interface into place Figure 2 3 shows how to install the PCI CAN into a PCI expansion slot Figure 2 3 Instal...

Page 20: ...from the package Note Because of restrictions imposed by Windows NT only one PCMCIA CAN or PCMCIA CAN 2 can be used in a given Windows NT system For example if you have a PCMCIA CAN card in your syste...

Page 21: ...nfiguration 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 clickin...

Page 22: ...use the Resources dialog box for the PCI CAN and you do not need to restart Windows NT When you install a PCMCIA CAN interface your computer assigns default resources to it Because the default resourc...

Page 23: ...k Interface Object CAN0 CAN1 and so on You use this name to refer to the physical port from within your NI CAN application To access online help for the NI CAN Configuration utility click on the Help...

Page 24: ...NT 3 51 Double click on the NI CAN Diagnostic icon in the NI CAN Software for Windows NT group of the Program Manager Windows NT 4 0 or later Select Start Programs NI CAN Software for Windows NT NI C...

Page 25: ...he 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...

Page 26: ...faces would provide CAN0 through CAN3 You can use this object to transmit and receive entire CAN frames For example to transmit a CAN frame you would specify the outgoing arbitration ID frame type dat...

Page 27: ...in your source code The NI CAN software is accessed through the 32 bit DLL nican dll either by linking with one of the language interfaces provided with the NI CAN software or by using direct DLL entr...

Page 28: ...mputer and physically remove the CAN interfaces Uninstalling the NI CAN Software from Windows NT Note The following instructions apply to Windows NT 4 0 only If you are using Windows NT 3 51 refer to...

Page 29: ...e 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 The uninstall program runs and removes all folders utilities device d...

Page 30: ...nly 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 direc...

Page 31: ...r DeviceNet devices in the network Connector Pinouts Depending on the type of CAN interface you are installing the CAN hardware either has DB 9 D Sub connectors s or Combicon style pluggable screw ter...

Page 32: ...e 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 gro...

Page 33: ...ation of these jumpers is shown in Figure B 4 Figure B 4 PCI CAN 2 Power Source Jumpers Connecting pins 1 and 2 of a jumper configures the CAN physical layer to be powered externally from the bus cabl...

Page 34: ...D Sub and the 5 pin Combicon style connectors are still connected The V pins serves as the reference ground for the isolated signals The CAN physical layer is isolated from the computer in both types...

Page 35: ...viceNet specifications ISO 11898 specifies 40 m total cable length with a maximum stub length of 0 3 m for a bit rate of 1 Mb s The ISO 11898 specification says that significantly longer cable lengths...

Page 36: ...ansmission line is not terminated each signal change on the line causes reflections that may cause communication failures Because communication flows both ways on the CAN bus CAN requires that both en...

Page 37: ...of a cable to connect two CAN devices For the internal power configuration no V connection is required Figure B 7 Cabling Example 9 Pin D Sub 9 Pin D Sub CAN_H CAN_L GND V V V V 5 Pin Combicon 5 Pin...

Page 38: ...l If the CAN interface you are looking for is not listed under NI CAN Configuration the CAN interface is not properly installed For National Instruments CAN hardware this means that the interface is n...

Page 39: ...listed in the NI CAN Diagnostic utility check to see if the NI CAN Configuration utility has detected the hardware For more information refer to the Missing CAN Interface in the NI CAN Configuration...

Page 40: ...s section in this appendix for specific information about what might cause the NI CAN Diagnostic utility to fail If you have already completed the troubleshooting steps fill out the forms in Appendix...

Page 41: ...u 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 rem...

Page 42: ...and PCI CAN 2 Hardware Characteristics Characteristic Specification Dimensions 10 67 by 17 46 cm 4 2 by 6 88 in Power Requirement 5 VDC 775 mA typical I O Connector 9 pin D Sub for each port standard...

Page 43: ...ent 500 mA typical I O Connector Cable with 9 pin D Sub and 5 pin Combicon style pluggable screw terminal for each port Operating Environment Component Temperature Relative Humidity 0 to 55 C 10 to 90...

Page 44: ...ystems does not answer your questions we offer fax and telephone support through our technical support centers which are staffed by applications engineers Electronic Services Bulletin Board Support Na...

Page 45: ...truments office in your country contact the source from which you purchased your software to obtain support Country Telephone Fax Australia 03 9879 5166 03 9879 6277 Austria 0662 45 79 90 0 0662 45 79...

Page 46: ...___ Instruments used _________________________________________________________________ _______________________________________________________________________________ National Instruments hardware pro...

Page 47: ...NI CAN driver version open the MS DOS Prompt and change to the NI CAN installation directory usually c nican At the prompt enter the following command candiag v Version Information from the NI CAN Dia...

Page 48: ...____________________________________ _______________________________________________________________________________ _______________________________________________________________________________ ___...

Page 49: ...s 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...

Page 50: ...ization m meters PC personal computer PCI peripheral component interconnect PCMCIA Personal Computer Memory Card International Association RAM random access memory resource hardware settings used by N...

Reviews: