fg71
Simple example of proof of concept that industrial communication could be used in Game Engine.
For this I have used UPBGE 4.3 or 5.0 (Blender with Game Engine).
I have installed pymodbus in UPBGE own python.
I have created a sphere in Blender with sensor and controller (Logic Brick Editor)
I have created client/server python script.
 
The client python script will read the state of coil and update the color of sphere (Lamp). In other words the sensor used in Logic Brick Editor are binding to controller that call module blender_client and use function "update". This python script will then update the material color of the object with name Lamp. When the modbus_server.py script is running and the blender scene is open in project directory folder from command-line. Reason so we could find all scripts. We start the Game Engine by pressing P on the keyboard.
 
[203128%2F9715879%2Fmceclip0]
Reply 0 0
mrea
@fg71 have you seen Open Industry using godot game engine? They have modbus and opc-ua etc

https://github.com/Open-Industry-Project/Open-Industry-Project
Reply 0 0
fg71
Thanks for sharing, I have not seen that but I do know Godot.
I also thinking about doing something in Panda3D a game engine Disney made open source 🙂
 
Have you done any example in Godot?
Reply 0 0
Reply