National-instruments NI-DNET Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Hardware National-instruments NI-DNET herunter. National Instruments NI-DNET User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 86
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
DeviceNet
T
NI-DNET
TM
User Manual
NI-DNET User Manual
May 2004 Edition
Part Number 370375B-01
Seitenansicht 0
1 2 3 4 5 6 ... 85 86

Inhaltsverzeichnis

Seite 1 - DeviceNet

DeviceNetTNI-DNETTM User ManualNI-DNET User ManualMay 2004 EditionPart Number 370375B-01

Seite 2

© National Instruments Corporation 1-1 NI-DNET User Manual1NI-DNET Software OverviewThe DeviceNet software provided with National Instruments DeviceNe

Seite 3 - Important Information

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

Seite 4 - Contents

Chapter 1 NI-DNET Software Overview© National Instruments Corporation 1-3 NI-DNET User ManualConfigure DeviceNet PortThe physical port of each DeviceN

Seite 5 - Appendix A

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

Seite 6

Chapter 1 NI-DNET Software Overview© National Instruments Corporation 1-5 NI-DNET User ManualMuch like any other object-oriented system, NI-DNET devic

Seite 7 - About This Manual

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

Seite 8 - Related Documentation

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

Seite 9 - • ODVA website

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

Seite 10 - NI-DNET Software Overview

© National Instruments Corporation 2-1 NI-DNET User Manual2NI-DNET Hardware OverviewTypes of HardwareThe National Instruments DeviceNet hardware inclu

Seite 11

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

Seite 12 - Change Protocol

SupportWorldwide Technical Support and Product Informationni.comNational Instruments Corporate Headquarters11500 North Mopac Expressway Austin, Texas

Seite 13 - NI-DNET Objects

© National Instruments Corporation 3-1 NI-DNET User Manual3Developing Your ApplicationThis chapter explains how to develop an application using the NI

Seite 14 - Explicit Messaging Object

Chapter 3 Developing Your ApplicationNI-DNET User Manual 3-2 ni.comLabWindows/CVIWithin LabWindows/CVI, the NI-DNET function panel is located in Libra

Seite 15 - I/O Object

Chapter 3 Developing Your Application© National Instruments Corporation 3-3 NI-DNET User ManualMicrosoft C/C++The NI-DNET software supports Microsoft

Seite 16 - Using NI-CAN with NI-DNET

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 #

Seite 17

Chapter 3 Developing Your Application© National Instruments Corporation 3-5 NI-DNET User Manual2. Get the addresses for the NI-DNET DLL functions you

Seite 18 - NI-DNET Hardware Overview

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

Seite 19

Chapter 3 Developing Your Application© National Instruments Corporation 3-7 NI-DNET User ManualFigure 3-1. General Programming Steps for an NI-DNET A

Seite 20 - Developing Your Application

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

Seite 21 - Microsoft Visual Basic

Chapter 3 Developing Your Application© National Instruments Corporation 3-9 NI-DNET User Manual2. Call the ncWaitForState function with the DesiredSta

Seite 22 - Borland C/C++

Chapter 3 Developing Your ApplicationNI-DNET User Manual 3-10 ni.comStep 4. Stop CommunicationBefore you exit your application, stop communication to

Seite 23 - Other Programming Languages

Important InformationWarrantyThe CAN/DeviceNet hardware is warranted against defects in materials and workmanship for a period of one year from the d

Seite 24

Chapter 3 Developing Your Application© National Instruments Corporation 3-11 NI-DNET User ManualIf you use two different applications on the same inte

Seite 25

Chapter 3 Developing Your ApplicationNI-DNET User Manual 3-12 ni.comYour application code should check the status returned from every NI-DNET function

Seite 26 - Finished?

© National Instruments Corporation 4-1 NI-DNET User Manual4NI-DNET Programming TechniquesThis chapter describes various techniques to help you program

Seite 27 - Step 2. Start Communication

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/

Seite 28 - Communication Start

Chapter 4 NI-DNET Programming Techniques© National Instruments Corporation 4-3 NI-DNET User ManualPolled I/OPolled I/O connections use a separate poll

