National Instruments NI-DNET manuel d'utilisation

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86

Aller à la page of

Un bon manuel d’utilisation

Les règles imposent au revendeur l'obligation de fournir à l'acheteur, avec des marchandises, le manuel d’utilisation National Instruments NI-DNET. Le manque du manuel d’utilisation ou les informations incorrectes fournies au consommateur sont à la base d'une plainte pour non-conformité du dispositif avec le contrat. Conformément à la loi, l’inclusion du manuel d’utilisation sous une forme autre que le papier est autorisée, ce qui est souvent utilisé récemment, en incluant la forme graphique ou électronique du manuel National Instruments NI-DNET ou les vidéos d'instruction pour les utilisateurs. La condition est son caractère lisible et compréhensible.

Qu'est ce que le manuel d’utilisation?

Le mot vient du latin "Instructio", à savoir organiser. Ainsi, le manuel d’utilisation National Instruments NI-DNET décrit les étapes de la procédure. Le but du manuel d’utilisation est d’instruire, de faciliter le démarrage, l'utilisation de l'équipement ou l'exécution des actions spécifiques. Le manuel d’utilisation est une collection d'informations sur l'objet/service, une indice.

Malheureusement, peu d'utilisateurs prennent le temps de lire le manuel d’utilisation, et un bon manuel permet non seulement d’apprendre à connaître un certain nombre de fonctionnalités supplémentaires du dispositif acheté, mais aussi éviter la majorité des défaillances.

Donc, ce qui devrait contenir le manuel parfait?

Tout d'abord, le manuel d’utilisation National Instruments NI-DNET devrait contenir:
- informations sur les caractéristiques techniques du dispositif National Instruments NI-DNET
- nom du fabricant et année de fabrication National Instruments NI-DNET
- instructions d'utilisation, de réglage et d’entretien de l'équipement National Instruments NI-DNET
- signes de sécurité et attestations confirmant la conformité avec les normes pertinentes

Pourquoi nous ne lisons pas les manuels d’utilisation?

Habituellement, cela est dû au manque de temps et de certitude quant à la fonctionnalité spécifique de l'équipement acheté. Malheureusement, la connexion et le démarrage National Instruments NI-DNET ne suffisent pas. Le manuel d’utilisation contient un certain nombre de lignes directrices concernant les fonctionnalités spécifiques, la sécurité, les méthodes d'entretien (même les moyens qui doivent être utilisés), les défauts possibles National Instruments NI-DNET et les moyens de résoudre des problèmes communs lors de l'utilisation. Enfin, le manuel contient les coordonnées du service National Instruments en l'absence de l'efficacité des solutions proposées. Actuellement, les manuels d’utilisation sous la forme d'animations intéressantes et de vidéos pédagogiques qui sont meilleurs que la brochure, sont très populaires. Ce type de manuel permet à l'utilisateur de voir toute la vidéo d'instruction sans sauter les spécifications et les descriptions techniques compliquées National Instruments NI-DNET, comme c’est le cas pour la version papier.

Pourquoi lire le manuel d’utilisation?

Tout d'abord, il contient la réponse sur la structure, les possibilités du dispositif National Instruments NI-DNET, l'utilisation de divers accessoires et une gamme d'informations pour profiter pleinement de toutes les fonctionnalités et commodités.

Après un achat réussi de l’équipement/dispositif, prenez un moment pour vous familiariser avec toutes les parties du manuel d'utilisation National Instruments NI-DNET. À l'heure actuelle, ils sont soigneusement préparés et traduits pour qu'ils soient non seulement compréhensibles pour les utilisateurs, mais pour qu’ils remplissent leur fonction de base de l'information et d’aide.

