Converting CNC-STEP HighZ-1000T to LinuxCNC with Mesa

More
07 Jun 2020 07:41 #170442 by bbsr_5a
and give the MIN a slight negative -0.1 to get the interpreter to a better calculation
TYPE = LINEAR
HOME = 550.0
MAX_VELOCITY = 200.0
MAX_ACCELERATION = 1200.0
STEPGEN_MAXACCEL = 2000.0
SCALE = 100.0
BACKLASH = 0.00
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -1.0
MAX_LIMIT = 570.5
HOME_OFFSET = 570.0
HOME_SEARCH_VEL = 40.0
HOME_LATCH_VEL = 5.0
HOME_FINAL_VEL = 15.0
HOME_SEQUENCE = 1

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

More
07 Jun 2020 09:01 #170448 by msageryd
Success!
Thank you all for your homing support.

The main problem was solved with HOME_IGNORE_LIMITS = True. After this I could start to config homing as I wanted it, and now it kind of works. I need to tweak speed/accel a bit.

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

More
07 Jun 2020 09:07 #170450 by msageryd
Is there a concept for trying out a suitable acceleration for the machine? Max speed is in the machine spec, but acceleration needs to be tested. Do I need to tweak the ini file and restart LNCNC each time?

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

More
07 Jun 2020 09:08 #170451 by bbsr_5a
if it is posible for you please get the code you ended up here
not the intirer ini only the section like i did it above AXIS/Joint configuration of all involves XYZA

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

More
07 Jun 2020 09:37 #170457 by tommylight
Check the "calibration" form the "machine" menu, it should have everything that can be edited/tuned without restarting LinuxCNC.

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

More
07 Jun 2020 09:38 #170458 by rodw
The maths behind calculating acceleration is complex so trial and error is the go. There is a component called sim_pin which you can install from your INI file that opens up a little window that allows you to edit ini file settings on the fly. Now I know of it I would use that when setting up a new machine. When you start to loose steps, back off about 15-20%

linuxcnc.org/docs/2.8/html/man/man1/sim_pin.1.html

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

More
07 Jun 2020 09:38 #170459 by msageryd
[AXIS_X]
MIN_LIMIT = -0.1
MAX_LIMIT = 570.1
MAX_VELOCITY = 200
MAX_ACCELERATION = 500

[AXIS_Y]
MIN_LIMIT = -0.1
MAX_LIMIT = 1010
MAX_VELOCITY = 200
MAX_ACCELERATION = 500

[AXIS_Z]
MIN_LIMIT = -109
MAX_LIMIT = 0.1
MAX_VELOCITY = 30
MAX_ACCELERATION = 400

[JOINT_0]
AXIS = Y
MIN_LIMIT = -0.1
MAX_LIMIT = 1010
MAX_VELOCITY = 200
MAX_ACCELERATION = 500
TYPE = LINEAR
SCALE = 200
STEPGEN_MAX_VEL = 240.0
STEPGEN_MAX_ACC = 600.0
FERROR = 0.0051
MIN_FERROR = 0.0025
DIRSETUP = 20000
DIRHOLD = 20000
STEPLEN = 5000
STEPSPACE = 5000
DEADBAND = 0
P = 1000
I = 0
D = 0
FF0 = 0
FF1 = 1
FF2 = 0.00013
BIAS = 0
MAX_OUTPUT = 0
MAX_ERROR = 0.0127
HOME = 10
HOME_OFFSET = 0
HOME_SEARCH_VEL = -30
HOME_LATCH_VEL = -5
HOME_SEQUENCE = 0
HOME_USE_INDEX = False
HOME_IGNORE_LIMITS = True

[JOINT_1]
AXIS = X
MIN_LIMIT = -0.1
MAX_LIMIT = 570.1
MAX_VELOCITY = 200
MAX_ACCELERATION = 500
TYPE = LINEAR
SCALE = 200
STEPGEN_MAX_VEL = 240.0
STEPGEN_MAX_ACC = 600.0
FERROR = 0.0051
MIN_FERROR = 0.0025
DIRSETUP = 20000
DIRHOLD = 20000
STEPLEN = 5000
STEPSPACE = 5000
DEADBAND = 0
P = 1000
I = 0
D = 0
FF0 = 0
FF1 = 1
FF2 = 0.00013
BIAS = 0
MAX_OUTPUT = 0
MAX_ERROR = 0.0127
HOME = 500
HOME_OFFSET = 570
HOME_SEARCH_VEL = 60
HOME_LATCH_VEL = 5
HOME_SEQUENCE = 0
HOME_USE_INDEX = False
HOME_IGNORE_LIMITS = True

[JOINT_2]
AXIS = Z
MIN_LIMIT = -109
MAX_LIMIT = 0.1
MAX_VELOCITY = 30
MAX_ACCELERATION = 400
TYPE = LINEAR
SCALE = 333.3333
STEPGEN_MAX_VEL = 36.0
STEPGEN_MAX_ACC = 480.0
FERROR = 0.0051
MIN_FERROR = 0.0025
DIRSETUP = 20000
DIRHOLD = 20000
STEPLEN = 5000
STEPSPACE = 5000
DEADBAND = 0
P = 1000
I = 0
D = 0
FF0 = 0
FF1 = 1
FF2 = 0.00013
BIAS = 0
MAX_OUTPUT = 0
MAX_ERROR = 0.0127
HOME = -10
HOME_OFFSET = 0
HOME_SEARCH_VEL = 30
HOME_LATCH_VEL = 5
HOME_SEQUENCE = 0
HOME_USE_INDEX = False
HOME_IGNORE_LIMITS = True

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

More
07 Jun 2020 10:06 #170463 by msageryd
Thank you @rodw, I'll try sim-pin. I tried the calibration tool, but I didn't have the patience to look up the math.
The following user(s) said Thank You: rodw

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

More
07 Jun 2020 11:15 - 07 Jun 2020 11:21 #170466 by msageryd
Next question for this super-supportive forum:

Where can I find the mapping between the actual pins on the 7i96 and the gpoi_nn pins in HAL? More specifically I need to know which gpio-pin is related to out01 and out02 on the board.

EDIT:
Found the pins.
hm2_7i96_0.ssr.00.out-00
hm2_7i96_0.ssr.00.out-01

It would be great if someone could link me to a document with the pin naming anyway
Last edit: 07 Jun 2020 11:21 by msageryd.

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

More
07 Jun 2020 12:01 #170469 by msageryd
7i96 Configuration Tool has a spindle tab. I'm using firmware 4+1, so the spindle PWM should be at hm2_7i96.0.pwmgen.00.value.

This pin does not get connected by the config tool. I can set it manually to turn the spindle. To what signal should I connect the PWM?

Also, how do I know what spindle frequency to set in the config? Default seems to be 20000, which didn't work. 5000 works.

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

Moderators: cncbasher
Time to create page: 0.118 seconds
Powered by Kunena Forum