The best way to communicate with the S7-1200 PLC processor is OPC UA or Classic OPC (also known as OPC DA). Libnodave is for the S7-300, and the S7-400 is not for the S71200 (firmware 2.x).
If you are using a third-party solution to communicate with the S7-1200 (or S7-1500), you will have to lower the security level in the PLC by allowing the “put” and “receive” mechanism. Lay and receive pure evil in use. You open processor memory for each process. Do not use them anymore. Siemens must actually block this.
This applies to all firmware versions for the S7-1200. Siemens is pushing the people you use OPC UA as the default connection from the PLC. Which makes sense because OPC UA is a protocol for industry 4.0 and IIoT.
Edit: rewrite everything. The information was very outdated. If you are using firmware 2 or 3 1200, consider replacing or updating. These versions are no longer supported and contain a worm issue.
source share