c# access data from simatic PLC RRS feed

  • Question

  • I am learning simatic net. I found an example from simense web, but the c# code show error when test.

    here is the code that the error shows




    Qualities .OPC_QUALITY_GOOD :


    error cs1752: can't embeded interop type"opcrcw.da.qualities".use the applicable interface.

    error cs0117: "opcrcw.da.qualities" not include the definition of "opc_quality_good".

    Can anyone tell me how to fix this error.

    If you have developed programs in this field, please show me how to test opc and c# programs when I don't have real hardware.

    Thursday, February 17, 2011 5:18 AM

All replies

  • Not a direct answer to your question, but you can also use the SAPI-S7 .NET interface from SoftwareOption to access data (with c#) from a SIMATIC PLC.

    See http://www.softwareoption.de/siemens-produkte_e.htm

    You can download a C# demo program inclusive source code.

    Monday, August 8, 2011 1:56 PM