Hemendra Posted December 1, 2016 Share Posted December 1, 2016 Hi, How can I make Data Logging on Event base, mean want to log data based on condition of PLC tag on which I connected, not on time interval. Thank you. Link to comment Share on other sites More sharing options...
AzeoTech Posted December 1, 2016 Share Posted December 1, 2016 The easiest way is to create an export set where each expression has [0], so myChannel[0], then in the Event for the channel, use an if() statement to evaluate your condition and run the export set if its true: if (myChannel[0] > 5) beginexport(myExport) endif Link to comment Share on other sites More sharing options...
Hemendra Posted December 3, 2016 Author Share Posted December 3, 2016 ok, I worked with Export. One difficulty is there, it is exporting data hundreds of time (some times in thousands) even logic condition turn False to True. I want it to be done single time, second export again on logic condition False to True. Link to comment Share on other sites More sharing options...
Hemendra Posted December 6, 2016 Author Share Posted December 6, 2016 I mean data export to be done once on logic condition turns False to True every time. Link to comment Share on other sites More sharing options...
AzeoTech Posted December 6, 2016 Share Posted December 6, 2016 You need to make sure every line of your export set has [0] so it only writes the most recent data point. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.