mycroes / Sally7

C# implementation of Siemens S7 connections with a focus on performance
MIT License
57 stars 23 forks source link

[Question] Is there any standard way to query a PLC for its current program version or checksum? #51

Open Thieum opened 8 months ago

Thieum commented 8 months ago

(This is not an issue for Sally per se, but a question related to Sally7 devs and users field of work)

I would like to track if any changes or incompatibilities could happen between the programs I develop in C# using Sally, and the PLCs I communicate with.

Is there any standard way to query a PLC for its current program version or checksum?

I searched existing discussions and documentation without finding anything useful so far:

https://support.industry.siemens.com/forum/ca/en/posts/read-plc-program-checksum-over-tcp-ip/251950 https://support.industry.siemens.com/cs/mdm/109747174?c=96887724043&dl=nl&lc=fr-WW https://stackoverflow.com/q/44668697/444469

Is the function GetChecksum good enough for this usage? How would I call this function with Sally?

mycroes commented 8 months ago

Hi @Thieum, sorry for the late reply. I don't see any implementation of GetChecksum, only a mention of it's existence. If there's an implementation, I imagine I could add it to Sally7.

Regards, Michael