Manually provide the number of steps to be executed by a drive?
-
I am writing a M code for a new algorithm to reduce vibrations during printing. After a bit of preprocessing, my algorithm spits out the number of steps for each drive. Is there any way I can provide these steps directly to the drives to be executed without any segmentation, shaping etc?
Eg instead of providing
G0 X5
I would like to sendSome_G_code X400
which basically says the x drive should move 400 steps which would result in the same move asG0 X5
, assuming 80 steps/mm -
Just set steps per unit to1?
-
@lee7670 ...or just do the math of steps per unit measure to how many units it needs to move?... if you're at 100 steps per centimeter, the move there is obviously four centimeters?
-
@lee7670 @theKM
I can't do that since I do not want my input (400 in the eg) to go through any segmentation preprocessing etc i.e. I would just like to give it as a command to the stepper motors as steps. I am intercepting the number of steps for each drive for a move, process it through my algoroithm and then "reinsert" them for the actual drive motion