logo资料库

Labview_AKD_EtherCAT_通讯设置.pdf

第1页 / 共30页
第2页 / 共30页
第3页 / 共30页
第4页 / 共30页
第5页 / 共30页
第6页 / 共30页
第7页 / 共30页
第8页 / 共30页
资料共30页,剩余部分请下载后查看
Getting Started with AKD EtherCAT Drives and the LabVIEW NI SoftMotion Module
Contents
What You Need to Get Started
Hardware
Software
Figure 1. AKD EtherCAT Servo Drive Connection Diagram
Related Documentation
NI SoftMotion Module Overview
Figure 2. NI SoftMotion and AKD EtherCAT Servo Drive Architecture
Hardware and Software Configuration
Step 1: Set Up the CompactRIO System
Figure 3. Installing the Controller on the Chassis (Eight-Slot Chassis Shown)
Figure 4. Connecting the AKD EtherCAT Drive to the Network
Figure 5. AKD X5 and X6 Motion Bus Connectors
Step 2: Connect the AKD EtherCAT Drive
Figure 6. AKD EtherCAT Servo Drive Connectors
Mount the Drive and Connect the Protective Earth
Connect the Logic Power Supply to the X1 Connector
Figure 7. AKD X1 Connector
Connect the Hardware Enable on the X8 Connector
Connect the Motor and Encoder to the AKD Drive
Figure 8. Motor and Encoder Connections
Connect Additional I/O On the X7 and X8 Connectors
Figure 9. AKD X7 and X8 Connectors
Table 1. AKD to NI SoftMotion Signal Mapping
Connect the AC Input Power
Figure 10. AKD EtherCAT Servo Drive X3 Connector
Figure 11. AC Input Power Three-Phase Connection
Figure 12. AC Input Power Single-Phase Connection
Confirm Drive Connections
Step 3: Install Software on and Configure the NI RT Controller
Figure 13. Network Settings Tab
Step 4: Creating a Project and Adding an NI SoftMotion Axis
Figure 14. Adding the EtherCAT Master
Figure 15. Axis Manager Dialog Box
Figure 16. Project Explorer Window with AKD EtherCAT Servo Drive Axis
Step 5: Install Kollmorgen WorkBench and Configure the Drive
Figure 17. Kollmorgen WorkBench Start Page
Figure 18. Kollmorgen WorkBench Overview Page
Step 6: Tune the System using Kollmorgen WorkBench
Step 7: Configure the AKD EtherCAT Servo Drive Axis
Figure 19. Axis Configuration Dialog Box for AKD EtherCAT Servo Drives
Step 8: Enable and Test the Drive using LabVIEW
Configuring a PXI or Industrial Controller Master
Figure 20. Connecting the AKD EtherCAT Drive to the Network
Figure 21. AKD X5 and X6 Motion Bus Connectors
Tips and Troubleshooting
The Drive Does Not Enable
The Axis Does Not Appear To Move
The Drive Is Not Automatically Added to the LabVIEW Project
The Drive Returns a Synchronization Fault or Warning
Wiring Diagram
Figure 22. AKD Wiring Diagram
Worldwide Support and Services
Getting Started with AKD EtherCAT Drives and the LabVIEW NI SoftMotion Module ™ ® ™ This document describes how to install and configure the AKD EtherCAT servo drive using the LabVIEW NI SoftMotion Module. The system uses either a CompactRIO Reconfigurable Embedded system, a PXI system, or an NI Industrial Controller as the EtherCAT master, one or more AKD EtherCAT servo drives, and the LabVIEW Development System. Tip If you encounter any problems during setup, refer to the Tips and Troubleshooting section for assistance. Contents What You Need to Get Started................................................................................................. 2 Hardware .......................................................................................................................... 2 Software............................................................................................................................ 2 Related Documentation .................................................................................................... 3 NI SoftMotion Module Overview ............................................................................................ 4 Hardware and Software Configuration..................................................................................... 5 Step 1: Set Up the CompactRIO System.......................................................................... 5 Step 2: Connect the AKD EtherCAT Drive ..................................................................... 8 Step 3: Install Software on and Configure the NI RT Controller..................................... 14 Step 4: Creating a Project and Adding an NI SoftMotion Axis ....................................... 16 Step 5: Install Kollmorgen WorkBench and Configure the Drive ................................... 19 Step 6: Tune the System using Kollmorgen WorkBench................................................. 22 Step 7: Configure the AKD EtherCAT Servo Drive Axis................................................ 22 Step 8: Enable and Test the Drive using LabVIEW......................................................... 24 Configuring a PXI or Industrial Controller Master .................................................................. 25 Tips and Troubleshooting......................................................................................................... 26 The Drive Does Not Enable.............................................................................................. 26 The Axis Does Not Appear To Move............................................................................... 27 The Drive Is Not Automatically Added to the LabVIEW Project ................................... 27 The Drive Returns a Synchronization Fault or Warning.................................................. 27 Wiring Diagram........................................................................................................................ 28 Worldwide Support and Services ............................................................................................. 29
What You Need to Get Started Caution Before installing the drive, review Chapter 2, Safety, in the AKD Installation Manual that shipped with the drive. Failure to follow safety instructions may result in injury or damage to equipment. You need the following items to get started. Hardware  NI Real-Time Controller: • • • NI Real-Time CompactRIO controller with two Ethernet ports NI Real-Time PXI embedded controller with two ethernet ports. If your controller does not meet this requirement, install one of the following Ethernet PXI modules for EtherCAT use: – – NI Industrial Controller NI PXI-8231 NI PXI-8232  +24 VDC power supply for the CompactRIO controller or Industrial Controller (not applicable for PXI controllers)  +24 VDC power supply for the AKD EtherCAT servo drive Note Check your hardware documentation for power supply requirements.  Ethernet connection and cable for the RT controller  Ethernet cable and EtherCAT connection for the AKD EtherCAT servo drive  AKD EtherCAT servo drive and associated AKM series servo motor and encoder Note Refer to ni.com for information about AKD EtherCAT servo drive and AKM series servo motor compatibility. Software  LabVIEW 2010 or later  LabVIEW 2010 Real-Time Module or later  LabVIEW 2010 NI SoftMotion Module or later  NI-RIO 3.5.0 or later  NI-Industrial Communications for EtherCAT 2.0 or later 2 | ni.com | Getting Started with AKD EtherCAT Drives and NI SoftMotion
Note Refer to the NI SoftMotion ReadMe to ensure the installed version of NI-Industrial Communications for EtherCAT is compatible with your installation of the NI SoftMotion module. Figure 1 shows a simplified connection diagram. Figure 1. AKD EtherCAT Servo Drive Connection Diagram NI RT Controller (NI cRIO-9074 shown) AKD EtherCAT Servo Drive Additional AKD Servo Drives (Optional) EtherCAT EtherCAT +24 V Power Supply EtherCAT Master Ethernet Ethernet +24 V Power Supply (NI PS-15 Shown) Related Documentation The following documents contain additional information that you may find helpful. All referenced documents ship with the product and are available at ni.com/manuals. • AKD Installation Manual—Use this document to learn additional information about the electrical and mechanical aspects of the AKD EtherCAT servo drive, including important safety information. Documentation for the CompactRIO or PXI controller (shipped with the hardware and available at ni.com/manuals). LabVIEW NI SoftMotion Module Help—Use this help file to learn about using the NI SoftMotion Module in LabVIEW including information about programming with and using the NI SoftMotion Module with LabVIEW. To access this help file from LabVIEW, select Help»LabVIEW Help, then expand the LabVIEW NI SoftMotion Module book on the Contents tab. NI Industrial Communications for EtherCAT software documentation. LabVIEW Help—Use the LabVIEW Help to access information about LabVIEW programming concepts, step-by-step instructions for using LabVIEW, and reference information about LabVIEW VIs, functions, palettes, menus, tools, properties, methods, events, dialog boxes, and so on. The LabVIEW Help also lists the LabVIEW documentation resources available from National Instruments. Access the LabVIEW Help by selecting Help»LabVIEW Help. Getting Started with the LabVIEW Real-Time Module—Use this document to learn how to develop a real-time project and VIs, from setting up RT targets to building, debugging, and • • • • • Getting Started with AKD EtherCAT Drives and NI SoftMotion | © National Instruments | 3
deploying real-time applications. Access the Getting Started with the LabVIEW Real-Time Module PDF by selecting Start»All Programs»National Instruments»LabVIEW» LabVIEW Manuals»RT_Getting_Started.pdf. NI SoftMotion Module Overview The LabVIEW NI SoftMotion Module allows you to create deterministic motion control applications using the LabVIEW Development System. The following figure shows the NI SoftMotion Module architecture when you are using NI SoftMotion with the AKD EtherCAT servo drive. Figure 2. NI SoftMotion and AKD EtherCAT Servo Drive Architecture Windows RT Target EtherCAT Drive Host HMI and Axis Settings: LabVIEW Project User VI NI SoftMotion APIs User VI NI SoftMotion APIs NI SoftMotion Motion Manager Supervisory Control Trajectory Generator EtherCAT Drive Communication Module EtherCAT Drive Use the LabVIEW Project to configure all your axis settings and test your configuration. When your hardware configuration is complete, you use NI SoftMotion to create move profiles. Refer to the NI SoftMotion Module Help, available by selecting Help»LabVIEW Help, for information about using the NI SoftMotion Module to create motion applications. Use the NI Example Finder to browse and search installed NI SoftMotion Module examples. Select Help»Find Examples to launch the NI Example Finder. 4 | ni.com | Getting Started with AKD EtherCAT Drives and NI SoftMotion
Hardware and Software Configuration This section covers the hardware and software setup for the EtherCAT master and AKD EtherCAT servo drive, and contains instructions about using the NI SoftMotion Module to configure and test your system. Note This document uses a CompactRIO controller as the EtherCAT master. Refer to Configuring a PXI or Industrial Controller Master for setup instructions for those devices. The following procedure assumes the device is configured with the factory default settings it shipped with. If the device has been previously configured, use Kollmorgen WorkBench software to restore it to the default settings before proceeding. Refer to the Parameter Load/Save topic in the Using Parameters and the Terminal Screen section of the Kollmorgen WorkBench help for more information. Step 1: Set Up the CompactRIO System Complete the following steps to set up the CompactRIO hardware. 1. Install the real-time CompactRIO controller on the chassis if you are not using an integrated controller and chassis. Note Write down the controller serial number before installing the controller onto the chassis. You will be unable to read the serial number after you have mounted the controller. a. Make sure that no power is connected to the controller or the chassis. b. Align the controller with the chassis as shown in Figure 3. Getting Started with AKD EtherCAT Drives and NI SoftMotion | © National Instruments | 5
Figure 3. Installing the Controller on the Chassis (Eight-Slot Chassis Shown) 1 5 4 2 3 1 Controller 2 Captive Screws 3 Controller Slot 4 Reconfigurable Embedded Chassis 5 Grounding Screw c. Slide the controller onto the controller slot on the chassis. Press firmly to ensure the chassis connector and the controller connector are mated. d. Using a number 2 Phillips screwdriver, tighten the two captive screws on the front of the controller. 2. Connect the controller to a power supply and an Ethernet network on the same subnet as the development computer. Refer to the controller operating instructions for information about connecting the controller to the power supply and Ethernet network. Note Do not plug in or turn on any power to the system until after all required hardware connections are made. 3. Connect the secondary port of your EtherCAT Master directly to the X5 Motion Bus IN port (top port) on the AKD EtherCAT servo drive using a standard Category 5 Ethernet cable. The secondary port is the top port (LAN PORT #2). You may expand the deterministic Ethernet network by connecting an additional AKD EtherCAT drive or other slave devices to the X6 Motion Bus OUT port (bottom port) on the first AKD EtherCAT drive. 6 | ni.com | Getting Started with AKD EtherCAT Drives and NI SoftMotion
Figure 4. Connecting the AKD EtherCAT Drive to the Network Host Computer Ethernet EtherCAT NI Master Controller AKD EtherCAT Drive Secondary Primary IN (X5) OUT (X6) Additional AKD EtherCAT Drive/Slave Devices The LED indicators on the AKD Motion Bus IN and Motion Bus OUT ports display the communication status. Figure 5 shows the LED indicators on the X5 and X6 connectors. Figure 5. AKD X5 and X6 Motion Bus Connectors X5 X6 IN port link (on = active, off = inactive) Run (on = running, off= not running) OUT port link (on = active, off = inactive) Not currently used Getting Started with AKD EtherCAT Drives and NI SoftMotion | © National Instruments | 7
Step 2: Connect the AKD EtherCAT Drive Figure 6 shows an overview of the connectors on the AKD EtherCAT servo drive. Figure 6. AKD EtherCAT Servo Drive Connectors 1 2 3 10 9 8 7 6 24 V Supply, STO (X1) 1 2 Motor, Brake (X2) 3 AC Input Power (X3) 4 Encoder Emulation (X9) 5 Drive Grounding Lug 4 5 Feedback (X10) I/O Connector (X7) I/O Connector (X8) 6 7 8 9 Motion Bus OUT (X6) 10 Motion Bus IN (X5) Mount the Drive and Connect the Protective Earth 1. Mount the drive to a conductive metal plate. Refer to the AKD Installation Manual for dimensions and additional information specific to the drive model. 2. Connect the protective earth (PE) to either ground screw on the drive grounding lug. Figure 6 shows the location of the grounding lug on the drive. 8 | ni.com | Getting Started with AKD EtherCAT Drives and NI SoftMotion
分享到:
收藏