Lathe Macros

More
3 years 7 months ago #266430 by O.R
Replied by O.R on topic Lathe Macros
Here it is:
Code:
[EMC] MACHINE = Lathe DEBUG = 0 VERSION = 1.1 [DISPLAY] DISPLAY = axis EDITOR = gedit POSITION_OFFSET = RELATIVE POSITION_FEEDBACK = ACTUAL ARCDIVISION = 64 GRIDS = 10mm 20mm 50mm 100mm 1in 2in 5in 10in MAX_FEED_OVERRIDE = 1.2 MIN_SPINDLE_OVERRIDE = 0.5 MAX_SPINDLE_OVERRIDE = 1.2 DEFAULT_LINEAR_VELOCITY = 2.00 MIN_LINEAR_VELOCITY = 0 MAX_LINEAR_VELOCITY = 20.00 INTRO_GRAPHIC = linuxcnc.gif INTRO_TIME = 5 PROGRAM_PREFIX = /home/sorvi/linuxcnc/nc_files INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm PYVCP = custompanel.xml LATHE = 1 EMBED_TAB_NAME = Cycles [KINS] JOINTS = 2 KINEMATICS = trivkins coordinates=XZ [FILTER] PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image PROGRAM_EXTENSION = .py Python Script PROGRAM_EXTENSION = .nc,.tap G-Code File png = image-to-gcode gif = image-to-gcode jpg = image-to-gcode py = python [TASK] TASK = milltask CYCLE_TIME = 0.010 [RS274NGC] PARAMETER_FILE = linuxcnc.var [EMCMOT] EMCMOT = motmod COMM_TIMEOUT = 1.0 BASE_PERIOD = 132000 SERVO_PERIOD = 1056000 [HAL] HALFILE = Lathe.hal HALFILE = custom.hal POSTGUI_HALFILE = postgui_call_list.hal [TRAJ] COORDINATES =  X Z LINEAR_UNITS = mm ANGULAR_UNITS = degree DEFAULT_LINEAR_VELOCITY = 2.00 MAX_LINEAR_VELOCITY = 20.00 [EMCIO] EMCIO = io CYCLE_TIME = 0.100 TOOL_TABLE = tool.tbl [AXIS_X] MAX_VELOCITY = 13.1944444444 MAX_ACCELERATION = 300.0 MIN_LIMIT = -135.0 MAX_LIMIT = 0.001 #X-akseli [JOINT_0] TYPE = LINEAR HOME = 0.0 MIN_LIMIT = -135.0 MAX_LIMIT = 0.001 MAX_VELOCITY = 13.1944444444 MAX_ACCELERATION = 300.0 STEPGEN_MAXACCEL = 375.0 SCALE = -240.0 FERROR = 1 MIN_FERROR = .25 HOME_OFFSET = 0.000000 HOME_SEARCH_VEL = -10.000000 HOME_LATCH_VEL = 2.083333 BACKLASH = 0.2 [AXIS_Z] MAX_VELOCITY = 16.0 MAX_ACCELERATION = 210.0 MIN_LIMIT = -356.0 MAX_LIMIT = 0.001 #Z-akseli [JOINT_1] TYPE = LINEAR HOME = 0.0 MIN_LIMIT = -356.0 MAX_LIMIT = 0.001 MAX_VELOCITY = 16.0 MAX_ACCELERATION = 210.0 STEPGEN_MAXACCEL = 262.5 SCALE = -160.0 FERROR = 1 MIN_FERROR = .25 HOME_OFFSET = 0.0 BACKLASH = 0.055

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

More
3 years 7 months ago #266434 by andypugh
Replied by andypugh on topic Lathe Macros
You seem to only have EMBED_TAB_NAME and no EMBED_TAB_COMMAND

You need both.
linuxcnc.org/docs/stable/html/gui/gladev...ladevcp:embeding-tab

The correct EMBED_TAB_COMMAND can be found here:
forum.linuxcnc.org/41-guis/26550-lathe-macros?start=310#256581

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

More
3 years 7 months ago #266491 by O.R
Replied by O.R on topic Lathe Macros
I added that EMBED_TAB_COMMAND, now i get following GLADE VCP error:
Code:
LINUXCNC - 2.8.4-1-gb7824717b Machine configuration directory is '/home/sorvi/linuxcnc/configs/Lathe' Machine configuration file is 'Lathe.ini' Starting LinuxCNC... Found file(REL): ./Lathe.hal Waiting for component 'trivkins' to become ready.....Waited 3 seconds for master.  giving up. ...............Note: Using POSIX realtime config string '0 out' Found file(REL): ./custom.hal note: MAXV     max: 20.000 units/sec 1200.000 units/min note: LJOG     max: 20.000 units/sec 1200.000 units/min note: LJOG default: 2.000 units/sec 120.000 units/min note: jog_order='ZX' note: jog_invert=set(['X']) Waiting for component 'lathemacro' to become ready.............................. (gladevcp:1978): libglade-WARNING **: 15:41:38.559: Expected <glade-interface>.  Got <interface>. (gladevcp:1978): libglade-WARNING **: 15:41:38.570: did not finish in PARSER_FINISH state **** GLADE VCP ERROR:    With xml file: lathemacro.ui : could not create GladeXML object ........ <commandline>:0: gladevcp exited without becoming ready Embeded tab command "halcmd loadusr -Wn lathemacro gladevcp -c lathemacro -U notouch=1 -U norun=0 -u lathehandler.py -x 331350450 lathemacro.ui" exited with error: 1 Shutting down and cleaning up LinuxCNC... task: 1428 cycles, min=0.000573, max=0.071143, avg=0.010143, 0 latency excursions (> 10x expected cycle time of 0.010000s) Note: Using POSIX realtime LinuxCNC terminated with an error.  You can find more information in the log:     /home/sorvi/linuxcnc_debug.txt and     /home/sorvi/linuxcnc_print.txt as well as in the output of the shell command 'dmesg' and in the terminal

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

More
3 years 7 months ago #266493 by andypugh
Replied by andypugh on topic Lathe Macros
Which version of Glade do you have installed, and which version of the macros are you using?

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

More
3 years 7 months ago #266494 by O.R
Replied by O.R on topic Lathe Macros
I have not separately installed glade, what version should I have? Macros are v3.0.

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

More
3 years 7 months ago #266500 by andypugh
Replied by andypugh on topic Lathe Macros
If you are running Debian Buster or earlier you probably want the V2 macros.
Or, you can try installing the latest Glade, but there is a chance that will break any other GladeVCP panels you are using.
The Synaptic package manager should indicate which version of Glade you have installed.

github.com/andypugh/LatheMacros/releases

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

Time to create page: 0.242 seconds
Powered by Kunena Forum