05-15-2012 05:17 AM
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
05-15-2012 05:45 AM
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,
05-15-2012 06:42 AM
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...
05-15-2012 09:05 AM
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.
05-15-2012 03:12 PM
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
05-15-2012 03:36 PM
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.
05-15-2012 04:19 PM
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.
05-16-2012 03:45 AM
Whenever you're ready. It's OK by me.
Thanks once again.
Andreas
05-18-2012 11:27 AM
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
09-05-2012 12:52 AM
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