Python module problem.
01 Aug 2013 00:26 - 01 Aug 2013 00:27 #37301
by ghimli
Python module problem. was created by ghimli
I'm using lython linuxcnc module as stated on wiki page. But When i try to do:
c=linux.command()
c.program_open("something.ngc")
I got error: file is already open, can't open file (in linuxcnc main program).
When reading status:
s=linuxcnc.stat()
s.poll()
I always get M2 in command field (empty when machine is not running), 196 in current_line field.
I'm using simulator and need those values to control it.
c=linux.command()
c.program_open("something.ngc")
I got error: file is already open, can't open file (in linuxcnc main program).
When reading status:
s=linuxcnc.stat()
s.poll()
I always get M2 in command field (empty when machine is not running), 196 in current_line field.
I'm using simulator and need those values to control it.
Last edit: 01 Aug 2013 00:27 by ghimli.
Please Log in or Create an account to join the conversation.
01 Aug 2013 04:32 #37310
by ghimli
Replied by ghimli on topic Python module problem.
After some testing i found that it gives command nad line but when doing line 102 it gives line current_line=2095 and command from line 3097. For 103 current line=2096 and command from line 3098 and so on. Strange behaviour.
Please Log in or Create an account to join the conversation.
Time to create page: 0.096 seconds