ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
01-02-2018 04:41 AM
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,
01-02-2018 05:03 AM
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.
01-02-2018 05:17 AM
if i run OPC also on PC2 computer and run same project as PC1.
Will it work?
Thanks,
01-02-2018 05:24 AM
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
01-02-2018 05:54 AM
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).
01-03-2018 10:14 AM
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
01-03-2018 10:29 AM - edited 01-03-2018 10:30 AM
@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...
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