Simulating HW values in Online Mode using your excel.
Happy New Year!
I downloaded your tools and did some modifications like trying to read/write other necesarry parameters from the IO cards based on my project requirement.
Now I am trying to modify the same excel in order to be able to simulate the online Forced & Channel Value to uses it also as a test tool. While going through ur code the hw_ch has no such paramters as Forced/Channel value etc. Could you assist a little bit.
The idea is to be able to write Forced and Channel Value back to IO card when Controller is online but no IOcards are connected.
Your feedback will be highly appreciated.
The Excel code builder tool doesnt work this way. You need to write some code to do this.
If you want to build a simple simulation then you need to write to the AI and DI channels. If you want to simulate a PID like a flow, then use a first order filter. Connect the output of the PID controller to the Input of the filter and connect the output of the filter to the MV of the PID loop.
If you want to simulate a level, use an integrator instead.
If you want to simulate a motor or valve , just connect the output channel back to the feedback.