ContentHub
20250606-EtherCATCouplerPFC-EN.mp4
21 views
View transcript
Hello, in this WAGO tutorial, we'll demonstrate how to establish EtherCAT communication between a Programmable Field Controller (PFC) and an EtherCAT coupler. In this video, we're utilizing a PFC 200 equipped with a 16-channel digital output module, connected to our PC through the primary Ethernet interface. At the second Ethernet interface, the EtherCAT Coupler 750-354 is connected, initially with the essential power supply module 750-602. Following that, there is a 16-channel digital input module, a 16-channel digital output module, and a serial RS232/485 interface. Remember to add termination modules, and we can begin our configurations. The PFC has already been assigned a static IP address within the same subnet as the PC. Since EtherCAT requires a dedicated network, we need to separate the interfaces on the PFC. This can be achieved using tools such as the WAGO Ethernet Settings. First, we connect to the PFC via Settings, then Communication, and navigate to the Network tab. Interface X2 is currently greyed-out, indicating the PFC is functioning as a switch, placing both interfaces in the same subnet. We separate the interfaces, and although we could assign a distinct IP address to the X2 interface now, we must not proceed with this at this stage, as once we have configured an EtherCAT Master, we use it to search for available EtherCAT Slaves. Consequently, we don't need to assign an IP address to the EtherCAT coupler; simply connect it, and the EtherCAT stack will manage the rest. Next, we open CODESYS 3.5 and create a new project. Our goal is to trigger an output on the PFC using a digital input on the coupler via EtherCAT. We do this by defining two variables, assigning the input variable to the output variable. We then scan the Kbus on the PFC, successfully identifying the 16-channel output module, allowing us to assign the output variable to the first output. Now, we need to address the input. Right-click on Device to access the 'Add Device' window. In the EtherCAT tree, we find two EtherCAT Masters - one general and another specifically for SoftMotion applications. We select the general one. Next, we open the EtherCAT Master and select the Bridge 1 interface where the EtherCAT Coupler is connected. It is advisable to choose "Select network by name," especially if the program is to be transferred to another PFC or if a redundant system is in use. We want to attach an EtherCAT Slave to the Master, so we open the Attach Device window again, this time by right-clicking on the EtherCAT Master. In the Slave tree, we locate the WAGO folder containing the field bus coupler 750-354. If the WAGO folder isn't present, the EtherCAT device descriptions must be installed. This is especially true when first working with EtherCAT in a CODESYS 3.5 version. EtherCAT device descriptions can be downloaded from the WAGO Download Centre and installed in CODESYS 3.5 by opening the Device Repository from the Tools menu, selecting "Install," opening the .xml file, and installing the device descriptions. Back in the 'Add Device' window, select and add the 750-354 coupler. Subsequently, we load everything into the controller, prompting the EtherCAT Master to search for an EtherCAT Slave. Since the modules on the coupler haven't yet been copied into the project, orange triangles are displayed. We scan for devices, the connected modules are listed, and copy them into the project. For the project changes to be reflected in the controller, log out and log back in with a project download included. When starting the controller, successful EtherCAT configuration is indicated by green circles. Each module has an IO Mapping section where variables can be easily assigned. Thus, we assign the initially created input variable to the first digital input. Download everything to the controller again and start it. The EtherCAT tree reappears in green, and when 24V is applied to the first input on the coupler, the PFC output is set to TRUE. This concludes our tutorial on establishing EtherCAT communication between a PFC and an EtherCAT coupler. Please leave us a thumbs up if the video was helpful, subscribe to the channel, and contact the WAGO Support Centre if you have any questions.