Forum Header

Help: configure a Servo motor with (PUL/DIR) as a Spindle by Par-port stepconfig

More
1 year 11 months ago - 1 year 11 months ago #314831 by sk_linuxcnc
sincere apologies. since i do not initially know or understand how stepgen actually works (even after reading the stepgen and hal manual) I have just copied the code from another solution. however, the spindle still doesnt work. infact the AXIS gui doesnt start. i get the following error. "./test_grofi.hal:72: Pin 'stepgen.2.step' does not exist
3015"

please help me and guide me through the basics. :´)

EDIT: added this to the start of the HAL file loadrt stepgen step_type=0,0,0 ctrl_type=p,p,v
and removed a typo on line 79: setp stepgen.2.dirsetup       [SPINDLE_0]DIRSETUP

and now the servomotor moves as a spindle. next i will have to set the speed and rpm as i need. Many thanks for pushing me into looking at the right direction!! Cheers :D
Last edit: 1 year 11 months ago by sk_linuxcnc.

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

More
1 year 11 months ago #314919 by sk_linuxcnc
how should i attain the maximum possible rotational speed on my spindle?

my current settings are:
[SPINDLE_0]
SCALE = 6400
MAX_VELOCITY = 20000.0
MAX_ACCELERATION = 40000
STEPGEN_MAXVEL = 25000.00
STEPGEN_MAXACCEL = 40000
DIRSETUP = 10000
DIRHOLD = 10000
STEPLEN = 5000
STEPSPACE = 5000
STEP_SCALE = 6400

the spindle motor is set to 800 Pulses/rev

when i configure the motor as the axis, the fastest possible speed is apparently a bit higher than i can achieve when configured as a spindle

#*** AXIS_A *******************************
[AXIS_A]
MAX_VELOCITY = 971.590909090909
MAX_ACCELERATION = 36000.0
MIN_LIMIT = -99999999999999.0
MAX_LIMIT = 99999999999999.0

[JOINT_3]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -99999999999999.0
MAX_LIMIT = 99999999999999.0
MAX_VELOCITY = 971.590909090909
MAX_ACCELERATION = 36000.0
STEPGEN_MAXACCEL = 45000.0
SCALE = 17.77777777777778
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 0.0
#******************************************

Thankyou in advance. looking forward

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

More
1 year 11 months ago #314931 by PCW
The limit will likely be the rate at which steps can be generated by the parallel port

If you set the stepgen velocity with RPM and you have 800 steps/turn the step scale should
be 800/60 = 13.3333.  With a 55 usec base period and 800 steps per turn, this limits you to 1350 RPM
The following user(s) said Thank You: sk_linuxcnc

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

More
1 year 11 months ago #314974 by sk_linuxcnc
and how about the other terms,
SCALE = 6400
DIRSETUP = 10000
DIRHOLD = 10000
STEPLEN = 5000
STEPSPACE = 5000

because i noticed that if i keep scale as 800, then the spindle rotates very slowly.
what values should the rest of the terms, dirsetup, dirhold, steplen and stepspace should have to maximise the rpm.

i certainly can see that when the motor is set as A axis(with max values), it turns faster than with my current settings as spindle.

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

More
1 year 11 months ago #314981 by PCW
A couple of things:

You should use reset mode for all axis/spindle
this should double you maximum step rate

Can you post your current hal/ini files?
The following user(s) said Thank You: sk_linuxcnc

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

More
1 year 11 months ago #315020 by sk_linuxcnc
**the values in the Z axis config are just a replica of the parameters i used for A axis in a different config. (in reality i dont have a Z axis.)

the attached post is where i describe my machine, and the use case of Spindle, instead of A axis. but i would be really happy if you could give your 2 cents on this matter too! :)

forum.linuxcnc.org/20-g-code/54516-help-...usly?start=10#314987
 

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

Time to create page: 0.267 seconds
Powered by Kunena Forum