Breadcrumbs

Schneider EcoStruxure Machine Expert EtherCAT

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

Schneider V06.03.048.00.zip

pmlib 2025.11v7.22.55 (6.03.048.00)

6.03.047.00

117.22.04 or higher

Schneider V06.03.047.00.zip

pmlib 2025.09v7.22.07 (6.03.047.00)

6.03.046.00

117.20.49 or higher

Schneider V06.03.046.00.zip

pmlib 2025.08v7.20.49 (6.03.046.00)

6.03.044.01

117.20.40 or higher

Schneider V06.03.044.01.zip

pmlib 2025.07v7.20.40 (6.03.044.01)

6.03.039.00

117.17.43 or higher

Schneider V06.03.039.00.zip

pmlib 2025.03v7.17.43 (6.03.039.00)

6.03.037.00

117.17.12 or higher

Schneider 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

Untitled-20241218-192150.png

Step 2: In the New Project window select Default Project for the Project type. Then select the Controller to be used and select the Language for SR_Main. The library works for Structured Text and Ladder Logic, but this example uses Structured Text. Lastly choose and name and location for the project and then click "OK"

Schneider_New_Project_2.png

Setup Fieldbus

Step 1: Click Tools->Device Repository

Schneider_Fieldbus_1.png

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

Schneider_Fieldbus_2.png

Step 3: In the Install Device Description window browse to the description file (this example uses the EtherCAT bus) and then click "Open"

scheider1.png

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

Schneider_Fieldbus_4.png

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

Schneider_Fieldbus_5.png

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

Schneider_Fieldbus_6.png

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

Schneider_Fieldbus_7.png

Step 8: Click the new Planar Motor Controller in the Devices tree and enter the EtherCAT I/O Mapping tab. Change the Always update variables: setting to Enabled 2 (always in bus cycle task)

schneider25.png

Step 9: Before mapping the two arrays, click Reset mapping to delete the auto created mapped variables.

schneider27.png

Step 10: Click Yes in the confirmation window

schneider26.png

Step 11: Lastly make sure that the Cycle Time of the EtherCAT-Master matches the Cycle Interval of the Task

schneider2.png
Schneider_Fieldbus_11.png

Import and use library

Step 1: Click Tools->Library Repository

Schneider_Library_1.png

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

Schneider_Library_2.png

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

schneider4.png

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

Schneider_Library_4.png

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

Schneider_Library_5.png

Step 6: In the Applications tree click on the Main program. Declare a PMCLib.PMControllerType variable in the Main program.

schneider5.png

Step 7: In the Planar Motor device added in the previous section, map it's IO variables to the newly created PMCLib.PMControllerType:

Map DataToPMCArray to the DataToPMC member of the PMController variable

Map DataFromPMCArray to the DataFromPMC member of the PMController variable.

schneider7.png
schneider6.png

Step 8: 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

schneider8.png

Upgrade library

Step 1: Start by going into the Tools tree and opening the Library Manager. Then delete the previous old version of the PMC library

Schneider_Library_Update_1.png

Step 2: Click Tools->Library Repository

Schneider_Library_Update_2.png

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

Schneider_Library_Update_3.png

Step 4: Click "Yes" in the confirmation box

Schneider_Library_Update_4.png

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

Schneider_Library_Update_5.png

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

Schneider_Library_Update_6.png

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

Schneider_Library_Update_7.png

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

Schneider_Library_Update_8.png

Setup Streaming (Optional) - only for synchronization with external axis 

Step 1: In the Devices tree, click ECM_Master->Communication_Protocol_A. In the Communication_Protocol_A window, choose the General tab.

schneider11.png

Step 2: Under Distributed Clock, choose “DC for synchronization” for the "Select DC" setting.

schneider12.png

Step 3: Under Sync0 check “Enable Sync 0” and choose “x 1” for the Sync Unit Cycle

schneider13.png

Step 4: In the Planar Motor Tool, open the Configurator, then select “External PLC Synchronized” for the Sync Mode

schneider14.png

Step 5: Click "Write To PMC" to save the configuration to the PMC.

schneider15.png

File I/O on the PLC (Optional)

The following are one possible way to read and write files to the PLC storage. It could be helpful for commands such as Set PMC Configuration.

Step 1: Login to the PLC

fileio32.png

Step 2: Double click the PLC in the Devices tree

fileio33.png

Step 3: In the PLC menu select the Access Rights tab

fileio34.png

Step 4: Make sure that the user that you are logged in as has all the permissions enabled for the folders you will be using

fileio35.png

Step 5: Select the Files tab in the PLC menu

fileio36.png

Step 6: On the Host side navigate to the folder that contains the files you want to copy to the PLC or to folder where you want to copy PLC files to. Note that Schneider Machine Expert can only access windows folders/files that do not require admin rights

fileio37.png

Step 7: On the Runtime side click refresh to view the folders/files on the PLC’s memory card

fileio38.png

Step 8: On the Runtime side navigate to the folder that contains the files you want to copy to the PC or to folder where you want to copy PC files to

fileio39.png

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

fileio40.png