06-27-2008 03:17 PM
Hardware:
PCI-7340
UMI-7764
In my setup, a servo motor performs a routine of moves, rotating a disk.
There are stops in between the moves, during which a camera or a spectrophotometer scans the disk.
The routine is defined by moves at different velocity, each for a different amount of time. The motor is run in velocity mode.
To trigger the camera, I have originally planned to use the breakpoint feature in PCI-7340.
If I have understood correctly, regardless of the breakpoint mode chosen(absolute,relative,modulo), a breakpoint position is required for the breakpoint output to occur.
For now, the position of the motor at stop, after each move,is not explicitly known, but it can be calculated from the time and the velocity that the user inputs for each move. However,since the servo motor was tuned for precise velocity control, not for precise position control, it often misses the calculated position, especially at higher RPM.So the original breakpoint idea goes out of the window.
My question: How to generate a trigger signal when the motor has come to a stop?
A first guess: writing to a digital output port when Run/Stop status check returns false (axis stopped)?
To be triggered, the camera needs a 10 microsecond wide 5V pulse.
Also, is it possible to route the signal generated to the breakpoint pin on UMI-7764, to which my camera's trigger line is connected for another part of the project.
Any suggestion is appreciated.
Donna
06-30-2008 04:11 AM
06-30-2008 01:16 PM
Hi Jochen,
I have tried out Breakpoint Output MOMO.flx in a simple trial version of my project. It worked like it's supposed to.
In this application, I am not very worried about the milliseconds lost by using a software trigger, because I have to pause the motor for an extended amount of time, allowing the spectrophotometer to take a full spectrum of the disk.
Now I will work on integrating it into the full-scaled version of my project.
Thank you for your help,
Donna