i switched over to VB with this code and it was fine
not sure what the issue was in C#
Imports libplctag
Public Class Form1
Dim myTag As Tag
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
.Name = "N7:0",
.Gateway = "192.168.1.100",
.PlcType = PlcType.MicroLogix,
.Protocol = Protocol.ab_eip,
.Path = "1,0",
.Timeout = TimeSpan.FromMilliseconds(5000)
}
End Sub
Private Sub btnCheckTag_Click(sender As Object, e As EventArgs) Handles btnCheckTag.Click
myTag.Initialize()
Dim myInt = myTag.GetInt16(0)
myTag.Read()
Label1.Text = myInt
End Sub
End Class
On Friday, November 7, 2025 at 1:46:40 PM UTC-8 Donald Dahlman wrote: