07-21-2008 03:28 AM - edited 07-21-2008 03:29 AM
07-24-2008 04:31 PM
Thanks Jochen!
I will try at 500Hz but I have an other question...?
I have to stop the movement of the slaves when the MASTER do 1 revolution. I have to verify with the RT controller each count to see if it reaches " the value".
If the loop is at 500Hz, the RT controller will miss "the value" and the slaves won't stop...
What do you think...
Thanks a lot again
Patrick
07-25-2008 02:27 AM
07-25-2008 08:52 AM
Jochen,
My plan was to decelerates smoothly to a stop after reaching a particular value. (example : when you see count 35 000, decelerate to a stop) ...(I can use "if over 35000", decelerate to stop, it's not critical)
But, I will also have to start a movement when the master encoder will be at a particular value. (example : when master is at count 2000, start the 2 slave) ... i don't want to approximate this time, I have to start the 2 slaves when the master is at 2000... and every axes has to be coordinated.... (it's like, if I want to reset the position value with the index pulse, but in the software instead of the fpga, RT is fast enough)
I'm aware of intertia etc... the problem is that I want that the Real Time, be fast enought to detect those counts or find a way to not miss count read in RT...
not sure if i'm clear? 🙂
Thanks
Patrick
07-25-2008 09:23 AM
07-25-2008 03:54 PM
08-30-2008 10:56 PM
Jochen,
I have an other question ... (I finally received a 8000 counts master encoder (2000 quadrature) doing 1 rev / sec and giving setpoints to 2 slaves depending on master)
My question is... if I put the PID rate at 4 kHz (to be sure not to get the same setpoint each PID iteration) ...
What should be the RT loop rate (the same???? what is the effect? I have all the velocity, acceleration, time profile...I would like to learn more about target and RT timing...
Thanks again,
Patrick
09-01-2008 08:14 AM
Patrick,
if you are using the spline engine of the SoftMotion module, you can run the PID loop on the FPGA much faster than the trajectory generation loop on the RT controller. E. g. you could set the timing for the FPGA-loop to 250 µs and to 8 or 16 ms for the RT loop. Please note, that the ratio needs to be a power of 2. The spline engine on the FPGA interpolates the missing points smoothly.
If you try to run the trajectory generation loop on the RT controller also at 4 kHz this would result in a very high CPU load which is typically not desirable. Depending on the other tasks that need to be performed by the RT controller you even may not reach such a high loop rate.
I hope that helps,
Jochen
09-01-2008 09:25 AM
Jochen,
I understand more now...
But because the trajectory I'm working on has an acceleration/speed not constant...
How will react the spline engine, if there is not enought point between the two setpoint given by the RT controller?
(for each count of the master, the slaves setpoints has a maximum of 102 counts and a minimum of 0 (when changing direction))
thanks for you help!
Patrick
09-01-2008 10:20 AM
Patrick,
the spline engine will do it's best to generate smoothly distributed setpoints between the position points of the trajectory generator. In a situation, where there is only a very small difference between two consecutive position points of the trajectory generator, it will generate the same setpoint multiple times. This could look like that:
TGP = Trajectory Generator Position
SES = Spline Engine Setpoint
TGP SSP
100 100
100
100
101
101
102
102
103 103