python interface - limit commad
11 Jan 2015 21:29 #54878
by ww34ww34
python interface - limit commad was created by ww34ww34
I'm trying to write a custom interface and using python api.
But when I try the command
I have as result:Anyone can Explain me why?
regards.
But when I try the command
s = linuxcnc.stat.
s.limit
I have as result:
(0, 0, 0, 0, 0, 0, 0, 0, 0)
regards.
Please Log in or Create an account to join the conversation.
11 Jan 2015 21:57 - 11 Jan 2015 21:58 #54879
by BigJohnT
Replied by BigJohnT on topic python interface - limit commad
Seems to be normal to me for no limits violated. What were you expecting?
I assume you just gave a snippet of your code...
JT
I assume you just gave a snippet of your code...
JT
Last edit: 11 Jan 2015 21:58 by BigJohnT.
Please Log in or Create an account to join the conversation.
11 Jan 2015 22:38 #54881
by ww34ww34
Replied by ww34ww34 on topic python interface - limit commad
Ok.. so i misunderstand command. How i can get size of software X limit? From Ini file?
I want to do a mdi command like:
thanks
I want to do a mdi command like:
cmd = "G0 X%" % xmin
self.emccommand.mdi(cmd)
thanks
Please Log in or Create an account to join the conversation.
12 Jan 2015 00:42 #54886
by BigJohnT
Replied by BigJohnT on topic python interface - limit commad
If your wanting to go to the X0 machine coordinate the G code is:
I guess it depends if you set your machine up in the normal way or some other way. Normally the machine coordinate X0 is the minimum limit of the X axis or just before the minimum limit
JT
G53 G0 or G1 X0
I guess it depends if you set your machine up in the normal way or some other way. Normally the machine coordinate X0 is the minimum limit of the X axis or just before the minimum limit
JT
The following user(s) said Thank You: ww34ww34
Please Log in or Create an account to join the conversation.
25 Jan 2015 23:57 #55323
by ww34ww34
Replied by ww34ww34 on topic [solved] python interface - limit commad
I simply use a wrog command for my purpose.
I get the X min limit from Ini file.
And then i useThanks.
I get the X min limit from Ini file.
And then i use
cmd = "G0 X%" % xmin
self.emccommand.mdi(cmd)
Please Log in or Create an account to join the conversation.
Moderators: HansU
Time to create page: 0.079 seconds