Hello Guest it is April 18, 2024, 06:49:10 PM

Author Topic: Enabling motor from script  (Read 1445 times)

0 Members and 1 Guest are viewing this topic.

Enabling motor from script
« on: March 18, 2018, 02:41:32 PM »
I use two motors for X axis. There are two separate heads on X axis, they do not work simultaneously. For this purpose script move current carriage to parking position, remapt axis to ther motor and do homing. The problem is "Enable" output signal still persist on, even for unmapped motor and go to false only if I disable motor in config manualy. The same problem - if I disable axis, then enable signal still True. How can I Enable/Disable motor from Lua script?
Re: Enabling motor from script
« Reply #1 on: March 19, 2018, 10:17:28 PM »
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Enabling motor from script
« Reply #2 on: March 20, 2018, 12:29:29 AM »
Thanks for reply.
I read this post before, it is very usefull for motor remap.
But I want not only unmap, but disable motor, like uncheck enabled checkbox in configuration tab. I have try simple write configuration string via Lua into profile and reload config, but without luck.
Re: Enabling motor from script
« Reply #3 on: March 20, 2018, 02:28:42 AM »
Hi,
if I'm not mistaken you can programmatically turn off individual enable signals, the motor would stop. It may not then be necessary to unmap it, so long
as it stopped.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Enabling motor from script
« Reply #4 on: March 20, 2018, 05:14:24 AM »
Ok, I will try it