Breadcrumbs

Wago CodeSys

Library Download

For details about the releases, see here.

PMLib Version

Compatible with PMC Version

Download

Changelog

6.03.048.00

117.22.47 or higher

Wago V06.03.048.00.zip

pmlib 2025.11v7.22.55 (6.03.048.00)

6.03.047.00

117.22.04 or higher

Wago V06.03.047.00.zip

pmlib 2025.09v7.22.07 (6.03.047.00)

6.03.046.00

117.20.49 or higher

Wago V06.03.046.00.zip

pmlib 2025.08v7.20.49 (6.03.046.00)

6.03.044.01

117.20.40 or higher

Wago V06.03.044.01.zip

pmlib 2025.07v7.20.40 (6.03.044.01)

6.03.039.00

117.17.43 or higher

Wago V06.03.039.00.zip

pmlib 2025.03v7.17.43 (6.03.039.00)

6.03.037.00

117.17.12 or higher

Wago V06.03.037.00.zip

pmlib 2025.01v7.17.12 (6.03.037.00)

Library Setup

Creating a new project

Step 1: Start by clicking File->New Project

wago_new_project_1.png

Step 2: In the New Project window select Standard Project as the template. Give the project a unique name and location. Then click OK

wago_new_project_2.png

Step 3: In the Standard Project window select the Device to use and the programming language to use for the PLC_PRG. This example uses a WAGO Compact Controller 100 and Structured Text. Click OK when you are done

wago_new_project_3.png

Setup Fieldbus

Step 1: Click Tools->Device Repository

wago_fieldbus_1.png

Step 2: In the Device Repository window click "Install..."

wago_fieldbus_2.png

Step 3: In the Install Device Description window browse to the ESI file and then click "Open"

wago_fieldbus_3.png

Step 4: In the Devices tree right click on the Controller and click "Add Device..."

wago_fieldbus_4.png

Step 5: In the Add Device window select the EtherCAT Master and click "Add Device"

wago_fieldbus_5.png

Step 6: Right click on the new EtherCAT-Master and click "Add Device"

wago_fieldbus_6.png

Step 7: In the Add Device window find and select the Planar Motor Controller device and click "Add Device"

wago_fieldbus_7.png

Import and use library

Step 1: Click Tools->Library Repository

wago_library_1.png

Step 2: In the Library Repository window click "Install..."

wago_library_2.png

Step 3: In the Select Library window browse to and select the PMC .compiled-library file. Then click "Open"

wago_library_3.png

Step 4: Open the Library Manger from the Devices tree. Then click "Add library"

wago_library_4.png

Step 5: Search for and find the PMC library and click "OK"

wago_library_5.png

Step 6: The task that calls the PMC function blocks should be the same task responsible for the Ethercat Bus Cycle. You can either move the PLC_PRG to the EtherCAT_Task or give the MainTask the Bus Cycle. This example chooses the later. Double click the EtherCAT Master. Then go the EtherCAT I/O Mapping tab and switch the Bus cycle task to the MainTask

wago_library_6.png

Step 7: Then make sure that the MainTask’s cyclic interval (double click MainTask) and the EtherCAT Master’s cycle time (General tab in the EtherCAT Master) are at the same time. This example uses 10 ms because the Compact Controller 100 is a low power PLC

wago_library_7.png
wago_library_8.png

Step 8: In the PLC_PRG POU declare a PMCLib.PMControllerType variable

wago_library_9.png

Step 9: Double click the PMC device (Communication Protocol A) and go to the EtherCAT I/O Mapping tab. Switch the Always update variables option to Enable 2 (always in bus cycle task)

wago_library_10.png

Step 10: Map the DataToPMCArray channel to the DataToPMC member of the PMControllerType variable you declared in the PLC_PRG. Map the DataFromPMCArray channel to the DataFromPMC member of the PMControllerType variable

wago_library_11.png

Step 11: Before using the PMC library, make sure that one and only one instance of the PMC_AutoRefresh function block is declared and that the PMC_AutoRefresh function block is called once and only once per PLC cycle

wago_library_12.png

Step 12: Before programming the controller you will need to specify the MAC Address of the RJ45 port that the PMC is connected to. This can be found in the web based management of the controller (accessed via a web browser at the controller’s IP address). It is found in the Information tab, in the Device Status section, under Network TCP/IP Details

wago_library_13.png
wago_library_14.png

Upgrade Library

Step 1: Start by opening the Library Manager. Then delete the previous old version of the PMC library

wago_update_1.png

Step 2: Click Tools->Library Repository

wago_update_2.png

Step 3: In the Library Repository window find the old version of the PMC library and click "Uninstall"

wago_update_3.png

Step 4: Click "Yes" in the confirmation box

wago_update_4.png

Step 5: When you are back in the Library Repository and click "Install..."

wago_update_5.png

Step 6: Browse to the new version of the PMC library and click "Open"

wago_update_6.png

Step 7: Then in the Library Manager click "Add library"

wago_update_7.png

Step 8: Then in the Add Library window find and select the new PMC library and click "OK"

wago_update_8.png

File I/O on the PLC (Optional)

Step 1: First make sure that you are connected to the controller. Then double click on the controller in the Devices panel and  go to the Files tab

wago_file_1.png

Step 2: On the left (Host) side are the files on the PC, one the right (Runtime) side are the files on the controller. Click the Refresh button on the Runtime side of the page to load the files on the controller

wago_file_2.png

Step 3: On each side navigate to the folder that contains the files you are interested in. Note that the PlcLogic folder on the controller is considered the “Root” folder for controller program file access such as using the SysFile library

wago_file_4.png

Step 4: Use the << button to copy PLC files to the PC and the >> button to copy PC files to the PLC

wago_file_6.png