PyCNC icon indicating copy to clipboard operation
PyCNC copied to clipboard

Config.py doesn't change 2us STEPPER_PULSE_LENGTH_US

Open ssjimh opened this issue 7 years ago • 2 comments

My stepper driver modules require longer step pulses, but changing STEPPER_PULSE_LENGTH_US doesn't change the pulses as measured with an oscilloscope, they are 2 us.

I also have to use "sudo pycnc" from the command line to get it to work at all. Do I have my paths or permissions wrong?

ssjimh avatar Apr 18 '18 13:04 ssjimh

It turns out that the config.py file is not setting configuration. Making changes to parameters in the config.py file doesn't change the operation of pycnc. My motors run when I enter G-code, but I can't change the steps/mm, directions, etc. Is there a setup step to tell pycnc where the configuration file is? Thanks, Jim

ssjimh avatar Apr 19 '18 17:04 ssjimh

Hi,

I wonder if you solved this, however, config.py is code so you need to restart the PyCNC to pickup changes, also immediate run is handled by

# Run command immediately after receiving and stream new pulses, otherwise
# buffer will be prepared firstly and then command will run.
# Before enabling this feature, please make sure that board performance is
# enough for streaming pulses(faster then real time).
INSTANT_RUN = True

regards

MaxWinther avatar Nov 03 '21 11:11 MaxWinther