DeviceNetTNI-DNETTM User ManualNI-DNET User ManualMay 2004 EditionPart Number 370375B-01
© National Instruments Corporation 1-1 NI-DNET User Manual1NI-DNET Software OverviewThe DeviceNet software provided with National Instruments DeviceNe
Chapter 1 NI-DNET Software OverviewNI-DNET User Manual 1-2 ni.comFigure 1-1. NI-DNET Cards Listed in MAXNoteEach card’s name uses the word CAN, becau
Chapter 1 NI-DNET Software Overview© National Instruments Corporation 1-3 NI-DNET User ManualConfigure DeviceNet PortThe physical port of each DeviceN
Chapter 1 NI-DNET Software OverviewNI-DNET User Manual 1-4 ni.comNI-SpyThis tool monitors function calls to the NI-DNET APIs. This tool helps in debug
Chapter 1 NI-DNET Software Overview© National Instruments Corporation 1-5 NI-DNET User ManualMuch like any other object-oriented system, NI-DNET devic
Chapter 1 NI-DNET Software OverviewNI-DNET User Manual 1-6 ni.com• Execute the DeviceNet Set Attribute Single service on the remote device (ncSetDnetA
Chapter 1 NI-DNET Software Overview© National Instruments Corporation 1-7 NI-DNET User ManualFigure 1-2. NI-DNET Objects for a Network of Three Devic
Chapter 1 NI-DNET Software OverviewNI-DNET User Manual 1-8 ni.comNI-DNET (default), or CAN for NI-CAN. When the CAN protocol is selected, you can acce
© National Instruments Corporation 2-1 NI-DNET User Manual2NI-DNET Hardware OverviewTypes of HardwareThe National Instruments DeviceNet hardware inclu
Chapter 2 NI-DNET Hardware OverviewNI-DNET User Manual 2-2 ni.comFor more information on the DeviceNet physical layer and cables used to connect to yo
SupportWorldwide Technical Support and Product Informationni.comNational Instruments Corporate Headquarters11500 North Mopac Expressway Austin, Texas
© National Instruments Corporation 3-1 NI-DNET User Manual3Developing Your ApplicationThis chapter explains how to develop an application using the NI
Chapter 3 Developing Your ApplicationNI-DNET User Manual 3-2 ni.comLabWindows/CVIWithin LabWindows/CVI, the NI-DNET function panel is located in Libra
Chapter 3 Developing Your Application© National Instruments Corporation 3-3 NI-DNET User ManualMicrosoft C/C++The NI-DNET software supports Microsoft
Chapter 3 Developing Your ApplicationNI-DNET User Manual 3-4 ni.comFor C applications (files with .c extension), include the header file by adding a #
Chapter 3 Developing Your Application© National Instruments Corporation 3-5 NI-DNET User Manual2. Get the addresses for the NI-DNET DLL functions you
Chapter 3 Developing Your ApplicationNI-DNET User Manual 3-6 ni.com3. Configure your application to de-reference the pointer to call an NI-DNET functi
Chapter 3 Developing Your Application© National Instruments Corporation 3-7 NI-DNET User ManualFigure 3-1. General Programming Steps for an NI-DNET A
Chapter 3 Developing Your ApplicationNI-DNET User Manual 3-8 ni.comStep 1. Open ObjectsBefore you use an NI-DNET object in your application, you must
Chapter 3 Developing Your Application© National Instruments Corporation 3-9 NI-DNET User Manual2. Call the ncWaitForState function with the DesiredSta
Chapter 3 Developing Your ApplicationNI-DNET User Manual 3-10 ni.comStep 4. Stop CommunicationBefore you exit your application, stop communication to
Important InformationWarrantyThe CAN/DeviceNet hardware is warranted against defects in materials and workmanship for a period of one year from the d
Chapter 3 Developing Your Application© National Instruments Corporation 3-11 NI-DNET User ManualIf you use two different applications on the same inte
Chapter 3 Developing Your ApplicationNI-DNET User Manual 3-12 ni.comYour application code should check the status returned from every NI-DNET function
© National Instruments Corporation 4-1 NI-DNET User Manual4NI-DNET Programming TechniquesThis chapter describes various techniques to help you program
Chapter 4 NI-DNET Programming TechniquesNI-DNET User Manual 4-2 ni.comWhen you select an ExpPacketRate for an I/O connection, you must consider all I/
Chapter 4 NI-DNET Programming Techniques© National Instruments Corporation 4-3 NI-DNET User ManualPolled I/OPolled I/O connections use a separate poll
Chapter 4 NI-DNET Programming TechniquesNI-DNET User Manual 4-4 ni.com• If you set the PollMode parameter of ncOpenDnetIntf to Scanned, to configure s
Chapter 4 NI-DNET Programming Techniques© National Instruments Corporation 4-5 NI-DNET User Manualbackground polling maintains overall network consist
Chapter 4 NI-DNET Programming TechniquesNI-DNET User Manual 4-6 ni.comSince the poll commands are not synchronized for individual polling, they can of
Chapter 4 NI-DNET Programming Techniques© National Instruments Corporation 4-7 NI-DNET User ManualChange-of-State (COS) I/OChange-of-State I/O connect
Chapter 4 NI-DNET Programming TechniquesNI-DNET User Manual 4-8 ni.comFor strobed and polled I/O connections, determination of a valid ExpPacketRate c
© National Instruments Corporation v NI-DNET User ManualContentsAbout This ManualHow to Use the Manual Set ...
Chapter 4 NI-DNET Programming Techniques© National Instruments Corporation 4-9 NI-DNET User Manual• Some device vendors provide comments about I/O ass
Chapter 4 NI-DNET Programming TechniquesNI-DNET User Manual 4-10 ni.comBy consulting the specifications for the Control Supervisor object and the AC/D
Chapter 4 NI-DNET Programming Techniques© National Instruments Corporation 4-11 NI-DNET User Manual4. Right-click on the ByteOffset terminal and selec
Chapter 4 NI-DNET Programming TechniquesNI-DNET User Manual 4-12 ni.com2. Initialize the array to all zero.for (I = 0; I < 4; I++)OutputAsm [I] = 0
Chapter 4 NI-DNET Programming Techniques© National Instruments Corporation 4-13 NI-DNET User Manualeasiest way to execute the Set Attribute Single ser
Chapter 4 NI-DNET Programming TechniquesNI-DNET User Manual 4-14 ni.comSpecification defines the overall format of these services, in most cases their
Chapter 4 NI-DNET Programming Techniques© National Instruments Corporation 4-15 NI-DNET User ManualFor the C programming language, you can declare a s
Chapter 4 NI-DNET Programming TechniquesNI-DNET User Manual 4-16 ni.comMain LoopIf your application essentially accesses all DeviceNet input/output da
© National Instruments Corporation A-1 NI-DNET User ManualADeviceNet OverviewThis appendix gives an overview of DeviceNet.History of DeviceNetThe Cont
Appendix A DeviceNet OverviewNI-DNET User Manual A-2 ni.comPhysical Characteristics of DeviceNetThe following list summarizes the physical characteris
ContentsNI-DNET User Manual vi ni.comProgramming Model for NI-DNET Applications ... 3-6Step 1. O
Appendix A DeviceNet Overview© National Instruments Corporation A-3 NI-DNET User ManualFigure A-1. Classes of Geometric ShapesAll squares belong to t
Appendix A DeviceNet OverviewNI-DNET User Manual A-4 ni.comFigure A-2. Object Modeling Used in DeviceNet SpecificationEvery DeviceNet device contains
Appendix A DeviceNet Overview© National Instruments Corporation A-5 NI-DNET User ManualIn Figure A-2, the term Application Object(s) refers to objects
Appendix A DeviceNet OverviewNI-DNET User Manual A-6 ni.comThe following tables describe the general format of DeviceNet explicit message requests and
Appendix A DeviceNet Overview© National Instruments Corporation A-7 NI-DNET User ManualThe Get Attribute Single service obtains the value of a specifi
Appendix A DeviceNet OverviewNI-DNET User Manual A-8 ni.comThe DeviceNet Specification defines four types of master/slave I/O connections: polled, bit
Appendix A DeviceNet Overview© National Instruments Corporation A-9 NI-DNET User Manualslave. This strobe command (request) message is received by all
Appendix A DeviceNet OverviewNI-DNET User Manual A-10 ni.comThe cyclic I/O connection enables a slave device to send input data to its master at the c
Appendix A DeviceNet Overview© National Instruments Corporation A-11 NI-DNET User ManualFigure A-5 shows an example of four COS/cyclic I/O connections
Appendix A DeviceNet OverviewNI-DNET User Manual A-12 ni.comFigure A-6. Input and Output AssembliesAs a more specific example, consider a DeviceNet p
Contents© National Instruments Corporation vii NI-DNET User ManualAppendix BCabling RequirementsConnector Pinouts...
Appendix A DeviceNet Overview© National Instruments Corporation A-13 NI-DNET User ManualAs you can see, to use the data bytes contained in I/O message
© National Instruments Corporation B-1 NI-DNET User ManualBCabling RequirementsThis appendix describes the cabling requirements for the hardware. Cabl
Appendix B Cabling RequirementsNI-DNET User Manual B-2 ni.comFigure B-2 shows the end of a PCMCIA-CAN bus-powered cable. The arrow points to pin 1 of
Appendix B Cabling Requirements© National Instruments Corporation B-3 NI-DNET User ManualPower Supply Information for the DeviceNet PortsThe bus must
Appendix B Cabling RequirementsNI-DNET User Manual B-4 ni.comThe PCI-CAN is shipped with this jumper set in the EXT position. In this position, the ph
Appendix B Cabling Requirements© National Instruments Corporation B-5 NI-DNET User ManualFigure B-6. PXI-8461 Parts Locator DiagramConnecting pins 1
Appendix B Cabling RequirementsNI-DNET User Manual B-6 ni.comCable SpecificationsCables should meet the requirements of the DeviceNet cable specificat
Appendix B Cabling Requirements© National Instruments Corporation B-7 NI-DNET User ManualCable TerminationThe pair of signal wires (CAN_H and CAN_L) c
Appendix B Cabling RequirementsNI-DNET User Manual B-8 ni.comCabling ExampleFigure B-8 shows an example of a cable to connect two DeviceNet devices. F
© National Instruments Corporation C-1 NI-DNET User ManualCTroubleshooting and Common QuestionsThis appendix describes how to troubleshoot problems wi
© National Instruments Corporation ix NI-DNET User ManualAbout This ManualThis manual describes the basics of DeviceNet and explains how to develop an
Appendix C Troubleshooting and Common QuestionsNI-DNET User Manual C-2 ni.comTroubleshooting Self Test FailuresThe following topics explain common err
Appendix C Troubleshooting and Common Questions© National Instruments Corporation C-3 NI-DNET User ManualIf the error continues after restart, uninsta
Appendix C Troubleshooting and Common QuestionsNI-DNET User Manual C-4 ni.comCan I use multiple PCMCIA cards in one computer?Yes, but make sure there
© National Instruments Corporation D-1 NI-DNET User ManualDHardware SpecificationsThis appendix describes the physical characteristics of the DeviceNe
Appendix D Hardware SpecificationsNI-DNET User Manual D-2 ni.comStorage environmentAmbient temperature ...–20 to 70 °CRelative hum
Appendix D Hardware Specifications© National Instruments Corporation D-3 NI-DNET User ManualPort CharacteristicsBus power ...
Appendix D Hardware SpecificationsNI-DNET User Manual D-4 ni.comCE ComplianceThis product meets the essential requirements of applicable European Dire
© National Instruments Corporation E-1 NI-DNET User ManualETechnical Support and Professional ServicesVisit the following sections of the National Ins
© National Instruments Corporation G-1 NI-DNET User ManualGlossarySymbol Prefix Valuem milli 10–3k kilo 103AA amperesAC alternating currentactuator A
GlossaryNI-DNET User Manual G-2 ni.comBbBitsbackground polling A polled I/O communication scheme in which all polled slaves are grouped into two diffe
About This ManualNI-DNET User Manual x ni.comConventionsThe following conventions appear in this manual:» The » symbol leads you through nested menu i
Glossary© National Instruments Corporation G-3 NI-DNET User ManualDDC direct currentdevice A physical assembly, linked to a communication line (cable)
GlossaryNI-DNET User Manual G-4 ni.comHhex HexadecimalHz HertzII/O connection Connection used for exchange of physical input/output (sensor/activator)
Glossary© National Instruments Corporation G-5 NI-DNET User Manualmaster/slave DeviceNet communication scheme in which a master device allocates conne
GlossaryNI-DNET User Manual G-6 ni.comPPC personal computerpeer-to-peer DeviceNet communication scheme in which each device communicates as a peer and
Glossary© National Instruments Corporation G-7 NI-DNET User Manualservice An action performed on an instance to affect its behavior; the externally vi
© National Instruments Corporation I-1 NI-DNET User ManualIndexCCE compliance, D-4change protocol, 1-3common questions, C-3and troubleshooting, C-1com
IndexNI-DNET User Manual I-2 ni.comLLabVIEW Real-Time (RT)software configuration, 1-3tools, 1-3MMAXNI-DNET cards listed in MAX (figure), 1-2tools laun
About This Manual© National Instruments Corporation xi NI-DNET User Manual• LabVIEW online reference• ODVA website, www.odva.org• Microsoft Win32 Soft
Kommentare zu diesen Handbüchern