Good Morning,
I am creating a equipment module class to control 5 sets of equipment that are identical in devices and logic.
I have created the Eq Mod class and within it have placed two control module class instances.
In short the Eq Mod controls a flow control valve based on a flow meter reading, using a PID loop.
One control module class is for the flow meter, and consists of an AI block.
The other is the PID block that controls the valve.
I would like to connect, within the Eq Mod class, the output of the flow meters AI block to the input of the PID, so that in any instance of the Eq mod I only have to connect the flow meters DST to the flow meter control module class instance and the flow valve to the PID control module class instance, using the configure IO program.
I want the PID block input within the PID control module always look at the flow meter AI block output inside the Flow meter control module within the same Eq module instance.
I have worked around this by adding an AI block in the PID control module class, but the problem is when I configure IO for the Eq Mod instance I have to connect the flow meter DST to both the flow meter control module and the PID control module of that Eq Mod class instance. This prompts a warning and I would rather not keep it this way.
I have tried using an input parameter in the PID control Mod, and setting it to external reference (leaving the path blank) hoping it would show up in the Configure IO screen but it does not, and causes a warning when trying to download.
Any help on this would be greatly appreciated.
Tyson
In reply to Maarten van der Waal:
In reply to TysonK: