Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What's the best way to gather data as a function of position instead of time?
#1
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?
Reply
#2
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)