Table des matières du manuel d’utilisation

  • Page 1

    DeviceNet T NI-DNET TM User Manual NI-DNET User Manual May 2004 Edition Part Number 3703 75B-01[...]

  • Page 2

    Support Worldwide Technical Support and Product Info rmation ni.com National Instruments Corporate Headquarters 11500 North Mopac Expressway Aust in, 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 (Calgary) 403 274 9391, Ca nada ([...]

  • Page 3

    Important Information Warranty The CAN/DeviceNet hardware is warranted agai nst de fects in materials and wor kmanship fo r a period of one year from t he date of shipmen t, as evidenced by receipts or other document ation. Nati onal Instruments will, at its op tion, repair or re place equipment that pro ves to be defect ive during the warranty per[...]

  • Page 4

    © National Instruments Cor poration v NI-DNET User Manual Contents About This Manual How to Use the Manual Set ............. ............ .............. ........... .............. ........... ............ .... ix Conventions ............ ........... .............. ............ .............. ........... ........... .............. ............ ....[...]

  • Page 5

    Contents NI-DNET User Manual vi ni.com Programming Model for NI-DNET Appli cations ... ....................... ........... ........... ......... 3-6 Step 1. Open Objects ................ ........... .............. ............ ........... .............. ......... 3-8 Step 2. Start Communication .................... ........... ............ ........[...]

  • Page 6

    Contents © National Instruments Corpor ation vii NI-DNET User Manual Appendix B Cabling Requirements Connector Pinouts .............. ........... ............ .............. ........... ........... ............... ........... ....... B-1 Power Supply Infor mation for th e DeviceNet Ports ............. ........... .............. ............ .... B[...]

  • Page 7

    © National Instruments Corpor ation ix NI-DNET User Manual About This Manual This manual describes the basics of De viceNet and e xplains ho w to dev elop an application program, includ ing reference to examples. The user manual also contains hardware information. How to Use the Manual Set Use the installation guide to install and configure your D[...]

  • Page 8

    About This Manual NI-DNET User Manual x ni.com Conventions The following con v entions appear in this manual: » The » symbol leads you through nested menu items and dial og box options to a final action. The sequence File»Page Setup»Options directs you t o open the File menu , select the Page Setup item, and select Options from the last dialog [...]

  • Page 9

    About This Manual © National Instruments Corpor ation xi NI-DNET User Manual • LabVIEW online reference • OD V A website, www.odva.org • Microsoft W in32 Software Dev elopment Kit (SDK) onlin e help[...]

  • Page 10

    © National Instruments Corpor ation 1-1 NI-DNET User Manual 1 NI-DNET Software Over view The DeviceNet software provided w ith National Inst ruments DeviceNet hardware is called NI-DNET. This section provides an overview of the NI-DNET software. Installation and Configuration Measurement & Automa tion Explorer (MAX) Measurement & Automatio[...]

  • Page 11

    Chapter 1 NI-DNET Software Over view NI-DNET User Manual 1-2 ni.com Figure 1-1. NI-DNET Cards List ed in MAX Note Each card’ s name uses the word CAN, b ecause the Controller Area Network is the communication protocol upon which DeviceNet is b uilt. If your NI DeviceNet hardware is no t listed here, MAX is n ot configured to search for ne w de vi[...]

  • Page 12

    Chapter 1 NI-DNET Software Overview © National Instruments Corpor ation 1-3 NI-DNET User Manual Configure DeviceNet Port The physical port of each DeviceNet card is listed under the card’s name. To configure software properties, right-click the port and select Properties . In the Properties dialog, you assign an interface name to the port, such [...]

  • Page 13

    Chapter 1 NI-DNET Software Over view NI-DNET User Manual 1-4 ni.com NI-Spy This tool monitors f unction calls to the NI-DNET AP Is. This tool helps in debugging program ming problems in your application. To launch this tool, open the Software bran ch of the MAX Configuration tree, right- click NI Spy , and select Launch NI Spy . SimpleWho To provid[...]

  • Page 14

    Chapter 1 NI-DNET Software Overview © National Instruments Corpor ation 1-5 NI-DNET User Manual Much like any other object-oriented system, NI-DNET device dri ver objects use the concepts of class, instan ce, attribute, and service to describe their features. The NI-DNET device dri v er software pro vides three classes of objects: Interface Object[...]

  • Page 15

    Chapter 1 NI-DNET Software Over view NI-DNET User Manual 1-6 ni.com • Execute the De viceNet Set Attrib ute Single service on the remote device ( ncSetDnet Attribute ) • Send any other explicit message request to the remo te device and recei ve the associated explicit message response ( ncWriteDnetExplMsg , ncReadDnetExplMs g ) • Configure NI[...]

  • Page 16

    Chapter 1 NI-DNET Software Overview © National Instruments Corpor ation 1-7 NI-DNET User Manual Figure 1-2. NI-DNET Objec ts for a Netw ork of Three De vices Using NI-CAN with NI-DNET Controller Area Network (CAN) is the low-level protocol used for DeviceNet communications. In addition to the NI-DNET functi ons, your National Instruments DeviceNet[...]

  • Page 17

    Chapter 1 NI-DNET Software Over view NI-DNET User Manual 1-8 ni.com NI-DNET (default), or CAN fo r NI-CAN. When the CAN protocol is selected, you can access CAN tools in M AX, such as the Bus Monitor tool that displays CAN messa ges in their ra w form. In order to dev elop NI-CAN applications, yo u must install NI-CAN components such as documentati[...]

  • Page 18

    © National Instruments Corpor ation 2-1 NI-DNET User Manual 2 NI-DNET Hardware Over view T ypes of Hardware The National Instrument s DeviceNet hardware includes the PCI-CAN, PXI-8461, and PCMCIA-CAN. The PCI-CAN is software conf igurable and compliant with the PCI Local Bus Specification. It features the National Instruments MITE b us interface c[...]

  • Page 19

    Chapter 2 NI-DNET Hardware O verview NI-DNET User Manual 2-2 ni.com For more information on the DeviceNet physical layer and cables used to connect to your DeviceNet de vices, refer to Appendix B, Cabling Requirements . For connection to the network, the PCI-CAN, PXI-8461, and PCMCIA-CAN for DeviceNet pro vide combicon-style pluggable scre w termin[...]

  • Page 20

    © National Instruments Corpor ation 3-1 NI-DNET User Manual 3 Developing Y our Application This chapter explains how to develop an application using the NI-DNET functions. Accessing NI-DNET from your Programming Environment Applications can access the NI-DNET driver software by using either LabVIEW, LabWindows ™ /CVI ™ , Microsoft Visual C/C++[...]

  • Page 21

    Chapter 3 Developing Y our Application NI-DNET User Manual 3-2 ni.com LabWindows/CVI Within LabWindows/CVI, the N I-DNET function panel is located in Library»NI-DNET . Like o ther LabWindows/CVI functio n panels, the NI-DNET function panel provides help for each function and the ability to generate code. The reference for each NI-DNET function is [...]

  • Page 22

    Chapter 3 Developing Y our Application © National Instruments Corpor ation 3-3 NI-DNET User Manual Microsoft C/C++ The NI-DNET software supports Microsoft Visual C/ C++ version 6. The header file and library for V isual C/C++ 6 are in the MS Visual C folder of the NI-DNET folder . The typical path to this folder is Program FilesNational Instrume[...]

  • Page 23

    Chapter 3 Developing Y our Application NI-DNET User Manual 3-4 ni.com For C applications (f iles with .c extension), include the header file b y adding a #include to the beginning of your code, like th is: #include "nidnet.h" For C++ applications (f iles with .cpp extension), define _cplusplus before including the header , such as: #defin[...]

  • Page 24

    Chapter 3 Developing Y our Application © National Instruments Corpor ation 3-5 NI-DNET User Manual 2. Get the addresses for th e NI-DNET DLL functions y ou will use. Y our ap plication must use the Win32 GetProcAddress funct ion to get the addresses of the NI-DNET functions your appli cation needs. For each NI-DNET function used by y our applicati[...]

  • Page 25

    Chapter 3 Developing Y our Application NI-DNET User Manual 3-6 ni.com 3. Configure your application to de -reference the pointer to call an NI-DNET function, as illustrat ed by the follo wing code. NCTYPE_STATUS status; NCTYPE_OBJH MyObjh; status = (*PncOpenDnetIO) ("DNET0", &MyObjh); if (status < 0) { printf("ncOpenDnetIO fai[...]

  • Page 26

    Chapter 3 Developing Y our Application © National Instruments Corpor ation 3-7 NI-DNET User Manual Figure 3-1. General Programming Steps fo r an NI-DNET Application 1. Open Interface object 2. Open all I/O and Explicit Messaging (EM) objects required for your application 3. Call ncSetDriverAttr , if needed Start communication Y our DeviceNet Appli[...]

  • Page 27

    Chapter 3 Developing Y our Application NI-DNET User Manual 3-8 ni.com Step 1. Open Objects Before you use an NI-DNET object in yo ur application, you must configure and open it using either ncOpenDnetIntf , ncOpenDnetExplMsg , or ncOpenDnetIO . These open functions return a handle for use in all subsequent NI-DNET ca lls for that object. The ncOpen[...]

  • Page 28

    Chapter 3 Developing Y our Application © National Instruments Corpor ation 3-9 NI-DNET User Manual 2. Call the ncWaitForState function with the DesiredState parameter set to Read Available . This function waits for output data to be transmitted and for new input data to be recei ved. If your application is multitask ing, you might have other tasks[...]

  • Page 29

    Chapter 3 Developing Y our Application NI-DNET User Manual 3-10 ni.com Step 4. Stop Communication Before you exit your applicati on, stop communication to shut down DeviceNet connections to remote de vices. Use the Interface Object to call the ncOperateDnetIntf function with the Opcode parameter set to Stop . Step 5. Close Objects Before you exit y[...]

  • Page 30

    Chapter 3 Developing Y our Application © National Instruments Corpor ation 3-11 NI-DNET User Manual If you use two dif ferent applications on the same interface and open I/O connections to different de vices, you mu st set PollMode to either Scanned or Individual . Y ou cannot use PollMode of Automatic , because that requires all I/ O connections [...]

  • Page 31

    Chapter 3 Developing Y our Application NI-DNET User Manual 3-12 ni.com Y our ap plication code shoul d check the status returned from every NI-DNET function. If an error is detected, you should close all NI-DNET handles, then exit the ap plication. If a warning is detected, you can display a message for debugging purposes, or simply ig nore the war[...]

  • Page 32

    © National Instruments Corpor ation 4-1 NI-DNET User Manual 4 NI-DNET Programming T echniques This chapter describes various techniques to help yo u program your NI-DNET application. The techni ques include configuratio n of I/O connection timing, using I/O data (assemblies), using explicit messaging, and handling multiple devices. Configuring I/O[...]

  • Page 33

    Chapter 4 NI-DNET Programming T echniques NI-DNET User Manual 4-2 ni.com When you select an ExpPacketRate for an I/O connection, you must consider all I/O connections in your system. For example, although you might be able t o configure an ExpPacketRate of 3 ms for a single I/O connection, you cannot conf igure a 3 ms ExpPacketRate for 40 I/O conne[...]

  • Page 34

    Chapter 4 NI-DNET Programming T echniques © National Instruments Corpor ation 4-3 NI-DNET User Manual Polled I/O Polled I/O connecti ons use a separate poll command and response message for each device. The ov erall scheme th at NI-DNET uses to time polled I/O conn ections is determined by the PollMode parameter of ncOpenDnetIntf . This PollMode p[...]

  • Page 35

    Chapter 4 NI-DNET Programming T echniques NI-DNET User Manual 4-4 ni.com • If you set the PollMode parameter of ncOpenDnetIntf to Scanned , to configure scanned I/O you must specify the exact same ExpPacketRate when you open each of your strobed/polled I/O connections. Using this scheme, you must deter mine a v ali d ExpPacketRate for your De vic[...]

  • Page 36

    Chapter 4 NI-DNET Programming T echniques © National Instruments Corpor ation 4-5 NI-DNET User Manual background polling maintains overall network consistency because NI-DNET ev enly disperses all backgro und poll commands among multiple foreground cycles. In other w ords, all background pol l commands are not sent in quick succession and thus do [...]

  • Page 37

    Chapter 4 NI-DNET Programming T echniques NI-DNET User Manual 4-6 ni.com Since the poll commands are no t synchronized for individual polling, they can often be scattered relatively randomly . They can be ev enly interspersed for a while, then suddenly occur in bursts of back-to-back messages. Because of this inconsistency , you should use smaller [...]

  • Page 38

    Chapter 4 NI-DNET Programming T echniques © National Instruments Corpor ation 4-7 NI-DNET User Manual Change-of-State (COS) I/O Change-of-State I/O connections use the sam e timing scheme as cyclic I/O connections, but in addition to the ExpPacketRate , COS I/O sends data to the master whenever a change is detec t ed. For COS I/O, the c yclic tran[...]

  • Page 39

    Chapter 4 NI-DNET Programming T echniques NI-DNET User Manual 4-8 ni.com For strobed and polled I/O connect ions, determination o f a valid ExpPacketRate can be some wh at complex. If you hav e tro uble estimating an ExpPacketRate value for strobed/polled I/O, set the PollMode parameter of your initial call to ncOpenDnetIntf to Automatic . When you[...]

  • Page 40

    Chapter 4 NI-DNET Programming T echniques © National Instruments Corpor ation 4-9 NI-DNET User Manual • Some de vice vendors provide commen ts about I/O assemblies in an Electronic Data Sheet (EDS). The EDS file is a text f ile whose format is defined b y the DeviceNet Specif ication. • Ask the device’ s vendor if they ha ve fi lled out a De[...]

  • Page 41

    Chapter 4 NI-DNET Programming T echniques NI-DNET User Manual 4-10 ni.com By consulting the specifications for the Control Supervisor object and the A C/DC Drive ob ject, you can determine that the DeviceNet data type for Run Fwd and Fault Reset is BOOL (boolean), and the DeviceNet data type for Speed Reference is INT (16-bit signed integer). Acces[...]

  • Page 42

    Chapter 4 NI-DNET Programming T echniques © National Instruments Corpor ation 4-11 NI-DNET User Manual 4. Right-click on the ByteOffset terminal and select Create Consta nt , then enter 0 as the byte of fset. 5. Right-click on the 8[TF] in terminal and select Create Control . In the front panel control that appears, you can use t he button at inde[...]

  • Page 43

    Chapter 4 NI-DNET Programming T echniques NI-DNET User Manual 4-12 ni.com 2. Initialize the array to all zero. for (I = 0; I < 4; I++) OutputAsm [I] = 0; 3. Assume you hav e two boolean variables, RunFwd and ResetFault , of type NCTYPE_BOOL . For LabW indows/CVI, these v ariables could be accessed from front pan el buttons. The following code in[...]

  • Page 44

    Chapter 4 NI-DNET Programming T echniques © National Instruments Corpor ation 4-13 NI-DNET User Manual easiest way to execute the Set Attri bute Single service on a remote device is to use the NI-DNET ncSetDnetAttribute function. For a gi ven attrib ute of a DeviceNet device, you need the follo wing information to use the ncGetDnetAttribute or ncS[...]

  • Page 45

    Chapter 4 NI-DNET Programming T echniques NI-DNET User Manual 4-14 ni.com Specification defines the ov erall format of these services, in most cases their meaning and service data are ob ject-specif ic or vendor -specific. Unless your device requires such services and documents them in detail, you probably do not need them fo r your application. Y [...]

  • Page 46

    Chapter 4 NI-DNET Programming T echniques © National Instruments Corpor ation 4-15 NI-DNET User Manual For the C programming language, you can declare a struct ure typedef to store the parameters of ncOpenDnetIO , similar to the follo wing: typedef struct { NCTYPE_UINT32DeviceMacId; NCTYPE_CONN_TYPEConnectionType; NCTYPE_UINT32InputLength; NCTYPE_[...]

  • Page 47

    Chapter 4 NI-DNET Programming T echniques NI-DNET User Manual 4-16 ni.com Main Loop If your application essentially accesse s all DeviceNet input/outpu t data as a single image, you would normally wait for read data to becom e available on one of the input connections (such as a strobed I/O connection), read all input data, execute your application[...]

  • Page 48

    © National Instruments Corporation A-1 NI-D NET User Manual A DeviceNet Over view This appendix giv es an overvie w of DeviceNet. Histor y of DeviceNet The Controller Area Network (CAN) was de veloped in the early 1980s by Bosch, a leading automotiv e equi pment supplier . CAN was developed to ov ercome the limitations of con vention al automoti v[...]

  • Page 49

    Appendix A DeviceNet Overview NI-DNET User Manual A- 2 ni.com Physical Characteristics of DeviceNet The following list summarizes the physical characteristics of De viceN et. • T ru nkline-dropline cab ling—main tr unk cable with a drop cable for each device • Selectable baud rates of 125 K, 250 K, and 500 K • Support for up to 64 de vices?[...]

  • Page 50

    Appendix A DeviceNet Overview © National Instruments Corporation A-3 NI-D NET User Manual Figure A-1. Classe s of Geometric Shapes All squares belong to the same class because the y all have similar qualities, such as four equal sides. The term in stance refers to a specif ic instance of a gi ven class. For example, a blue square of four inches pe[...]

  • Page 51

    Appendix A DeviceNet Overview NI-DNET User Manual A- 4 ni.com Figure A-2. Object Modeling Used in DeviceNet Specification Every De viceNet device contains at l east one instance (instance o ne) of the Identity Object. The Iden tity Object instance defines attributes which describe the device, including the de vice’ s vendor , product name, and se[...]

  • Page 52

    Appendix A DeviceNet Overview © National Instruments Corporation A-5 NI-D NET User Manual In Figure A- 2, the term A pplication Object(s) refers to ob jects within th e device which are used to perform its fundamental behavior . For e x ample, within a photoelectric sensor , an inst ance of the Presence Sensing object (an Application Object) repre[...]

  • Page 53

    Appendix A DeviceNet Overview NI-DNET User Manual A- 6 ni.com The following tables describe the general format of DeviceNet e x plicit message requests and responses as th ey appear on the DeviceNet netw ork. The DeviceNet Specification defines a set of services supported in a common way by dif ferent devices. These common services include Reset, S[...]

  • Page 54

    Appendix A DeviceNet Overview © National Instruments Corporation A-7 NI-D NET User Manual The Get Attribute Single service obtain s the v alue of a specific attrib ute within a device’ s object, and the Set Attrib ute Single service sets the value of an attrib ute. These Get and Set se rvices are the most commonly used expl icit messaging servic[...]

  • Page 55

    Appendix A DeviceNet Overview NI-DNET User Manual A- 8 ni.com The DeviceNet Specification def ines four ty pes of master/slav e I/O conn ections: polled, bit strobed, change-of-state (COS), and c yclic. A slav e device can support at most one polled, one strobed, and one COS or cyclic connection (COS and c y clic connections cannot be used simultan[...]

  • Page 56

    Appendix A DeviceNet Overview © National Instruments Corporation A-9 NI-D NET User Manual slav e. This strobe command (request ) message is recei ved b y all slav e devices simultaneously and can be used to trigger simu ltaneous measurements (such as to take multiple photoelectric readings simultaneously). When a strobed slav e receiv es the strob[...]

  • Page 57

    Appendix A DeviceNet Overview NI-DNET User Manual A-10 ni.com The cyclic I/O connection enables a slav e device to send input data to its master at the configured EPR interv al. Y ou normal ly configure the EPR to be consistent with the rate at which the device measures its physical input sensors. For e xample, if a temperatur e sensor can take a m[...]

  • Page 58

    Appendix A DeviceNet Overview © National Instruments Corpor ation A-11 NI-DNET User Manual Figure A-5 shows an e xample of four COS/cyclic I/O connections. Figure A-5. COS/Cyclic I/O Example Assembly Objects One of the more important objects in th e DeviceNet Specification is the Assembly Object. There are two t ypes of Assembly Object: input asse[...]

  • Page 59

    Appendix A DeviceNet Overview NI-DNET User Manual A-12 ni.com Figure A-6. Input and Output Assemblies As a more specif ic example, consider a De viceNet phot oelectric sensor (photoeye) or a limit switch. These de vic es contain a single instance of a class called the Presence Sensing object. This instance has attributes for the Output Signal (on /[...]

  • Page 60

    Appendix A DeviceNet Overview © National Instruments Corpor ation A-13 NI-DNET User Manual As you can see, to use the data bytes contained in I/O messag es, it is important to know the format of a device’ s internal input and outp ut assemblies. Device Profiles T o provide interoperability for de vices of the sam e type, the DeviceNet Specificat[...]

  • Page 61

    © National Instruments Corporation B-1 NI-D NET User Manual B Cabling Requirements This appendix describes the cabling requirements for the hardware. Cables should be constructed to meet these requirements as well as the requirements of DeviceNet. De viceNet cabling requirem ents can be found in the DeviceNet Specification . Connector Pinouts The [...]

  • Page 62

    Appendix B Cab ling Requirements NI-DNET User Manual B- 2 ni.com Figure B-2 sho ws the end of a PCMCIA-CAN b us-powered cable. The arrow points to pin 1 of the 5-pin scre w terminal block. All of the signals on the 5-pin Combicon-style plug ga ble scre w terminal are connected directly to the corresponding pins on the 9-pin D-SUB following the pino[...]

  • Page 63

    Appendix B Cabling Requirements © National Instruments Corporation B-3 NI-D NET User Manual Power Supply Information for the DeviceNet Ports The bus must supply po wer to each De viceNet port. The bus po wer supply should be a DC power supply with an output of 10 V to 30 V . The DeviceNet physical layer is po wered from the bus using the V+ and V?[...]

  • Page 64

    Appendix B Cab ling Requirements NI-DNET User Manual B- 4 ni.com The PCI-CAN is shipped with this jumper set in the EXT position. In this position, the physical layer is powered from the b us (the V+ and V– pins on the Combicon connector). The jumper m ust be in this position for the Devic eN et interface to be compliant with the DeviceNet Specif[...]

  • Page 65

    Appendix B Cabling Requirements © National Instruments Corporation B-5 NI-D NET User Manual Figure B-6. PXI-8461 Parts Locator Diagram Connecting pins 1 and 2 of a jumper configures the PXI-8461 physical layer to be powered e xt ernally (from the bus cable power). In this configuration, the po wer must be supplied on the V+ and V– pin s on the p[...]

  • Page 66

    Appendix B Cab ling Requirements NI-DNET User Manual B- 6 ni.com Cable Specifications Cables should meet the requirem ents of the DeviceNet cable specification. DeviceNet cabling requirements can be found in the DeviceNet Specification . Belden cable (3084A) meets all of those requirements and should be suitable for most applicat ions. Cable Length[...]

  • Page 67

    Appendix B Cabling Requirements © National Instruments Corporation B-7 NI-D NET User Manual Cable T ermination The pair of signal wires (CAN_H and CAN_L) constitutes a transmission line. If the transmission line is not terminated, each signal change on the line causes reflections that ma y cause communication failures. Because communication flo ws[...]

  • Page 68

    Appendix B Cab ling Requirements NI-DNET User Manual B- 8 ni.com Cabling Example Figure B-8 shows an example of a cable to connect two D e viceNet devices. Figure B-8. Cabling Example 9-Pin D-Sub 9-Pin D-Sub CAN_H CAN_L GND V+ V+ V– V– 5-Pin Combicon 5-Pin Combicon Pin 7 Pin 4 Pin 7 Pin 4 Pin 2 Pin 2 Pin 5 Pin 3 Pin 9 Pin 5 Pin 3 Pin 1 Pin 2 Pi[...]

  • Page 69

    © National Instruments Corporation C-1 NI-D NET User Manual C T roubleshooting and Common Questions This appendix describes how to troubleshoot pro blems with the NI-DNET software and answers some common questions. T roubleshooting with the Measurement & Automation Explorer (MAX) MAX contains configuratio n info rmation for all CAN (De viceNet[...]

  • Page 70

    Appendix C T roubleshooting and Common Questions NI-DNET User Manual C- 2 ni.com T roubleshooting Self T est Failures The following topics explain common error messages generated by the Self T est in MAX. Application In Use This error occurs if you are running an applicat ion that is using the CAN card. The self test aborts to av oid adversely af f[...]

  • Page 71

    Appendix C T roubleshooting and Common Questions © National Instruments Corporation C-3 NI-D NET User Manual If the error continues af ter restart, uninstall NI-CAN (and NI-DNET) and then reinstall. NI-CAN Hardware Pr oblem Encountered This error occurs if the Self T est de tects a defect in the CAN hardware. If you get this error , write down the[...]

  • Page 72

    Appendix C T roubleshooting and Common Questions NI-DNET User Manual C- 4 ni.com Can I use multip le PCMCIA cards in one computer? Y es, b u t make sure there are enough free resources a vailable . Unlike PCI or PXI CAN cards, PCMCIA CAN cards cannot share resources, such as IRQs, with other devices. I hav e problems with my NI PCMCIA CAN card unde[...]

  • Page 73

    © National Instruments Corporation D-1 NI-DNET User Manual D Hardware Specifications This appendix describes the physical characteristics of the De viceNet hardware, along with the reco mmen ded operatin g conditions. PCI-CAN Series Dimensions................... ......................... . 10.67 by 17.46 cm (4.2 by 6.9 in .) Power requirement ....[...]

  • Page 74

    Appendix D Hardware Specifications NI-DNET User Manual D-2 ni.com Storage environment Ambient temperature ...................... . –20 to 70 °C Relative humidity ........ .............. ......5 to 90%, noncondensing PXI-CAN Series Dimensions .......... .......................... .........16.0 by 10.0 cm (6.3 by 3.9 in .) Power requirement ......[...]

  • Page 75

    Appendix D Hardw are Specifications © National Instruments Corporation D-3 N I-DNET User Manual Port Characteristics Bus power ... ......................... .................. 0 to 30 V, 40 mA typical, 100 mA maxim um CAN-H, CAN-L ........... ...................... .... –8 to +18 V, DC or peak, CATI Safety The NI-CAN hardware meets the requir em[...]

  • Page 76

    Appendix D Hardware Specifications NI-DNET User Manual D-4 ni.com CE Compliance This product meets the essential re quirements of applicable European Directi ves, as amended for CE marking, as follo ws: Low-Voltage Directive (safety) ..............73/23/EEC Electromagnetic Comp atibility Directive (EMC) ................. .............. ...... 89/33[...]

  • Page 77

    © National Instruments Corpor ation E-1 NI-DNET User Manual E T echnical Support and Professional Ser vices Visit the following sections of the National Instruments Web site at ni.com for technical support an d professional services: • Support —Online technical support resources at ni.com/support include the following: – Self-Help Resources [...]

  • Page 78

    © National Instruments Corporation G-1 N I-DNET User Manual Glossar y Symbol Pref ix V alue m milli 10 –3 k kilo 10 3 A A amperes A C alternating current actuator A device that uses electrical, m echanical, or other signals to change the v alue of an external, real-w orld varia b le. In the context of de vice networks, actuators are de vices tha[...]

  • Page 79

    Glossary NI-DNET User Manual G-2 ni.com B bB i t s background polling A polled I/O communication scheme i n which all polled slaves are grouped into two dif ferent communicatio n rates: a foreground rate and a slower background rate. bit strobed I/O Master/slav e I/O co nnection in which the master broadcasts a single stro be command to all strobed[...]

  • Page 80

    Glossary © National Instruments Corporation G-3 N I-DNET User Manual D DC direct current device A physical assembly , linked to a communicatio n line (cable), capable of communicating across the network acco rding to a protocol specification. device netw o rk Multi-drop digital comm unication network for sensors, actuators, and controllers. device[...]

  • Page 81

    Glossary NI-DNET User Manual G-4 ni.com H hex Hexadecimal Hz Hertz I I/O connection Connection used for exchange of physical input/output (sensor/activ ator) data, as well as other control-orien ted data. in. inches indi vidual polling A polled I/O communica tion scheme in which each polled sla ve communicates at its o wn indi vidual rate. instance[...]

  • Page 82

    Glossary © National Instruments Corporation G-5 N I-DNET User Manual master/slav e DeviceNet communication scheme in which a master device allocates connections to one or more slave de vices, and those slave de vices can only communicate with the master and not one another . MB Megab ytes of memory member Indi vidual data v alue within a DeviceNe [...]

  • Page 83

    Glossary NI-DNET User Manual G-6 ni.com P PC personal computer peer-to-peer Devic eN et communication sche me in which each device communicates as a peer and connections are estab lished among devices as needed. PLC Programmable Logic Controller polled I/O Master/slav e I/O conn ection in which the master send s a poll command to a slav e, then rec[...]

  • Page 84

    Glossary © National Instruments Corporation G-7 N I-DNET User Manual service An action performed on an instance to affect its beha vi or; the externally visible code of an object. W ithin NI-DNET , you use NI-DNET functions to ex ecu te services for objects. Also known as method and operation. strobed I/O See bit strobed I/O . V Vv o l t s VI V ir[...]

  • Page 85

    © National Instruments Corpor ation I-1 NI-DNET User Manual Index C CE compliance, D-4 change protocol, 1-3 common questi o ns, C-3 and troubleshooting, C-1 components left after NI -CAN software uninstall, C-4 determining NI-CAN softwa re version, C-3 how man y CAN interfaces can be configured, C-3 interrupts requir ed for NI-CAN cards, C-3 NI-CA[...]

  • Page 86

    Index NI-DNET User Manual I-2 ni.com L LabVIEW Real-T ime (R T) software configuration, 1-3 tools, 1-3 M MAX NI-DNET cards listed in MAX (figure), 1-2 tools launched from, 1-3 Measurement & Automation Explorer (MAX). See MAX memory resource conflict, troublesh ooting, C-2 missing CAN card, troubleshootin g, C-1 N National Instruments support an[...]