https://www.AutomationDirect.com/ethercat-servo-systems?utm_source=4OM7gN9xFbU&utm_medium=VideoTeamDescription
(VID-SV-0088)
The iX7 EtherCAT servo drive is the perfect option for your motion over ethernet project! In this video, we discuss connecting from an XGB PLC to 3 iX7 drives for a 3-axis motion system over EtherCAT.
Online Support Page: https://community.automationdirect.com/s/?utm_source=4OM7gN9xFbU&utm_medium=VideoTeamDescription
**Please check our website for our most up-to-date product pricing and availability.
Today, we are going to be connecting the XG-PM software to the EtherCAT motion controller and pulling SDO information from our EtherCAT servo drives. In previous help topics we have physically wired up our EtherCAT network, and we have created projects in both XG5000 and XG-PM. Now let’s take a look at configuring our axes in the XG-PM software. Remember that we are building a 3-axis motion system that will have an X, a Y, and a Z axis working together as part of a tabletop gantry system. We have manually set the node ID rotary switches to Node 1 for the first drive, the X axis, Node 2 for the second drive, the Y axis, and Node 3 for the third drive which will be the Z axis. We have XG5000 and XG-PM open and have already read the blank project out of the PN08B EtherCAT module connected to our CPU. It’s also important to note that the software uses node and slave interchangeably. They both refer to the devices on the EtherCAT network that are not the master. To start our configuration, let’s have our master grab the configuration information from the EtherCAT nodes on the network. To do this we need to have the PN08B module selected in the project window. If we have selected the on-board step/direction motion controller, this next step will be grayed out. Once we have the proper selection in the project window, we can go to “Online>EtherCAT Slave.” We see that we have options to “Connect to All Slaves” “Disconnect to All Slaves” and “AutoConnect.” We will select “AutoConnect.” This opens the “Network Slave Autoconnect” pop-up window. In our previous video we read the SDO files during our “Open From PLC” step. That function pulls the SDO files stored on the PN08B motion module. Using the “AutoConnect” function will scan the nodes connected to the network, pull their SDO files into the motion module, and then read them into the XG-PM software. While “AutoConnect” reads the most current SDO information directly from the nodes, at times it is useful to compare the SDOs stored in the motion module and the current SDOs in the drives to each other. The software gives the option to access both. Because “AutoConnnect” overwrites the saved SDOs in the motion module and software, you will need to save an offline copy of your XG-PM project prior to executing the “Autoconnect” if you want to compare the files. In our example we don’t care about the files already in the motion module, so we will make sure the checkbox to read the SDO files from the network as well as the box for matching the slave station and axis numbers together are checked. Once we hit “OK” the software will scan the EtherCAT network. It then gives us a confirmation message once the process has been completed successfully. We see the 3 slave drives have been added to the project window on the left side. We can also review their SDO files. If we double-click on “SDO Parameter” for Slave 1, it will open the “New1.Slave 1.SDO.” New 1 is the default name given to the PN08B card. If we renamed that card in the software to something more specific, the naming convention in this window would change also. We can now look at Parameter 2003:00 for Slave 1 and see that the node ID is 1. Let’s perform this same check for Axis 2, and we see that it is Node 2. And finally for Axis 3, and it is set to Node 3. The software offers one final feature to help prevent drives being hooked up in the wrong order. By default, if the PN08B sees our three configured node numbers on the network, the controller will match the slave number in the software up to the node number. It will not matter which order the nodes are connected in. In certain situations, hooking the drive ethernet cables up in the wrong order could cause motion commands to be sent to the wrong physical servo motor. To help prevent this, the Node Number enforcement option in the software will require the node numbers be hooked up in the same order as they are mapped to the slave numbers in the software. To enable this option, we will go to the project window on the left side and double-click on “Master.” We will then set the “Use Node Switch” value to “1: Used.” In our case since Slave 1 is Node 1, Slave 2 is Node 2, and Slave 3 is Node 3, the EtherCAT port on the PN08B card would have to be connected to the “In” port on the node 1 drive. The “Out” port on that drive would have to be connected to the “In” port on the node 2 drive, and the “Out” port on the Node 2 drive would have to be connected to the “In” port on the node 3 drive. Connecting them in any other order will cause the controller to fault. It assumes a wiring mistake was made. If we had Slave 1 mapped to Node 3, Slave 2 mapped to Node 1, and Slave 3 mapped to Node 2, then the physical wiring would have to have Node 3 first in line, then Node 1, then Node 2. This is one final physical security feature to prevent motion going to the wrong physical axis, potentially avoiding personnel injury or equipment damage. We strongly recommend you utilize this feature in your EtherCAT network. With all these diagnostic features active, we can replace a drive in the future with a lot of peace of mind. For the network to function, the drive will have to have the rotary switches set properly and be installed in the correct network position. Exactly what we want. Perfect! We can now save the project. Let’s also write the project to the CPU and motion controller. XG-PM will not write all of the data to the EtherCAT motion card if the EtherCAT network is connected between the master and the nodes. Depending on which version of XG-PM is used, the network may or may not be connected when the autoconnect step is run. To find out if the network is connected, we go to “Online>EtherCAT Slave” and we can see that we have the option to read and write SDO files for the nodes. If we weren’t connected, this function would be grayed out. To disconnect the EtherCAT network, we will select “Disconnect all slave.” This will give us confirmation when the disconnection is successful. We can then click the icon of a laptop with an arrow pointing to a PLC, or we can go to “Online>Write.” This will pull up the “Write project” window where we can select what information we want to write. We aren’t doing anything with the XEM CPUs on-board Step/Direction axes so we will leave that section unchecked to save write time. Let’s just check the box for the PN08B and then click “OK.” This will cause the software to warn us that SDO files are not written with the rest of the project. In our case, that is fine since we haven’t made any changes to the SDO files yet. If we had, we would need to write the SDO files to the network nodes after completing this write. We will cover performing an SDO write in a later video in this help topic. Please refer to it for further details.
Voted #1 mid-sized employer in Atlanta
Check out our
job openings