Spindle control using XHC-WHB04B-6 pendant

More
2 years 10 months ago - 2 years 10 months ago #289384 by Aciera
Gmoccapy uses the python interface command channel to start the spindle:
Code:
        if command == "stop":             # documentation of self.command.spindle()             # linuxcnc.spindle(direction, speed, spindle=0)             self.command.spindle(0)             self.widgets.lbl_spindle_act.set_label("S 0")         elif command == "forward":             self.command.spindle(1, rpm_out)         elif command == "reverse":             self.command.spindle(-1, rpm_out)         else:             LOG.debug("Something went wrong, we have an unknown spindle widget {0}".format(command))
Last edit: 2 years 10 months ago by Aciera.
The following user(s) said Thank You: pistrix

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #289385 by Aciera
linuxcnc.org/docs/html/config/python-interface.html

You could create a custom python component to control the spindle using the python interface
The following user(s) said Thank You: pistrix

Please Log in or Create an account to join the conversation.

Moderators: newbynobi, HansU
Time to create page: 0.090 seconds
Powered by Kunena Forum