Skip to content

allow buffer length of zero for Adswrite / adsSyncWriteReqEx#515

Open
CagtayFabry wants to merge 3 commits intostlehmann:masterfrom
CagtayFabry:adswrite_zero_length
Open

allow buffer length of zero for Adswrite / adsSyncWriteReqEx#515
CagtayFabry wants to merge 3 commits intostlehmann:masterfrom
CagtayFabry:adswrite_zero_length

Conversation

@CagtayFabry
Copy link
Copy Markdown

@CagtayFabry CagtayFabry commented Apr 30, 2026

This small change allows adsSyncWriteReqEx to handle write requests with a buffer length of zero (no data)

This edge case is necessary to support ADS timestamp correction based on time providers configured in TwinCAT 3.

This feature requires a recent version of adslib to be installed (implemented upstream since commit standalone/AdsLib: allow AdsWrite for zero length buffer )

closes #335

ref: Beckhoff/ADS#264

@CagtayFabry CagtayFabry changed the title Adswrite zero length allow buffer length of zero for Adswrite / adsSyncWriteReqEx Apr 30, 2026
@coveralls
Copy link
Copy Markdown

Coverage Report for CI Build 25163043597

Coverage at 93.267% (no base build to compare)

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 11496
Covered Lines: 10722
Line Coverage: 93.27%
Coverage Strength: 0.93 hits per line

💛 - Coveralls

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.

Sending write command without variable value (length 0)

2 participants