Manually provide the number of steps to be executed by a drive?
jazbaatbadalgaye last edited by jazbaatbadalgaye
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 X5I would like to send
Some_G_code X400which basically says the x drive should move 400 steps which would result in the same move as
G0 X5, assuming 80 steps/mm
lee7670 last edited by
Just set steps per unit to1?
theKM last edited by theKM
@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?
jazbaatbadalgaye last edited by
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