05-30-2022 01:01 AM
I installed LabVIEW 2019 on Linux CentOS 7. I am new on using labview on this project. How solution suggest from you to connect with any type of PLCs?
05-30-2022 04:39 AM
That depends very much on the PLC. OPC likely will not be a solution under Linux so you'll have to specify very clearly what sort of PLC it is. And it may be a real challenge to get your specific PLC to connect to under Linux.
05-31-2022 03:06 AM
05-31-2022 07:00 AM - edited 05-31-2022 07:02 AM
@Ehsan69h wrote:
We using Siemens plc like plc siemens s7-300 in lab
Then you probably want to look at the Open Source project Snap7. It supposedly compiles on Linux too, and it provides a LabVIEW specific shared library wrapper and according VIs to make it more LabVIEW friendly. You should however be able to type ./configure and make on a command line and know what that is doing, but if you wanted a point and click experience you would not have chosen Linux, would you?
05-31-2022 07:01 AM
@Ehsan69h wrote:
We using Siemens plc like plc siemens s7-300 in lab
Then you probably want to look at the Open Source project Snap7. It supposedly compiles on Linux too, and it provides a LabVIEW specific shared library wrapper and according VIs to make it more LabVIEW friendly. You should however be able to type ./configure and make on a command line and know what that is doing, but if you wanted a point and click experience you would not have chosen Linux, would you?
06-10-2022 11:33 PM
i read snap7 documents but still i can't find any link to show any example or descrip this solution steps. i need more data to start that.
06-11-2022 09:15 AM - edited 06-11-2022 09:16 AM
There are LabVIEW examples that show you how to use the Snap7 library. They are fairly basic and simplistic but give you an idea how to use the library in LabVIEW. If you want to know in more detail about the actual functions, you will need to read the generic documentation about the C API. That goes into more depth about the actual functions and how they relate to the Siemens hardware.
The LabVIEW library is for the most part simply a convenient wrapper around that API but uses principally the same functions underneath, so that documentation applies for the LabVIEW library too.