Destination2Unknown/PythonCLX_PIDSimulator — reverse-engineered prompt
Reverse engineered prompt
Build me a simple desktop Python app that acts like a process simulator for testing a ControlLogix PID loop. I want a small GUI where I can connect to an Allen Bradley PLC, read the setpoint and controller output from tags in the PLC, then calculate a simulated process value and write that PV back to the PLC. The process should behave like a basic first order plus dead time model, with easy fields to tune things like gain, time constant, dead time, scan time, and maybe noise so I can make it feel more realistic.
I also want a live trend so I can watch SP, CV, and PV change over time while the loop runs. Keep the interface straightforward and usable for bench testing and learning. If it makes sense, include start, stop, connect, disconnect, and a way to enter PLC address and tag names. Look up current PLC communication docs online if you need to.
Want more depth? Deep Reverse