teaguehall Posted July 1, 2019 Share Posted July 1, 2019 Hi there, Is there a way to trigger data collection as a function of position instead of time? The gather buffer utility is a convenient way to collect data but is always triggered relative to the servo clock. Is it possible to configure the gather buffer to collect data as a function of position instead of time? Link to comment Share on other sites More sharing options...
curtwilson Posted July 1, 2019 Share Posted July 1, 2019 There is no automatic function for this, but it is not too difficult to accomplish using a simple algorithm -- probably a few lines in a PLC program. First, set Gather.Period to 0 for "one-shot" data gathering. (Actually, it will gather a sample every 65,536 servo cycles.) When you want to gather a sample based on whatever criterion you choose, set Gather.Enable to 2. When you see the status element Gather.Samples increment, set Gather.Enable to 1 to reset the timing logic. Note that setting it to 1 instead of 0 allows the next sample to be added to the end of the buffer. Repeat the above two steps as long as you choose. Link to comment Share on other sites More sharing options...
Recommended Posts