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

Unable to read data from PLC #16

Open
ltemimi opened this issue Dec 3, 2019 · 1 comment
Open

Unable to read data from PLC #16

ltemimi opened this issue Dec 3, 2019 · 1 comment

Comments

@ltemimi
Copy link

ltemimi commented Dec 3, 2019

Hi
I used your software to read data from a logix PLC all I seem to get is the minimum values example

if (read == (int)Status.PlctagStatusOk)
            {
                value = client.GetInt32Value(tagControlWord, 0);
            }

I get the minimum value of a signed integer -2147483648 rather the value 29 (value of my tag in the PLC)

Any idea? Please help

Laz

@carloserodriguez2000
Copy link

I think the issue is the "0". That means return immediately. I think you need a bigger value to make it work.

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

2 participants