AmazingNoob
Member
Hi there, i am looking for a method to sample 600 points on a motor that is running at 800 rpm or sometimes at 1000rpm. Then, i would like to calculate the average speed for every cycle.
The scan time of the plc is about 2 ms.
I have tried various ways, but the position of my 1st index is always starting at different angles.
I would like the 1st data position array to start collecting close to when the motor is at 0° and the last data position array to be close to 359/360°.
Could somebody help me with a pseudocode?
The scan time of the plc is about 2 ms.
I have tried various ways, but the position of my 1st index is always starting at different angles.
I would like the 1st data position array to start collecting close to when the motor is at 0° and the last data position array to be close to 359/360°.
Could somebody help me with a pseudocode?