This program is intended for simulation and exchanging variables between PLC SIM, OfficeLite (or real KUKA robot) and RoboDK.
Main packages we used:
python-snap7 - Python wrapper for the snap7 PLC communication library
robodk 5.6.4 - The robodk package implements the RoboDK API for Python
KRC-RPC - JSON-RPC for KUKA Cross3Krc COM server
Supported data types: String, Char, Real, UInt, USint, Bool.
- Set up KRC-RPC in OfficeLite (or real KUKA robot).
- Create Data Block that will represent KUKA and RoboDK variables.
- Turn off "Optimized block access" in DB's attributes.
- Allow "Permit access with PUT/GET communication from remote partner" in PLC properties (Protection & Security).
- Fill config.yaml and appsettings.json in KRC-RPC (see "Example" folder)
- Run RoboDK, PLC SIM and OfficeLite. Run KRC-RPC.exe in OfficeLite.
- Run main.py.