Linux Newb
- stubb21
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 1
23 Jan 2020 22:17 #155580
by stubb21
Linux Newb was created by stubb21
Hi Ya'll, apologies if this question is answered somewhere, I just don't know what to search. I have been using linuxcnc for a couple years and I'm super comfortable with the interface and day to day type things. What I don't know how to modify are the "calibration" files as I would call them.
I am looking to increase my max feed rates for X axis at the moment, I know I can run quicker but don't know how to adjust it in the files. Any help would be greatly appreciated!
Thank you!
I am looking to increase my max feed rates for X axis at the moment, I know I can run quicker but don't know how to adjust it in the files. Any help would be greatly appreciated!
Thank you!
Please Log in or Create an account to join the conversation.
- Clive S
- Offline
- Platinum Member
Less
More
- Posts: 2240
- Thank you received: 474
23 Jan 2020 22:31 #155582
by Clive S
Replied by Clive S on topic Linux Newb
Its always a good idea to post your config files ie hal and ini and give what the version of linuxcnc is.
Please Log in or Create an account to join the conversation.
- stubb21
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 1
23 Jan 2020 22:34 #155583
by stubb21
Replied by stubb21 on topic Linux Newb
Ok gotcha. I'll look around and see if I can find those! Is there just 2?
Please Log in or Create an account to join the conversation.
- Clive S
- Offline
- Platinum Member
Less
More
- Posts: 2240
- Thank you received: 474
23 Jan 2020 22:37 #155584
by Clive S
They are the main ones. You should find them in the config folder
Replied by Clive S on topic Linux Newb
Ok gotcha. I'll look around and see if I can find those! Is there just 2?
They are the main ones. You should find them in the config folder
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19519
- Thank you received: 6548
24 Jan 2020 01:37 #155612
by tommylight
Replied by tommylight on topic Linux Newb
/home/user_mane/linuxcnc/configs/name_of_your_config
there are two files with the same name as the folder, one with .hal and one with .ini
You will have to open that INI file and edit it with a text editor (NOT with word processors like libreoffice), change the values of the max_velocity for the axis/joints and save.
there are two files with the same name as the folder, one with .hal and one with .ini
You will have to open that INI file and edit it with a text editor (NOT with word processors like libreoffice), change the values of the max_velocity for the axis/joints and save.
Please Log in or Create an account to join the conversation.
- stubb21
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 1
24 Jan 2020 04:42 #155626
by stubb21
Replied by stubb21 on topic Linux Newb
Thank you all for the replies. Sorry I don't know linux at all, I only use it to run the machine. Is this what you're looking for? I don't see a .ini file
# Generated by stepconf at Sat Feb 23 21:15:41 2013
# If you make changes to this file, they will be
# overwritten when you run stepconf again
[EMC]
MACHINE = Joe
DEBUG = 0
[DISPLAY]
DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.2
INTRO_GRAPHIC = emc2.gif
INTRO_TIME = 0.1
PROGRAM_PREFIX = /home/emc2/emc2/nc_files
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in
PYVCP = custompanel.xml
[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python
[TASK]
TASK = milltask
CYCLE_TIME = 0.010
[RS274NGC]
PARAMETER_FILE = emc.var
[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
BASE_PERIOD = 20833
SERVO_PERIOD = 1000000
[HAL]
HALUI = halui
HALFILE = Joe.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal
[HALUI]
# add halui MDI commands here (max 64)
[TRAJ]
AXES = 3
COORDINATES = X Y Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 0.675
MAX_LINEAR_VELOCITY = 2.0
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl
[AXIS_0]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = .675
MAX_ACCELERATION = 10.0
STEPGEN_MAXACCEL = 12.5
SCALE = 16000.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -100.0
MAX_LIMIT = 100.0
HOME_OFFSET = 0.0
[AXIS_1]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 1.0
MAX_ACCELERATION = 10.0
STEPGEN_MAXACCEL = 12.5
SCALE = 16000.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -100.0
MAX_LIMIT = 100.0
HOME_OFFSET = 0.0
[AXIS_2]
TYPE = LINEAR
HOME = 6.0
MAX_VELOCITY = 0.4
MAX_ACCELERATION = 5.0
STEPGEN_MAXACCEL = 6.25
SCALE = 16000.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -100.0
MAX_LIMIT = 100.0
HOME_OFFSET = 6.0
# Generated by stepconf at Sat Feb 23 21:15:41 2013
# If you make changes to this file, they will be
# overwritten when you run stepconf again
[EMC]
MACHINE = Joe
DEBUG = 0
[DISPLAY]
DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.2
INTRO_GRAPHIC = emc2.gif
INTRO_TIME = 0.1
PROGRAM_PREFIX = /home/emc2/emc2/nc_files
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in
PYVCP = custompanel.xml
[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python
[TASK]
TASK = milltask
CYCLE_TIME = 0.010
[RS274NGC]
PARAMETER_FILE = emc.var
[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
BASE_PERIOD = 20833
SERVO_PERIOD = 1000000
[HAL]
HALUI = halui
HALFILE = Joe.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal
[HALUI]
# add halui MDI commands here (max 64)
[TRAJ]
AXES = 3
COORDINATES = X Y Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 0.675
MAX_LINEAR_VELOCITY = 2.0
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl
[AXIS_0]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = .675
MAX_ACCELERATION = 10.0
STEPGEN_MAXACCEL = 12.5
SCALE = 16000.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -100.0
MAX_LIMIT = 100.0
HOME_OFFSET = 0.0
[AXIS_1]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 1.0
MAX_ACCELERATION = 10.0
STEPGEN_MAXACCEL = 12.5
SCALE = 16000.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -100.0
MAX_LIMIT = 100.0
HOME_OFFSET = 0.0
[AXIS_2]
TYPE = LINEAR
HOME = 6.0
MAX_VELOCITY = 0.4
MAX_ACCELERATION = 5.0
STEPGEN_MAXACCEL = 6.25
SCALE = 16000.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -100.0
MAX_LIMIT = 100.0
HOME_OFFSET = 6.0
Please Log in or Create an account to join the conversation.
- stubb21
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 1
24 Jan 2020 19:27 #155668
by stubb21
Replied by stubb21 on topic Linux Newb
What is the calculation for Max_Velocity? And what is difference between Acceleration and stepgen_maxaccel? Not sure what to change. My Y acces is set to max of 60 ipm I believe, I want to mess with X and see how much I can increase it as well, gradually of course so I don't stall out.
Thanks again.
Thanks again.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19519
- Thank you received: 6548
24 Jan 2020 20:08 #155672
by tommylight
Replied by tommylight on topic Linux Newb
Yes this is the ini file, there is another file with the same name in that folder with the hal extension.
Below in red some explanations, so it should be easier to figure out what to change.
Below in red some explanations, so it should be easier to figure out what to change.
Other stuff is self explanatory.Thank you all for the replies. Sorry I don't know linux at all, I only use it to run the machine. Is this what you're looking for? I don't see a .ini file
# Generated by stepconf at Sat Feb 23 21:15:41 2013
# If you make changes to this file, they will be
# overwritten when you run stepconf again
[EMC]
MACHINE = Joe
DEBUG = 0
[DISPLAY]
DISPLAY = axis
EDITOR = gedit
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.2
INTRO_GRAPHIC = emc2.gif
INTRO_TIME = 0.1
PROGRAM_PREFIX = /home/emc2/emc2/nc_files
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in
PYVCP = custompanel.xml
[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python
[TASK]
TASK = milltask
CYCLE_TIME = 0.010
[RS274NGC]
PARAMETER_FILE = emc.var
[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
BASE_PERIOD = 20833 Make this 100000 just to avoid some latency/cheap drive issues
SERVO_PERIOD = 1000000
[HAL]
HALUI = halui
HALFILE = Joe.hal
HALFILE = custom.hal
POSTGUI_HALFILE = custom_postgui.hal
[HALUI]
# add halui MDI commands here (max 64)
[TRAJ]
AXES = 3
COORDINATES = X Y Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 0.675
MAX_LINEAR_VELOCITY = 2.0 This should be the max velocity in seconds for the machine
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl
[AXIS_0]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = .675 This should be the max velocity in seconds for this axis, change also for other axis
MAX_ACCELERATION = 10.0 If you need to change this, you will have to change below also
STEPGEN_MAXACCEL = 12.5
SCALE = 16000.0 This should be the scale, or how many pulses to send per inch of movement
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -100.0
MAX_LIMIT = 100.0
HOME_OFFSET = 0.0
[AXIS_1]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 1.0
MAX_ACCELERATION = 10.0
STEPGEN_MAXACCEL = 12.5
SCALE = 16000.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -100.0
MAX_LIMIT = 100.0
HOME_OFFSET = 0.0
[AXIS_2]
TYPE = LINEAR
HOME = 6.0
MAX_VELOCITY = 0.4
MAX_ACCELERATION = 5.0
STEPGEN_MAXACCEL = 6.25
SCALE = 16000.0
FERROR = 0.05
MIN_FERROR = 0.01
MIN_LIMIT = -100.0
MAX_LIMIT = 100.0
HOME_OFFSET = 6.0
The following user(s) said Thank You: stubb21
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 4957
- Thank you received: 1441
24 Jan 2020 20:33 #155679
by Todd Zuercher
Replied by Todd Zuercher on topic Linux Newb
The difference between max-acceleration and stepgen max acceleration is. The max-acceleration is the max that the axis will be commanded by the motion planner. The stepgen one is the max the stepgen will go regardless of what it is commanded. It needs to be set higher than the ordinary one to allow for headroom for the pid to work and other things such as backlash compensation.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- stubb21
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 1
25 Jan 2020 17:17 #155738
by stubb21
Replied by stubb21 on topic Linux Newb
Thank you for breaking it down. So if I want to increase my top end feed rate and cutting speed I would just increase max_velocity right? Guessing Axis 0 is X, 1 is Y and 2 is Z? Y is currently at 60 IPM max which is pretty nice, I want to see if X will run smoothly at that speed as well.
As far as MAX_LINEAR_VELOCITY and SCALE I don't know what those are or if I should even mess with them. I bought this machine used so I don't know all the specs that went into building it.
As far as MAX_LINEAR_VELOCITY and SCALE I don't know what those are or if I should even mess with them. I bought this machine used so I don't know all the specs that went into building it.
Please Log in or Create an account to join the conversation.
Time to create page: 0.071 seconds