Hello
I'm programming a project in TwinCat3. I'm not new to programming but I have never really programmed anything too complex.
I want to display different sensor and actor values on my HMI on a small table. It is going to show a few temperature sensors, two motors RPM's and the Humidity and maybe air flow.
The Table is created with a User control with the following parameters:
Unit: string (displays the unit of the value eg. "°C")
Name: string (displays the name of the value eg. "Temperature Isolation")
Value: string (displays the actual value eg. "1023")
Now I could just create a few Global Variables in the PLC Project and link them to every Value but I feel like this isn't really intuitive nor practical. I thought about creating an array or something for my "Actual Value Display" but I'm not quite sure on how to realize that.
I'd be grateful if someone could give me an example on how it is properly done with performance and maintainability in mind.
cheers
I'm programming a project in TwinCat3. I'm not new to programming but I have never really programmed anything too complex.
I want to display different sensor and actor values on my HMI on a small table. It is going to show a few temperature sensors, two motors RPM's and the Humidity and maybe air flow.
The Table is created with a User control with the following parameters:
Unit: string (displays the unit of the value eg. "°C")
Name: string (displays the name of the value eg. "Temperature Isolation")
Value: string (displays the actual value eg. "1023")
Now I could just create a few Global Variables in the PLC Project and link them to every Value but I feel like this isn't really intuitive nor practical. I thought about creating an array or something for my "Actual Value Display" but I'm not quite sure on how to realize that.
I'd be grateful if someone could give me an example on how it is properly done with performance and maintainability in mind.
cheers