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 write negative value into DINT array. #73

Open
cernym85 opened this issue Dec 16, 2024 · 1 comment
Open

Unable to write negative value into DINT array. #73

cernym85 opened this issue Dec 16, 2024 · 1 comment

Comments

@cernym85
Copy link

I found out that it's impossible to write negative value into DINT array, when writing whole array.

Current Behavior

Write fails on range check.

Possible Solution

Assuming that in function generateWriteMessageRequestForAtomic in /src/tag/index.ts on line 714 should be

valBuf.writeInt32LE(value[i], i * 4);

instead of

valBuf.writeUInt32LE(value[i], i * 4);

@SerafinTech
Copy link
Owner

SerafinTech commented Dec 26, 2024 via email

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