matanu Posted January 29, 2015 Share Posted January 29, 2015 Hi everybody, I'm in trouble when trying to write value to OPC tags by script. I can easily write one channel when using available function Action - Set To integrated in component. But I have many output tags need to be updated data for PLC Q series operation (I'm using Kepware OPC). I try script: Mychannel.AddValue(value) but it seems just update channel history, no data written to OPC. Please help me, how can I write value to OPC tags by script. Thank you. Link to comment Share on other sites More sharing options...
AzeoTech Posted January 30, 2015 Share Posted January 30, 2015 You should just do: myChannel = value As you noted, addValue() simply shoves data into the history. It does not call the driver. Link to comment Share on other sites More sharing options...
matanu Posted January 30, 2015 Author Share Posted January 30, 2015 Thank you very much ^^ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.