Skip to content

Fix sending boolean values for registers being in the same offset

EDIT: MR closed, as simplified solution is in MR !20 (merged) **

Fixes #9 (closed) If registers are declared next to each other in silecs design they go under the same offset after importing scl file to TIA Portal and generating data blocks (it is effective for memory managment) -> look at screenshot from TIA Portal below.

grafik

Unfortunately, because of that (e.g. addresses in generated silecs param are not as should be in silecs param) we cannot send bool values properly. To solve that I did:

  • in generated silecs param I created a wrapper tag to wrap multiple bool registers in one address as byte
  • updated Registers in communication to use wrapper register
  • In Diagnostic tool I updated structure of Items to display it properly and did some minor changes to send values properly

As a result we can integrate, read and write as it should be boolean values for Siemens PLCs e.g. using silecs diagnostic tool -> look at screenshot below.

grafik

Edited by m.nabywaniec

Merge request reports