Skip to content

Fixed TypeHelper#535

Open
rs-blade wants to merge 1 commit intoS7NetPlus:mainfrom
rs-blade:main
Open

Fixed TypeHelper#535
rs-blade wants to merge 1 commit intoS7NetPlus:mainfrom
rs-blade:main

Conversation

@rs-blade
Copy link

@rs-blade rs-blade commented Jul 31, 2024

When writing a double[] via Plc.Write/WriteAsync the data that is sent is malformed.

I added a test and found the cause in TypeHelper.ToByteArray(): There is a hard coded 4 when writing the single buffer. This may lead to errors for other types too (not checked that).

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

Successfully merging this pull request may close these issues.

2 participants