Dara Kaban Posted November 15, 2005 Report Share Posted November 15, 2005 I use KEPserver as OPCserver to connect labwiew 7.1 with Siemens PLC S7-200. Now I can read the output of the PLC on Labview. But I want to write data (Boolean) to PLC via OPC as well, using labview. Dose someone has an example how to doe that? Download File:post-3480-1132059210.vi Quote Link to comment
Khalid Posted November 15, 2005 Report Share Posted November 15, 2005 I am assuming you're using DataSocket Read VIs. So, to write to the OPC Server, you will use the DataSocket Write function (or VI if using the legacy version). -Khalid PS: You attached a VI; doesn't seem to do much. What was the purpose? Sorry about that: just realized that you're using front-panel datasocket. So to write this way, you will want to make a "Publish" data-connection from your Control. Or if it's an Indicator then "Publish and Subscribe." Unless it's a real simple project, you will have more flexibility using the DataSocket VIs as opposed (or, in addition to) to front-panel datasocket only. -Khalid Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.