Need help configuring a 5i25 with Gecko G540

More
8 years 4 months ago #112107 by ericg
Thanks PCW,

I did read that matching, from using --readhmid etc,

but I still do not understand how to match them in the I/O 3 tab.

I have included a screenshot of my I/O 3 tab, perhaps I have not got things quite correct from the start. Should I see numbers like GPIO13?

Eric

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

More
8 years 4 months ago #112110 by PCW
I was suggesting theat pncconf doesn't seem to work with that combination so you would have to edit the hal file directly to connect the limit switches in hal

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

More
8 years 4 months ago #112121 by ericg
Thanks Peter,

I needed to change Min X + Home etc for each axis to Home X Home Y etc then hand edit the HAL file to change the GPIO numbers as you indicated.
This is now working in that I can turn the system on, home the axis as per the pncconfig file I created for each axis (when I remembered to switch from mm/s to mm/min) then move and touch off and run a job.

So a big thank you for that.

I would now like to control my spindle by setting the output on pin 14 to switch between 0-5v and 50Hz base PWM freq. (does the 0-5v depend on the PC's bus? mine is 3.3v) and also spindle on

Thanks again for your help.
Eric

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

More
8 years 4 months ago #112182 by andypugh
Does your firmware have a PWM module on pin 14?
(I see from your PnCConf screenshot that you asked for it, but I am not clear which pin the PWM appears on. That is fixed by the firmware, and can be read from the --readhmid data.

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

More
8 years 4 months ago #112207 by PCW
AFAIK the Gecko G540 spindle interface output voltage is isolated and does not depend on the interface signal levels, it depends on the externally supplied spindle analog power (and the PWM duty cycle)

And yes, the g540 configuration had a PWM generator on pin 14:
Code:
IO Connections for P3 Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir 1 0 IOPort None 14 1 IOPort PWMGen 0 PWM (Out) 2 2 IOPort StepGen 0 Step (Out) 15 3 IOPort None 3 4 IOPort StepGen 0 Dir (Out) 16 5 IOPort StepGen 4 Step (Out) 4 6 IOPort StepGen 1 Step (Out) 17 7 IOPort None 5 8 IOPort StepGen 1 Dir (Out) 6 9 IOPort StepGen 2 Step (Out) 7 10 IOPort StepGen 2 Dir (Out) 8 11 IOPort StepGen 3 Step (Out) 9 12 IOPort StepGen 3 Dir (Out) 10 13 IOPort QCount 0 Quad-A (In) 11 14 IOPort QCount 0 Quad-B (In) 12 15 IOPort QCount 0 Quad-IDX (In) 13 16 IOPort None

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

More
8 years 4 months ago #112450 by ericg
Hi and thanks all for the support, I have got almost everything sorted out now and I have my xhc-hb04 pendant mostly working with the exception of the probe-z function.

Probe-z is actually working but the feedrate of F25 in the o100 call is erratic and very slow, if I bump up the feedrate to say F250 then it works perfectly albeit to fast.

The Feedrate of F25 using the original parallel port config works well.

I have looked at the configs of both and just do not see where the issue is, whether it is velocity and acceleration, scaling or what, I'm not able to see it. I don't think it has anything to do with mm/s vs mm/min.

If someone could look at the files and hopefully see what may be the problem, I would appreciate it.

Eric

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

Moderators: cmorley
Time to create page: 0.420 seconds
Powered by Kunena Forum