Problem in using state() command

More
9 years 1 month ago #99061 by developer
Hi
I'm working on a new GUI for linuxcnc and I'v put following code into python file :
Code:
self._c = linuxcnc.command() self._s = linuxcnc.stat() self._e = linuxcnc.error_channel() self._s.poll() print self._s.task_state if self._s.task_state == linuxcnc.STATE_ESTOP: self._c.state(linuxcnc.STATE_ESTOP_RESET) self._c.wait_complete() self._s.poll() print self._s.task_state else: self._c.state(linuxcnc.STATE_ESTOP) self._c.wait_complete() self._s.poll() print self._s.task_state
But it prints two '1' (as state) which means linuxcnc in STATE_ESTOP and it's state cannot be changed to STATE_ESTOP_RESET. So it shows
Code:
self._c.state(linuxcnc.STATE_ESTOP_RESET)
dose not work correctly.

Anyone can help me?

Please Log in to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum