LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run one labview project on two different PC of same network to read one common Siemens PLC

Hello all

i have labview project running in one PC. i want to install on more PC in network at different location and run same labview project to read Siemens PLC?

is it possible ?

 

Thanks,

0 Kudos
Message 1 of 7
(3,986 Views)

I guess you are interfacing the PLC by means of an OPC server. In this case, consider that the server can be polled by any node on the network.

On one PC, you would run the OPC server and your application; on this machine, the application would open a local connection to the server.

On another PC, you would run only your application, whose connection to the server would be remote.

Configurating an OPC server and the operating system to accept remote connections can be somewhat tricky, though.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 7
(3,974 Views)

if i run OPC also on PC2 computer and run same project as PC1.

Will it work?

Thanks,

0 Kudos
Message 3 of 7
(3,972 Views)

please see attached file...

this is real scenario which i want.

PC1 and PC2 both can run same project to monitor PLC?

any idea please?

 

Thanks,

Asif Iqbal

0 Kudos
Message 4 of 7
(3,970 Views)

I am not sure whether the PLC would accept connections from two different OPC servers at once.

If it would and your application would write items into the PLC, then you would call for troubles, because a conflict would rise between PC1 and PC2.

On the other side, if you only read items, this would be relatively harmless. But it would also be inefficient and costly (normally, OPC servers require a license fee).

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 5 of 7
(3,960 Views)

Hi Asif,

 

Can you tell us why the two computer's need to run the same project? An easy approach would be to run the OPC server on one computer that communicates with the Siemens PLC. You could then run the same LabVIEW project on each computer. Each project would act as an OPC client to read the data from the OPC server.

 

Regards,

 

Jordan Calvert

0 Kudos
Message 6 of 7
(3,899 Views)

@pincpanter wrote:

I am not sure whether the PLC would accept connections from two different OPC servers at once.

If it would and your application would write items into the PLC, then you would call for troubles, because a conflict would rise between PC1 and PC2.

On the other side, if you only read items, this would be relatively harmless. But it would also be inefficient and costly (normally, OPC servers require a license fee).


Paolo brings up a critical point since the PLC will do what it is told and if it is told to do two separate things... "A man can not serve two masters..."

 

So to answer your question;

"

How to run one labview project on two different PC of same network to read one common Siemens PLC 

"

If you are truly JUST reading...

 

Spoiler
In the world of software development, JUST is a four letter word

 

 

It should be a no brainer, just load up the code, set-up the OPC server and your are done.

 

If however you are controlling the PLC, that is another story where the details matter.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 7
(3,892 Views)