Python Version On AXIS

More
24 Jan 2012 09:39 #17090 by ArcEye
Replied by ArcEye on topic Re:Python Version On AXIS
Hi

can it work?

The answer is no on so many different levels that I don't know where to start.

I can only refer you to this
linuxcnc.org/docs/2.4/html/gcode_main.html

There is no fast track to g-code or linux and if you are using both for the first time, it will be a lot of heavy reading and experimentation before things start to fall into place.

When you know how to write g code and what part M codes and sub-routines play, it will become clearer to you what you need to do and you can read the link I posted and other docs about implementing them, with some understanding.

For now, if you want to clear the plot, I would suggest to use Ctrl K or click on the brush icon, lot simpler.

regards

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

More
24 Jan 2012 16:56 #17098 by grokhehe
Replied by grokhehe on topic Re:Python Version On AXIS
Based on this picture :
linuxcnc.org/docs/2.4/html/polar02.png

Can I clear the white line with G-Code or M Command?
Thanks

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

More
24 Jan 2012 17:53 - 24 Jan 2012 17:59 #17099 by ArcEye
Replied by ArcEye on topic Re:Python Version On AXIS
No, why would you want to, that white line is the projected path based upon the g code file that has been loaded

For instance
G17 G21 G8 G40 G49
G80
G90 G94
F150 S800
M3
M8

G00 X0 Y0 Z20
G00 Z2

G01 Z-0.5
G01 X20 Y-20
G01 X0 Y-40
G01 X-20 Y-20
G01 X0 Y0

M5
M9
M2

will result in this (very similar to your picture)



What you can clear is the yellow trace from jogging, homing, MDI moves and the red trace from running the program.
Attachments:
Last edit: 24 Jan 2012 17:59 by ArcEye.

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

More
24 Jan 2012 18:18 #17100 by grokhehe
Replied by grokhehe on topic Re:Python Version On AXIS
Ok Thanks for the answer, now I get it

BigJohnT,
I look into your code and I make like this :

class GUI(Tkinter.Frame):
def __init__(self, master = None):
Tkinter.Frame.__init__(self, master, width = 550, height = 550, borderwidth = 1)

self.initGUI()
self.createMenu()

def initGUI(self):
self.sp1 = Tkinter.Label(self)
self.sp1.place(relx = 0.26, rely = 0.47)

self.sp2 = Tkinter.Label(self)
self.sp2.place(relx = 0.1, rely = 0.17)

self.sp3 = Tkinter.Label(self)
self.sp3.place(relx = 0.26, rely = 0.31)

def createMenu(self):
#Create the Menu base
self.menu = Tkinter.Menu(self)
#Add the Menu
self.master.config(menu=self.menu)
#Create our File menu
self.FileMenu = Tkinter.Menu(self.menu)
#Add our Menu to the Base Menu
self.menu.add_cascade(label='File')
#Add items to the menu
self.FileMenu.add_command(label='New')
self.FileMenu.add_command(label='Open')
self.FileMenu.add_separator()
self.FileMenu.add_command(label='Quit')

root = GUI()
root.master.title('L-System')
root.master.geometry('620x300+400+100')
root.master.resizable(0, 0)

root.mainloop()

The question is why my Tkinter.Label didn't show?
Could you please help me?

Thanks..

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

More
25 Jan 2012 12:30 #17119 by BigJohnT
Replied by BigJohnT on topic Re:Python Version On AXIS
I don't know what code of mine your looking at but I've never programmed anything in Tcl.

John

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

More
26 Jan 2012 16:13 #17168 by grokhehe
Replied by grokhehe on topic Re:Python Version On AXIS
Hi, now the question is :

Can i make bigger the red fence line ?
Because when my picture become bigger, error comes with message "The Y is overlimit"

Thanks..
Attachments:

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

More
26 Jan 2012 22:38 #17174 by dab77
Replied by dab77 on topic Re:Python Version On AXIS
The red fence is there because remarks the limits of your machine. if your limits are correctly set into your .ini file [JOINTS] section, then your file shouldn't be bigger than that.

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

More
27 Jan 2012 08:13 #17179 by grokhehe
Replied by grokhehe on topic Re:Python Version On AXIS
Thx for the reply,

But what I mean is can I make rthe red fence bigger by setting in axis / .ini file ?

Thanks

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

More
27 Jan 2012 13:33 #17187 by BigJohnT
Replied by BigJohnT on topic Re:Python Version On AXIS
Yes change the min and max limit for the axis in the ini as shown here .

John

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

Time to create page: 0.079 seconds
Powered by Kunena Forum