python interface - limit commad

More
11 Jan 2015 21:29 #54878 by ww34ww34
I'm trying to write a custom interface and using python api.
But when I try the command
s = linuxcnc.stat.
s.limit

I have as result:
(0, 0, 0, 0, 0, 0, 0, 0, 0)
Anyone can Explain me why?


regards.

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

More
11 Jan 2015 21:57 - 11 Jan 2015 21:58 #54879 by BigJohnT
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
Last edit: 11 Jan 2015 21:58 by BigJohnT.

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

More
11 Jan 2015 22:38 #54881 by ww34ww34
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:
cmd = "G0 X%" % xmin
      self.emccommand.mdi(cmd)

thanks

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

More
12 Jan 2015 00:42 #54886 by BigJohnT
If your wanting to go to the X0 machine coordinate the G code is:
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.

More
25 Jan 2015 23:57 #55323 by ww34ww34
I simply use a wrog command for my purpose.
I get the X min limit from Ini file.
And then i use
cmd = "G0 X%" % xmin
      self.emccommand.mdi(cmd)
Thanks.

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

Moderators: HansU
Time to create page: 0.079 seconds
Powered by Kunena Forum