Hey Denis,
My knowledge of Siemens is fairly limited, but I recall S7 protocol has
support for %DB fields.

Their syntax is described as:



DB{Data-Block-Number}.DB{Short-Data-Type-Code}{Start-Byte-Address}.{Bit-Offset}:BOOL[{Count}]


DB{Data-Block-Number}.DB{Short-Data-Type-Code}{Start-Byte-Address}:{Data-Type-Code}[{Count}]

Shorter syntax is available:


    DB{Data-Block-Number}.{Start-Byte-Address}.{Bit-Offset}:BOOL[{Count}]

    DB{Data-Block-Number}.{Start-Byte-Address}:{Data-Type-Code}[{Count}]


DB{Data-Block-Number}.{Start-Byte-Address}:STRING({string-length})[{Count}]


Have you tried these?

Best,
Łukasz


On 05.04.2021 12:31, Denis Leite wrote:
> Hi,
> 
> First of all, excellent work! We´re using PLC4x in innovative projects with
> 2 different multinational factories.
> 
> The reason I am writing is that we couldn´t find on the documentation if
> it´s possible to read a full DB(data block) froma Siemens PLC.
> 
> Regards,
> 

Reply via email to