Hi, I'm looking for a way to control a stepper with the Redeem software.

Hi,
I’m looking for a way to control a stepper with the Redeem software. I’d like to do it without any g-codes, just with a short .py-script. Right now we use the detour via the g-codes. It works an looks like this:

    if heaterState:
	# Turn motor forward
	os.system("echo G1 E-3.5 F210>/dev/testing_1")

The problem is that I have to use this command every second. Therefore during longer prints the system starts jerking.

Does anybody knows how to move a stepper with a certain pace directly in Redeem?

Kind regards Jan

The gcode is how redeem expects commands to be queued up… If you want to execute the script every second you can wrap it with a ‘watch -n 1 python http://script.py

Or you can add a custom gcode to your slicer to add the gcode into it.

Thank you for your answers. I already execute it every second which causes the trouble. The custom g-code is an idea and I’ll try it. Nevertheless I’d like to avoid the g-code and use a .py-class for the control of the steppers.