AdvancedHMI Programming Question

aiki202

Member
Join Date
Aug 2007
Location
Pennsylvania
Posts
178
I have been developing an HMI application using the free AdvancedHMI application, VB.NET Express, and a MicroLogix 1200. I cannot get the ReadAny function to pull in any data from the PLC. The WriteData function works fine. I'm not sure if I am doing something wrong, or if the way I am using the function will not work. Here is my code:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Label5.Text = DF1Comm1.ReadAny("N7:0")
End Sub

I am trying to pull data in from a standard button click event into a standard label. Is this possible?

Thanks
 
No error messages appear. The application continues without a problem, but the actual integer value from the address is not updated. I single stepped (F8) through ever step of your code that reads the integer, everything "appears" to work properly.
 

Similar Topics

I would like to temporarily install AdvancedHMI on the same computer as FactoryTalk View SE. I am waiting for another contractor to finish the FTV...
Replies
3
Views
556
Hi all, just wanna ask if anyone has used an M221 controller and successfully connected to AdvancedHMI
Replies
1
Views
1,312
MessageDisplayByValue question is there a way to embed a tag value in the messages of the MessageDisplayByValue function ??? Similar to what is...
Replies
10
Views
2,817
Hi All I have been switching between 2017 and 2019, all depending on which one i found more stable, at the moment I use 2019 I was just...
Replies
1
Views
1,478
I tried to use AdvancedHMI as a Modubius Client and it does poll the data from a Modbus server. But I am unable to use AdvancedHMI as a server...
Replies
10
Views
3,043
Back
Top Bottom