LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

OPC Server 2012 with LabVIEW 2011 - s71200

Hello everyone,

 

i have a SIMATIC s7-1200 PLC and i need to read-write the PLC tags through LabVIEW 2011. I am using NI OPC Server 2012 and Siemens TCP/IP Driver which supports s71200. Siemens driver is working correctly on my system (Windows 7 Ultimate) and i can read PLC tags with no problem. I am facing problems although reaching OPC Server through LabVIEW. I added an IO Server to my LabVIEW project, set the IO Server as OPC Client and chosen NI OPC Server v5, but i cannot see the IO items of the OPC Server. I configured the DCOM Settings and my Server identity as "Interactive User", as suggested by NI.

Does anyone have a clue where the problem could be?

 

Andreas  

0 Kudos
Message 1 of 11
(7,864 Views)

Hi Andreas,

 

Have you tried to configure the tags in OPC Server first?

 

I have OPC 2010, and I create static tags in OPC Server. Then in my LV Project I create a network shared variable, linked to the static tag I've created before. In Netork Shared Variable linkin options, you can find the tags you've created under OPC Client.

 

 

Mariana,

0 Kudos
Message 2 of 11
(7,861 Views)

Mariana,

 

thank you for your answer.

Yes, of sourse i configured the tags in OPC Server. The thing is that i cannot link variables i make in my LabVIEW project to OPC's tags. I cannot reach those tags. The only thing i can reach is OPC Client Server Status Variables... Then i tried to uninstall OPC 2012 and to install OPC 2010. With OPC 2010 i can reach specified tags, but OPC 2010 does not support s7-1200 PLC with a driver...

 

 

0 Kudos
Message 3 of 11
(7,859 Views)

Hi Andreas,

 

I don't have OPC Servers 2012 and you're right, 2010 do not support S7-1200.

 

However, I did a project linking S7-1200 and LabVIEW using SIEMENS Simatic NET. It is necessary to have PC Station (Siemens software) installed in your computer in order to support S7-protocol, and adressing specific DB's in CLP was a bitch. If you fell like trying, though, I can send you the guide Siemens support sent me.

 

Regards,

Mariana.

0 Kudos
Message 4 of 11
(7,854 Views)

Mariana,

thank you for the valuable info. I believe SIEMENS Simatic NET is Siemen's OPC Server, right?

I already have TIA PORTAL v11 installed on my system for s7-1200 programming, so that won't be a problem.

 

Yes, it would be very helpful if you sent me this guide information. Also i would like to ask you which version of Simatic NET you used

 

Regards,

Andreas

0 Kudos
Message 5 of 11
(7,848 Views)

In case you cannot get the OPC server working.

 

A somehwat less involved solution would be to configure the S7-1200 as ModbusTCP server (slave), and Labview target as ModbusTCP client (master), using either the Modbus IO Server, or the much more flexible ModbusTCP pallette functions.

 

0 Kudos
Message 6 of 11
(7,846 Views)

Hi Andreas,

 

I was looking for the document in here, but it is in brazilian portuguese, so I'll have to translate it to english. How soon do you need it?

 

I believe we used version 5.5 of Simatic NET.

0 Kudos
Message 7 of 11
(7,843 Views)

Whenever you're ready. It's OK by me.

Thanks once again.

 

Andreas

0 Kudos
Message 8 of 11
(7,834 Views)

Hi Andreas,

 

File is translated. Send a message if you have any doubts.

 

To address the variables, you create a Network-shared variable, and locate the variable as following:

           My Computer\<LV OPC Client containing library>\<LV OPC Client Name>\S7:[<connection name>]<Variable Adress>

where <Variable Adress>:

DB250,D12,1

DB13,X1.0,1

 

Example:
My Computer\Variaveis_Compartilhadas_OPs.lvlib\OPC1\S7:[OP_10]DB190,X1.1,1

 

 

File can be download at: http://dl.dropbox.com/u/23498990/SiemensOPC_English.pdf

 

 

Regards,

Mariana

0 Kudos
Message 9 of 11
(7,813 Views)

Did you find answer with problem OPC Server 2012? I have same problem, I can not reach a tag, which I create in OPC server 2012

0 Kudos
Message 10 of 11
(7,474 Views)