Seite 29 - Step 5. Close Objects

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

Seite 30 - Checking Status in LabVIEW

Chapter 4 NI-DNET Programming Techniques© National Instruments Corporation 4-5 NI-DNET User Manualbackground polling maintains overall network consist

Seite 31

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

Seite 32 - Techniques

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

Seite 33 - Strobed I/O

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

Seite 34 - Polled I/O

© National Instruments Corporation v NI-DNET User ManualContentsAbout This ManualHow to Use the Manual Set ...

Seite 35 - Background Polling

Chapter 4 NI-DNET Programming Techniques© National Instruments Corporation 4-9 NI-DNET User Manual• Some device vendors provide comments about I/O ass

Seite 36 - Individual Polling

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

Seite 37 - Cyclic I/O

Chapter 4 NI-DNET Programming Techniques© National Instruments Corporation 4-11 NI-DNET User Manual4. Right-click on the ByteOffset terminal and selec

Seite 38 - Automatic EPR Feature

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

Seite 39

Chapter 4 NI-DNET Programming Techniques© National Instruments Corporation 4-13 NI-DNET User Manualeasiest way to execute the Set Attribute Single ser

Seite 40

Chapter 4 NI-DNET Programming TechniquesNI-DNET User Manual 4-14 ni.comSpecification defines the overall format of these services, in most cases their

Seite 41

Chapter 4 NI-DNET Programming Techniques© National Instruments Corporation 4-15 NI-DNET User ManualFor the C programming language, you can declare a s

Seite 42 - Accessing I/O Members in C

Chapter 4 NI-DNET Programming TechniquesNI-DNET User Manual 4-16 ni.comMain LoopIf your application essentially accesses all DeviceNet input/output da

Seite 43

© National Instruments Corporation A-1 NI-DNET User ManualADeviceNet OverviewThis appendix gives an overview of DeviceNet.History of DeviceNetThe Cont

Seite 44

Appendix A DeviceNet OverviewNI-DNET User Manual A-2 ni.comPhysical Characteristics of DeviceNetThe following list summarizes the physical characteris

Seite 45 - Handling Multiple Devices

ContentsNI-DNET User Manual vi ni.comProgramming Model for NI-DNET Applications ... 3-6Step 1. O

Seite 46 - Object Handles

Appendix A DeviceNet Overview© National Instruments Corporation A-3 NI-DNET User ManualFigure A-1. Classes of Geometric ShapesAll squares belong to t

Seite 47 - Main Loop

Appendix A DeviceNet OverviewNI-DNET User Manual A-4 ni.comFigure A-2. Object Modeling Used in DeviceNet SpecificationEvery DeviceNet device contains

Seite 48 - DeviceNet Overview

Appendix A DeviceNet Overview© National Instruments Corporation A-5 NI-DNET User ManualIn Figure A-2, the term Application Object(s) refers to objects

Seite 49 - Appendix A DeviceNet Overview

Appendix A DeviceNet OverviewNI-DNET User Manual A-6 ni.comThe following tables describe the general format of DeviceNet explicit message requests and

Seite 50

Appendix A DeviceNet Overview© National Instruments Corporation A-7 NI-DNET User ManualThe Get Attribute Single service obtains the value of a specifi

Seite 51

Appendix A DeviceNet OverviewNI-DNET User Manual A-8 ni.comThe DeviceNet Specification defines four types of master/slave I/O connections: polled, bit

Seite 52

Appendix A DeviceNet Overview© National Instruments Corporation A-9 NI-DNET User Manualslave. This strobe command (request) message is received by all

Seite 53

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

Seite 54 - I/O Connections

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

Seite 55 - Bit Strobed I/O

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

Seite 56

Contents© National Instruments Corporation vii NI-DNET User ManualAppendix BCabling RequirementsConnector Pinouts...

Seite 57

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

Seite 58 - Assembly Objects

© National Instruments Corporation B-1 NI-DNET User ManualBCabling RequirementsThis appendix describes the cabling requirements for the hardware. Cabl

