Hello guys am fairly new on advanced HMI. First i will like to thank Archie for a well made program.
The issue am facing is that i built an hmi for remote viewing of a machine.Now i have a situation that i want to have a basic indicator with on(text shown indicator),green color status and off(text shown indicator),red color status. I have tried and use a DataSubscriber1 that is connected with the appropriate tag and then used the below code to have the affect i want but it didn't work.Any thoughts on this problem.
Private Sub DataSubscriber1_DataChanged(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles DataSubscriber1.DataChanged
If e.PlcAddress = True Then
BasicIndicatorRefrigCompressor.Color1 = Color.Green
BasicIndicatorRefrigCompressor.Text = "ON"
Else
BasicIndicatorRefrigCompressor.Color1 = Color.Red
BasicIndicatorRefrigCompressor.Text = "OFF"
End If
End Sub