TwinCat3 Pass Values from PLC to HMI

aviio

Member
Join Date
Mar 2021
Location
St.Gallen
Posts
2
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 :)
 

Similar Topics

Good afternoon all I'm having some troubles trying to go online with a twincat3 project that has been developed with another laptop (I will call...
Replies
1
Views
1,565
Hi, In Twincat3 x64 is it possible to get value of variable of which name is read from a string variable? VAR VAL1 :REAL:=555...
Replies
2
Views
1,216
Today I had first time experience to troubleshoot Twincat3 project, that has motion control and is semi complicated and it was project not done by...
Replies
3
Views
1,477
So for my senior design project in electrical engineering my group and I are designing an inspection system using twinCAT3 as the basis of the...
Replies
4
Views
1,822
Hey Everyone, hope everyone is safe and healthy. So I got my hands on the following hardware. I have no experience in programing in ST and...
Replies
13
Views
6,048
Back
Top Bottom