Seite 59

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

Seite 60 - Device Profiles

Appendix B Cabling Requirements© National Instruments Corporation B-3 NI-DNET User ManualPower Supply Information for the DeviceNet PortsThe bus must

Seite 61 - Cabling Requirements

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

Seite 62

Appendix B Cabling Requirements© National Instruments Corporation B-5 NI-DNET User ManualFigure B-6. PXI-8461 Parts Locator DiagramConnecting pins 1

Seite 63

Appendix B Cabling RequirementsNI-DNET User Manual B-6 ni.comCable SpecificationsCables should meet the requirements of the DeviceNet cable specificat

Seite 64

Appendix B Cabling Requirements© National Instruments Corporation B-7 NI-DNET User ManualCable TerminationThe pair of signal wires (CAN_H and CAN_L) c

Seite 65

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

Seite 66 - Maximum Number of Devices

© National Instruments Corporation C-1 NI-DNET User ManualCTroubleshooting and Common QuestionsThis appendix describes how to troubleshoot problems wi

Seite 67 - Cable Termination

© National Instruments Corporation ix NI-DNET User ManualAbout This ManualThis manual describes the basics of DeviceNet and explains how to develop an

Seite 68 - Cabling Example

Appendix C Troubleshooting and Common QuestionsNI-DNET User Manual C-2 ni.comTroubleshooting Self Test FailuresThe following topics explain common err

Seite 69 - Common Questions

Appendix C Troubleshooting and Common Questions© National Instruments Corporation C-3 NI-DNET User ManualIf the error continues after restart, uninsta

Seite 70 - Interrupt Resource Conflict

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

Seite 71

© National Instruments Corporation D-1 NI-DNET User ManualDHardware SpecificationsThis appendix describes the physical characteristics of the DeviceNe

Seite 72

Appendix D Hardware SpecificationsNI-DNET User Manual D-2 ni.comStorage environmentAmbient temperature ...–20 to 70 °CRelative hum

Seite 73 - Hardware Specifications

Appendix D Hardware Specifications© National Instruments Corporation D-3 NI-DNET User ManualPort CharacteristicsBus power ...

Seite 74 - PXI-CAN Series

Appendix D Hardware SpecificationsNI-DNET User Manual D-4 ni.comCE ComplianceThis product meets the essential requirements of applicable European Dire

Seite 75 - Electromagnetic Compatibility

© National Instruments Corporation E-1 NI-DNET User ManualETechnical Support and Professional ServicesVisit the following sections of the National Ins

Seite 76 - CE Compliance

© National Instruments Corporation G-1 NI-DNET User ManualGlossarySymbol Prefix Valuem milli 10–3k kilo 103AA amperesAC alternating currentactuator A

Seite 77 - Professional Services

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

Seite 78 - Glossary

About This ManualNI-DNET User Manual x ni.comConventionsThe following conventions appear in this manual:» The » symbol leads you through nested menu i

Seite 79

Glossary© National Instruments Corporation G-3 NI-DNET User ManualDDC direct currentdevice A physical assembly, linked to a communication line (cable)

Seite 80

GlossaryNI-DNET User Manual G-4 ni.comHhex HexadecimalHz HertzII/O connection Connection used for exchange of physical input/output (sensor/activator)

Seite 81

Glossary© National Instruments Corporation G-5 NI-DNET User Manualmaster/slave DeviceNet communication scheme in which a master device allocates conne

Seite 82

GlossaryNI-DNET User Manual G-6 ni.comPPC personal computerpeer-to-peer DeviceNet communication scheme in which each device communicates as a peer and

Seite 83 - D0000 to D1FFF hex)

Glossary© National Instruments Corporation G-7 NI-DNET User Manualservice An action performed on an instance to affect its behavior; the externally vi

Seite 84

© National Instruments Corporation I-1 NI-DNET User ManualIndexCCE compliance, D-4change protocol, 1-3common questions, C-3and troubleshooting, C-1com

Seite 85

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

Seite 86

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

Keine Kommentare