National Instruments NI-DNET manual

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

Ir a la página of

Buen manual de instrucciones

Las leyes obligan al vendedor a entregarle al comprador, junto con el producto, el manual de instrucciones National Instruments NI-DNET. La falta del manual o facilitar información incorrecta al consumidor constituyen una base de reclamación por no estar de acuerdo el producto con el contrato. Según la ley, está permitido adjuntar un manual de otra forma que no sea en papel, lo cual últimamente es bastante común y los fabricantes nos facilitan un manual gráfico, su versión electrónica National Instruments NI-DNET o vídeos de instrucciones para usuarios. La condición es que tenga una forma legible y entendible.

¿Qué es un manual de instrucciones?

El nombre proviene de la palabra latina “instructio”, es decir, ordenar. Por lo tanto, en un manual National Instruments NI-DNET se puede encontrar la descripción de las etapas de actuación. El propósito de un manual es enseñar, facilitar el encendido o el uso de un dispositivo o la realización de acciones concretas. Un manual de instrucciones también es una fuente de información acerca de un objeto o un servicio, es una pista.

Desafortunadamente pocos usuarios destinan su tiempo a leer manuales National Instruments NI-DNET, sin embargo, un buen manual nos permite, no solo conocer una cantidad de funcionalidades adicionales del dispositivo comprado, sino también evitar la mayoría de fallos.

Entonces, ¿qué debe contener el manual de instrucciones perfecto?

Sobre todo, un manual de instrucciones National Instruments NI-DNET debe contener:
- información acerca de las especificaciones técnicas del dispositivo National Instruments NI-DNET
- nombre de fabricante y año de fabricación del dispositivo National Instruments NI-DNET
- condiciones de uso, configuración y mantenimiento del dispositivo National Instruments NI-DNET
- marcas de seguridad y certificados que confirmen su concordancia con determinadas normativas

¿Por qué no leemos los manuales de instrucciones?

Normalmente es por la falta de tiempo y seguridad acerca de las funcionalidades determinadas de los dispositivos comprados. Desafortunadamente la conexión y el encendido de National Instruments NI-DNET no es suficiente. El manual de instrucciones siempre contiene una serie de indicaciones acerca de determinadas funcionalidades, normas de seguridad, consejos de mantenimiento (incluso qué productos usar), fallos eventuales de National Instruments NI-DNET y maneras de solucionar los problemas que puedan ocurrir durante su uso. Al final, en un manual se pueden encontrar los detalles de servicio técnico National Instruments en caso de que las soluciones propuestas no hayan funcionado. Actualmente gozan de éxito manuales de instrucciones en forma de animaciones interesantes o vídeo manuales que llegan al usuario mucho mejor que en forma de un folleto. Este tipo de manual ayuda a que el usuario vea el vídeo entero sin saltarse las especificaciones y las descripciones técnicas complicadas de National Instruments NI-DNET, como se suele hacer teniendo una versión en papel.

¿Por qué vale la pena leer los manuales de instrucciones?

Sobre todo es en ellos donde encontraremos las respuestas acerca de la construcción, las posibilidades del dispositivo National Instruments NI-DNET, el uso de determinados accesorios y una serie de informaciones que permiten aprovechar completamente sus funciones y comodidades.

Tras una compra exitosa de un equipo o un dispositivo, vale la pena dedicar un momento para familiarizarse con cada parte del manual National Instruments NI-DNET. Actualmente se preparan y traducen con dedicación, para que no solo sean comprensibles para los usuarios, sino que también cumplan su función básica de información y ayuda.

Índice de manuales de instrucciones

  • Página 1

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

  • Página 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 ([...]

  • Página 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[...]

  • Página 4

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

  • Página 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 .................... ........... ............ ........[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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 [...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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 [...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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++[...]

  • Página 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 [...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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 [...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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 [...]

  • Página 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 [...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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 [...]

  • Página 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_[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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?[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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 /[...]

  • Página 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[...]

  • Página 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 [...]

  • Página 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[...]

  • Página 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?[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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 ....[...]

  • Página 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 ......[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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 [...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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 [...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]

  • Página 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[...]