Skip to content

Conversation

@PTKu
Copy link
Contributor

@PTKu PTKu commented Jan 23, 2025

closes #364

@PTKu PTKu linked an issue Jan 23, 2025 that may be closed by this pull request
4 tasks
PTKu added 3 commits January 23, 2025 14:42
Added a new integer property `Capacity` to both `OnlinerString` and
`OnlinerWString` classes to represent the declared size of the strings.
Updated the `AddMemberInitialization` method in the
`CsOnlinerConstructorBuilder` class to set the `Capacity` property
after initializing the field using `ConnectorAdapter.AdapterFactory.Create`.
- Modified `WebApiString.cs` and `WebApiWString.cs` to truncate string values given the capacity declareted in the target controller.
- Set capacity of various string members to appropriate values across multiple classes.
@PTKu PTKu marked this pull request as ready for review January 24, 2025 07:21
@PTKu PTKu merged commit b77dbc1 into dev Jan 24, 2025
2 checks passed
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.

When writing a string to the PLC and length more than declared exception occurs

2 participants