Need some ideas on how to set up a home built OD/can grinder

More
19 Nov 2018 20:35 #121019 by markd
Thanks Andy

I will look into using G10 to set the offsets.

MarkD

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

More
30 Nov 2018 16:59 #121643 by markd
I added a two channel encoder (A and Z). The encoder consists of a 4 inch diameter wheel with 90 holes and a single hole for the index.
While updating the HAL file I tried to clean up so as to be able to make sense of the code. Searching for a example of a stepper spindle example failed.
The resulting Hal files do not give errors but the spindle is not functioning. Can someone look at the Hal files to see what I missed?
Attachments:

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

More
30 Nov 2018 17:21 #121644 by andypugh
At no point do you "addf" scale.1 (or scale.0) to the servo-thread.
(So the output never updates and never sends a velocity command to the stepgen)
The following user(s) said Thank You: markd

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

More
11 Dec 2018 19:15 #122223 by markd
I ran into a snag, the hard drive i was using died and took my work with it. Linuxcnc is back up and running but I have some problems.
Problem one the requested speed six times greater than the actual speed (the actual speed is correct) the scale should be 8.89 but requires 6 times that for the correct rpm to be achieved.
Problem two the at speed led never goes green.

Can someone give me a hint as to how to fix these
Attachments:

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

More
11 Dec 2018 19:23 #122225 by andypugh
That sort of miss-match is typically due to micro-stepping, but in that case it is very rarely a factor of 3. (4, 8, 10, 16 are common)

What makes you believe that the scale should be 8.89?
The following user(s) said Thank You: markd

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

More
11 Dec 2018 19:33 #122226 by markd
200 * 2 (40t / 20t) 8 (microsteps) = 3200 /360 = 8.89 steps per degree

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

More
11 Dec 2018 20:15 #122230 by andypugh
motion.spindle-speed-out is in rpm.
stepgen velocity is in units per second.

So scale.1.gain needs to be 1/60. I wonder if the factor of 6 is partly that 60 and a factor of 10 somewhere else?

I suggest using motion.spindle-speed-out-rps for your velocity command, and also compare that to the encoder velocity to control the spindle-at-speed. (And keep the scale.0 purely for the Pyvcp display)
The following user(s) said Thank You: markd

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

More
12 Dec 2018 20:46 #122308 by markd
I tried to find a way around the need for the x6 for the scaler but to no avail. The stepgen.3.step is 600 for 100 RPM. I set the RPM at 60 to measure the stepgen period which measured ~320 microseconds which equates to ~3200 steps per rev. At this point the spindle works so I will move on to adding the U & W axis to the configuration.

I will try to find the scaling problem as I learn more.

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

Time to create page: 0.134 seconds
Powered by Kunena Forum