plcpeople / nodepccc

Library for node.js to communicate with some Allen-Bradley programmable controllers (PLCs)
MIT License
81 stars 24 forks source link

Fix ghost writings #30

Closed Lucasrsv1 closed 5 years ago

Lucasrsv1 commented 5 years ago

The array self.globalWriteBlockList need to be cleaned in order to create new writing packets properly. Otherwise, you may get wrong things written in wrong places. For instance, if you call writeItems with 5 items, they will be written, but if call it again with only 3, they will be written and the last two items from the first request will be written as well, again.

plcpeople commented 5 years ago

Thank you for the PR.