VMC related HAL questions.

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 or Create an account 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 or Create an account 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 or Create an account to join the conversation.

More
11 years 4 months ago - 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
Last edit: 11 years 4 months ago by thewho.

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

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

thewho wrote: Tried a M3 S100 but It doesn't compensate at all? Am I missing something here?

You will need to tune the PID values in the INI file.
Your ini file has [SPINDLE_9] Whereas the HAL is using [SPINDLE]
These need to match.

The fact that LinuxCNC starts at all with that misconfiguration makes me wonder if it is finding the right spindle.hal file.

M33.1 Does not do anything ether.


Odd. Was the spindle turning? Has G33.1 worked before? The HAL connections seem correct.

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

More
11 years 4 months ago #59490 by thewho
Replied by thewho on topic VMC related HAL questions.
Ignore what I was wrote earlier. I replaced the wrong config folder so there was literally no change to before.

Did it right after that and then I got that error message and Linuxcnc does not start.

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

Time to create page: 0.390 seconds
Powered by Kunena Forum