Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paths #23

Open
anderfekete opened this issue Feb 2, 2021 · 0 comments
Open

Paths #23

anderfekete opened this issue Feb 2, 2021 · 0 comments

Comments

@anderfekete
Copy link

Me and my team are using your code to try to connect to our RSLogix5000 PLC using the path '1,0', but once we do the:

var tag = new Tag("10.206.1.39", "1, 0", CpuType.LGX, "TestDINTArray[0]", DataType.Int32, 4);

client.AddTag(tag);

var TestDintArray0 = client.GetInt32Value(tag, 0 * tag.ElementSize);
Console.WriteLine("TestDintArray0: " + TestDintArray0);

The value printed were just the negative size of the int, like -65536
and that definetly isn't the value in the tag. We think it might be aproblem in the path, but we are not really sure.
Could you explain more about paths or how to read/write the tag values?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant