Lathe Macros

More
10 Mar 2023 18:21 #266313 by O.R
Replied by O.R on topic Lathe Macros
Ok I tried like this:

SUBROUTINE_PATH = macros:./home/sorvi/Desktop/Lathe/Lathe.ini:.

or

SUBROUTINE_PATH = /home/sorvi/Desktop/Lathe/Lathe.ini:.

but I get still same errors than previously.

I don't have any clue what i'm doing. Are these macros kind of add on to my original Lathe configuration or is it not related to the original at all. Should i have to for example make joint settings similarly to the "lathe_macro.ini" file, like i have done in my "Lathe.ini" file originaly.

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

More
10 Mar 2023 18:56 #266316 by andypugh
Replied by andypugh on topic Lathe Macros
The macros are an add-on.

Start with a working lathe config that controls your lathe adequately, then add the macros as a tab in the GUI.

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

More
10 Mar 2023 21:05 #266336 by O.R
Replied by O.R on topic Lathe Macros
Ok, i have all ready working configuration for lathe. I added macro files to my working lathe configuration folder which is on my desktop. Then i added that "EMBED_TAB_NAME = Cycles" line to my working lathe.ini file about same spot. After that i tried add that SUBROUTINE_PATH . If I start my working lathe configuration (desktop shortcut) i can not see any Cycles tab and i do not get any errors. What i should do next?

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

More
10 Mar 2023 21:34 #266338 by andypugh
Replied by andypugh on topic Lathe Macros
Which GUI are you using?
There is a wierd Gmoccapy bug where the tabs all hide at first...

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

More
10 Mar 2023 21:54 #266340 by O.R
Replied by O.R on topic Lathe Macros
I use Axis GUI

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

More
10 Mar 2023 22:09 #266342 by andypugh
Replied by andypugh on topic Lathe Macros
Are there really no messages printed if you launch from the command line?

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

More
11 Mar 2023 10:43 #266392 by O.R
Replied by O.R on topic Lathe Macros
ok, i now noticed that there is message "invalid tab configuration" when I start my working lathe configuration. I tested that if I remove "EMBED_TAB_NAME = Cycles" command, then message disappears. I'm using linuxcnc version 2.8.4.

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

More
11 Mar 2023 13:55 #266401 by cmorley
Replied by cmorley on topic Lathe Macros
please post your INI file.

This explains a but:

linuxcnc.org/docs/2.9/html/gui/gladevcp....adevcp:embedding-tab

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

More
11 Mar 2023 20:03 #266430 by O.R
Replied by O.R on topic Lathe Macros
Here it is:
[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
11 Mar 2023 21:42 #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.

Time to create page: 0.136 seconds
Powered by Kunena Forum