Problems with VFD in PathPilot

More
27 Jul 2017 12:32 #96559 by andypugh
What happens if you remove everything related to the spindle (and especially the tormachspindle component) and put in the spindle stuff from your working config?

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

More
31 Jul 2017 20:57 #96792 by Robi63
They are close to fixing, it lacks to adjust the actual speed to the one set.
Now it is 200 in PP and the spindle rotates to 200, imposed 500 in PP and the spindle turns to 3000.
How can I make this adjustment?
PP 200 spindle 200 PP500 Spindle 500 ............
My renge is 200 min 3000 max

Thanks

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

More
01 Aug 2017 23:15 #96868 by andypugh

They are close to fixing, it lacks to adjust the actual speed to the one set.
Now it is 200 in PP and the spindle rotates to 200, imposed 500 in PP and the spindle turns to 3000.


It should be possible by adjusting these lines:
setp pwmgen.0.scale 2830.50847458
setp pwmgen.0.offset -0.0674251497006

Though, frankly, that looks about right.

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

More
02 Aug 2017 08:42 #96884 by Robi63
I had already added but did not solve it.
I attached file for your evaluation.

Thanks
Attachments:

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

More
02 Aug 2017 11:44 #96896 by andypugh
You should try changing the values to see if it makes things work better.

You can do this "live" to save rebooting LinuxCNC, then put the new numbers in the HAL file when you have the correct ones.

open a terminal after starting LinuxCNC

halcmd -kf
This will open a HAL session. (Hopefully, if PathPilot hasn't disabled it)

setp pwmgen.0.scale 3000
This will change the PWM scaling.
Use the up-arrow to bring the command back to try a new value.

exit to exit.

But your HAL file seems to still have lots of Tormach spindle stuff, and lots of commented-out copies of the VFD stuff, so I can't tell if it ought to work or not. It's a mess.

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

More
10 Aug 2017 20:32 #97314 by Robi63
I have tried any type of code, I'm mistaken or does not make any changes.(As a beginner)
I do not know what to change.
I came back to Tormach configuration with some modification.
Now it works like this 200=200 210=220 220=240 230=260 240=290 250=350 260=1010 270=2460 280=3000 (Set = Real)

If you still have some advice and well I accept

Thanks
Attachments:

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

More
10 Aug 2017 20:43 #97315 by andypugh
You could try using a PID to run the spindle in closed-loop speed control (if you have a spindle encoder).
Or, possibly, use the HAL "lincurve" component to map between desired and the command required to give that.

I wonder if your PWM frequency is very wrong?

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

More
10 Aug 2017 20:56 #97317 by Robi63
All this is not in my capacity

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

More
12 Aug 2017 21:50 #97400 by Robi63
PCW

According to your opinion this firmware is usable with the C11GS.
Run the forward and reverse spindles.


########################################################################
# 5i25
#
# Configuration pin-out:
#
# Mill Function DB25 Mesa Type Chan Function IO
#
# Spindle Enable 1 0 IOPort None
# Spindle Speed 14 1 IOPort PWM 0
# X Step 2 2 IOPort StepGen 0 Step (Out)
# Estop Reset 15 3 IOPort None (In)
# X Direction 3 4 IOPort StepGen 0 Dir (Out)
# Charge Pump 16 5 IOPort StepGen 4 Step (Out)
# Y Step 4 6 IOPort StepGen 1 Step (Out)
# Coolant 17 7 IOPort None (Out)
# Y Direction 5 8 IOPort StepGen 1 Dir (Out)
# Z Step 6 9 IOPort StepGen 2 Step (Out)
# Z Direction 7 10 IOPort StepGen 2 Dir (Out)
# A Step 8 11 IOPort StepGen 3 Step (Out)
# A Direction 9 12 IOPort StepGen 3 Dir (Out)
# X Limit 10 13 IOPort None (In)
# Y Limit 11 14 IOPort None (In)
# Z Limit 12 15 IOPort None (In)
# Probe In 13 16 IOPort QCountIdx 0 Idx (In)

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

More
14 Aug 2017 19:35 - 14 Aug 2017 19:36 #97481 by Robi63
PCW

To find a proper firmware for my C11GS, you work with Pathpilot where you can find or do it.
You saw what I posted on Saturday.

Thanks
Last edit: 14 Aug 2017 19:36 by Robi63.

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

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