09-17-2021 10:37 AM
Hi guys, I just started a new project on Siemens S7 1200 with an interface on CVI
after some researches here, I found out that the best way to communicate with my PLC is via snap7 using the DLL method .
unfortunately, I didn't find any tutorial or video explaining or simplifying the procedure, even with Ni documentations I was not able to establish communication with my PLC.
the goal is to read data and to write .
my question is: is there anyone who could simplify things for me or give me any kind of support to follow.
Note: I am not so familiar with C but I am open to learn ^^
thanks
Solved! Go to Solution.
09-20-2021 03:21 AM - edited 09-20-2021 03:25 AM
The Snap7 package also contains an "examples/plain-c" folder (where you found the snap7.h file that you asked about in your other post). The smart thing to do is to study those examples and try to understand what they are trying to do. You should be able compile those examples in LabWindows/CVI with minimal modifications
But you mention you are not familiar with C. What other programming language are you familiar with? Why are you using LabWindows/CVI if you are not familiar with C? There are many different online courses and books for C programming. It would be a good idea to do one of them before trying to do some serious programming. Learning on the job is a nice concept but programming is not exactly something where you can do that without some fundamental knowledge about the language you try to use.