Breadcrumbs

Keyence KV Studio

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

Keyence V06.03.048.00.zip

pmlib 2025.11v7.22.55 (6.03.048.00)

6.03.047.00

117.22.04 or higher

Keyence V06.03.047.00.zip

pmlib 2025.09v7.22.07 (6.03.047.00)

6.03.046.00

117.20.49 or higher

Keyence V06.03.046.00.zip

pmlib 2025.08v7.20.49 (6.03.046.00)

6.03.044.01

117.20.40 or higher

Keyence V06.03.044.01.zip

pmlib 2025.07v7.20.40 (6.03.044.01)

6.03.039.00

117.17.43 or higher

Keyence V06.03.039.00.zip

pmlib 2025.03v7.17.43 (6.03.039.00)

6.03.037.00

117.17.12 or higher

Keyence V06.03.037.00.zip

pmlib 2025.01v7.17.12 (6.03.037.00)

Library Setup

Creating a new project

Step 1: Click on File->New project

Keyence_new_project_1.png

Step 2: Give the new project a name (no spaces) and chose a location for the project files (a new folder will be created for the files). Then click OK

Keyence_new_project_2.png

Setup Fieldbus

Step 1: In the project window double click Unit configuration->(Controller Name)->EtherNet/IP

Keyence_fieldbus_1.png

Step 2: In the EtherNet/IP settings window click Manual

Keyence_fieldbus_2.png

Step 3: If this is the first time using the PMC on this install for KV Studio click EDS file->Reg

Keyence_fieldbus_3.png

Step 4: Find the PMC EDS file and click Open

Keyence_fieldbus_4.png

Step 5: In the Unit list find the Planar Motor Incorporated EtherNet/IP entry and double click it

Keyence_fieldbus_5.png

Step 6: When setting the IP address of the PMC make sure that it is on the same subnet (3rd digit from the left) as the PLC

Keyence_fieldbus_6.png

Step 7: Also make sure that the Ethernet/IP address set in KV Studio matches the configuration set in the Planar Motor Tool

Keyence_fieldbus_7.png

Step 8: For optimum responsiveness set the RPI to be less than or equal to the target program cycle time . You can also give the PMC a name in the KV studio project

Keyence_fieldbus_8.png

Step 9: Now you can exit the Ethernet/IP settings window

Keyence_fieldbus_9.png

Step 10: Click Yes in the confirmation window

Keyence_fieldbus_10.png

Step 11: Exit the Unit Editor

Keyence_fieldbus_11.png

Step 12: Click Yes in the confirmation window

Keyence_fieldbus_12.png

Step 13: You will be asked to create variables to link to the input and output of the PMC. I suggest giving them names that will make it easy to tell which PMC it is linked to and whether it is the input or output

Keyence_fieldbus_13.png

Import and use library

Step 1: In the Library window right click User Function Block and click Import

Keyence_library_1.png

Step 2: Find the PMC Keyence Library .kufb file and click Open

Keyence_library_2.png

Step 3: Drag and drop the PMC Library folder from the Library window to the Function Block section of the Project window

Keyence_library_3.png

Step 4: Click Yes in the confirmation window

Keyence_library_4.png

Step 5: The Structure/Program selection window will appear many times (once for almost every function block in the PMC library). Select either To overwrite or To exclude each time it pops up. This shows up because the function PMC_CmdProcessor is used in many of the PMC function blocks as a support function and Keyence does not realize that the function hasn’t changed between function block imports

Keyence_library_5.png

Step 6: Before using the library several variables must be created for each Planar Motor Controller (PLC) used. Double click Variable in the Project window to open the variable editor

Keyence_library_6.png

Step 7: Once of each of these PMC datatypes: PM_BufferInput, PM_BufferOutput, PMC_AutoRefresh, and PMControllerType should be created for each Planar Motor Controller used by this PLC. It doesn’t matter whether they are created as Local or Global variables

Keyence_library_7.png

Step 8: For consistency with the included example project we will be using Structured Text. Right click a ladder section and select Edit ST/script->Insert area type ST. (Note: the library is fully compatible with ladder diagram this is just so that it matches the example project)

Keyence_library_8.png

Step 9: In the Main routine make sure the following is done:

  •  Call the PM_BufferInput function block once at the beginning of the PLC cycle

  •  Call the PMC_AutoRefresh function block  once and only once per PLC cycle. Make sure that the AutoRefresh call is after the BufferInput call and before the BufferOutput call.

  •  Call the PM_BufferOutput function block  once at the end of the PLC cycle

For user code, all PMC AOIs require a PMControllerType as an In/Out. Use the one declared earlier

Keyence_library_9.png

Upgrade Library

Step 1: In the Library window Right click the old PMC Library folder and select Delete

Keyence_update_2.png

Step 2: Click Yes in the confirmation window

Keyence_update_1.png

Step 3: In the Library window right click User Function Block and click Import

Keyence_update_7.png

Step 4: Find the new PMC Keyence Library .kufb file and click Open

Keyence_update_4.png

Step 5: Drag and drop the new PMC Library folder from the Library window to the Function Block section of the Project window

Keyence_update_5.png

Step 6: Click Yes in the confirmation window

Keyence_update_6.png

Step 7: The Structure/Program selection window will appear many times (once for every function block in the PMC library). Select To overwrite in for all the options then click Continue. Unfortunately KV Studio doesn’t have an option to overwrite all when importing a library 

Keyence_update_8.png

File I/O on the PLC (Optional)

Step 1: Click Tool->Storage transfer tool

Keyence_file_1.png

Step 2: In the Storage Transfer Tool window select the storage type on the PLC. I strongly suggest that you use the Memory card because the CPU memory is rough an order of magnitude slower. To download the contents of the memory card to your PC click the <- arrow

Keyence_file_2.png

Step 3: Confirm that you are OK with the files in the selected PC directory being deleted

Keyence_file_3.png

Step 4: The contents of the SD card will then be dumped into the selected directory

Keyence_file_4.png

Step 5: To copy files from your PC to the PLC click the -> arrow

Keyence_file_5.png

Step 6: Confirm that you are OK with the contents of the SD card being overwritten with the contents of the selected directory

Keyence_file_6.png