VMC related HAL questions.

More
11 years 5 months ago #59054 by andypugh
Replied by andypugh on topic VMC related HAL questions.

sspeed33317 wrote: Encoders go back to the MESA card. If I were using brushless motors then hall sensors would go to the amps only.


Ok, that sounds like a torque-mode system.

Rather than repeat stuff:
www.gnipsel.com/linuxcnc/tuning/torque.html

But let us know how that works for you, maybe your experience can expand that.

Please Log in to join the conversation.

More
11 years 4 months ago #59293 by sspeed33317
Been working a lot lately and l i finally made it over to the workshop, pulled the computer and all my MESA stuff to bring back home.
Reinstalled LinuxCNC with the latest updates. And now I may be moving workshops again... and then next Wednesday the 10th of June I am heading
over to your side of the pond Andy. Coming over for the 24 Hour LeMans..

I am hoping i can get to work on it when i get back but I may be putting all of my stuff in a storage unit for a little while until I can find
a smaller shop. the rent has been a killer and i was hoping to be able to get a garage built but the $$ has been slow coming.

I am going to set up the controls at home and then bring the whole thing to the machine when its ready.

Please Log in to join the conversation.

More
11 years 4 months ago #59325 by sspeed33317
Having a slight problem.. getting an error when opening the VMC simulator.

I believe i followed your instructions to install the carousel comp.
But it doesn't look like it went to the correct directory


Was trying to attach the error file.. seems i got it to upload..



Attachment not found

Please Log in to join the conversation.

More
11 years 4 months ago #59336 by andypugh
Replied by andypugh on topic VMC related HAL questions.

sspeed33317 wrote: I believe i followed your instructions to install the carousel comp.
But it doesn't look like it went to the correct directory


No, it appears not "toolchange.hal:1: Can't find module 'carousel' in /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc"

Can you paste the output of
Code:
sudo comp --install --install-doc carousel.comp
(Or sudo halcompile... if using a development LinuxCNC version)

If it doesn't end with a cp... command then something hasn't quite worked.

Please Log in to join the conversation.

More
11 years 4 months ago #59346 by sspeed33317
I got it !!!...

i did a lot of searching ...

i finally found your post 58057
followed the way it was done there and it worked ....

I was way off on the procedure.

Please Log in to join the conversation.

More
11 years 4 months ago #59472 by thewho
Replied by thewho on topic VMC related HAL questions.
Well I finally had a go at the closed loop spindle control you helped me with.
I didn't really know what I was doing so I'll attach the files if you Andy or someone else have the time to take a look at them?
One thing, I have a +/-10V drive so there i no need for the fwd/rev outputs. I just commented those lines but I might have to edit something else to?

Please Log in to join the conversation.

More
11 years 4 months ago #59480 by andypugh
Replied by andypugh on topic VMC related HAL questions.
You have

Code:
loadrt orient addf orient.0 servo-thread #loadrt mux2 -- This has already been loaded in the sim_vmc.hal addf mux2.0 servo-thread # chooses which pid output goes to the spindle speed control


You need to un-comment the loadrt mux2, as I don't think you have that loaded elsewhere.

Code:
#for a real spindle run by a VFD loadrt abs addf abs.0.servo-thread net spindle-cmd mux2.0.out abs.0.in net spindle-cmd-abs hm2_5i25.0.7i77.0.1.analogout5 #net spindle-fwd abs.0.is-positive parport.0.pin-NN-out #net spindle-rev abs.0.is-negative parport.0.pin-NN-out


This needs to be
Code:
net spindle-cmd mux2.0.out hm2_5i25.0.7i77.0.1.analogout5
To send the bipolar speed command to the analogout.

Please Log in to join the conversation.

More
11 years 4 months ago #59485 by thewho
Replied by thewho on topic VMC related HAL questions.
Like this?
Code:
#for a real spindle run by a VFD loadrt abs addf abs.0.servo-thread net spindle-cmd mux2.0.out hm2_5i25.0.7i77.0.1.analogout5 net spindle-cmd-abs hm2_5i25.0.7i77.0.1.analogout5

Please Log in to join the conversation.

More
11 years 4 months ago #59486 by andypugh
Replied by andypugh on topic VMC related HAL questions.

thewho wrote: Like this?

Code:
#for a real spindle run by a VFD loadrt abs addf abs.0.servo-thread net spindle-cmd mux2.0.out hm2_5i25.0.7i77.0.1.analogout5 net spindle-cmd-abs hm2_5i25.0.7i77.0.1.analogout5


No...

Replace the entire section I quoted with the single replacement line.

Please Log in to join the conversation.

More
11 years 4 months ago #59488 by thewho
Replied by thewho on topic VMC related HAL questions.
Oh, when reading your message again it seems quite obvious :blush:

Tried it in the machine but I see no change in behavior. I did not get any errors at startup.
Tried a M3 S100 but It doesn't compensate at all? Am I missing something here?

M33.1 Does not do anything ether.

EDIT: Oh wait, I´m stupid.. Did get an error though

EDIT2:
Code:
Debug file information: . Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/pid.ko: File exists spindle.hal:1: exit value: 1 spindle.hal:1: insmod failed, returned -1 See the output of 'dmesg' for more information. 4364 PID TTY STAT TIME COMMAND Stopping realtime threads Unloading hal components

Please Log in to join the conversation.

Time to create page: 0.107 seconds
Powered by Kunena Forum