ContentHub
Propventil_02062026_916_EN.mp4
13 views
View transcript
In this WAGO tutorial, we’ll show you how to use a WAGO proportional valve module with a PLC in CODESYS 3.5. For this demonstration, we are using the following setup: a PFC300 running firmware version 31, the 750-632 proportional valve module, and of course the corresponding 600 series end module. A standard 24 V proportional valve is connected to the proportional valve module. We have already created a functional CODESYS project, which is linked in the video description. However, we will go through the configuration step by step so that you can quickly adapt the project to your own application. First, we need the WagoAppSolenoid library in CODESYS 3.5. This library provides for each proportional valve module 632 and the 1632, two function blocks, one for control and one for configuration and status monitoring. For our 632 module, both function blocks have already been added to the program. For the input and output variables, we have created global variable structures and combined them into a DUT. Now we compile the application, download it to the controller, and start the PLC. First, we want to verify the process image level, so we enable the input xPowerEnable. By pressing Ctrl + F7 once to write the value, the output xEnable changes to TRUE. This confirms that the I/O level is operating correctly and that the function block is ready for use. Before commissioning the valve, we first need to configure the target current value. This is done using the configuration function block. As a first step, we read the current parameters from the module. To do this, simply set the input xExecute to TRUE, and the read operation starts immediately. The process is indicated by xBusy and completed when xDone becomes TRUE. Once the read operation has finished, the parameters can be accessed and modified via the data structure. All parameters and their positions are described in the manual. The rated current specified by the valve manufacturer must be entered in Table 52, at Position 2, in milliamps. For our valve, the rated current is 680 mA. To write the configuration back to the module, generate another positive edge on xExecute and set xWriteRead to TRUE. The parameter configuration is not retained automatically. To ensure that the settings remain available after a controller restart, they must be saved separately using the xSaveValues input. The valve can now be controlled. For this purpose, enter a value between 0 and 10,000 at iCurrent, representing 0 to 100% of the configured output current. If we enter a value of 10,000 and enable the output current using xCurrentEnable, the actual output current shown at iActualCurrent will be 680 mA. Using a visualisation, the iCurrent input and the iActualCurrent output can be displayed clearly, allowing us to control the valve in an intuitive way. Parameterisation can also be carried out using the I/O-Check tool. This provides a clear overview of all parameters and is particularly useful for analysing potential faults. The valve can also be controlled directly from within the tool. Simply enable the setpoint, switch on the output stage, and then enter different setpoint values here to operate the valve directly. Errors and communication can also be reset here. The primary purpose of this tutorial is to provide an overview of how WAGO proportional valve modules are used and to explain their basic operating principle. For more specialised applications, we recommend consulting the product manual. Finally, please note that operating a proportional valve module via a fieldbus coupler differs slightly from operating it directly on a controller. For that scenario, we recommend the tutorial “WagoSysFieldbusModule | Commissioning Complex Modules on a Fieldbus Coupler”. A link to that tutorial can be found in the video description. If you found this video helpful, please give it a thumbs up, subscribe to the channel, and contact us via the WAGO Support Center if you have any further questions.