VMC related HAL questions.

More
10 years 10 months ago #67358 by andypugh
Replied by andypugh on topic VMC related HAL questions.
This version of carousel.comp should work for your turret.
You will need to install it with "sudo halcompile --install carousel.comp"
If you get a message that halcompile does not exist then look for linuxcnc-dev in the synaptic package manager.

In your particular case you will need to connect the input-pin-name....-not HAL pin to the carousel input pins, because your logic is inverted.

loadrt carousel encoding=bcd pockets=16 num_sense=5 bidirectional=2

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

More
10 years 10 months ago #67379 by thewho
Replied by thewho on topic VMC related HAL questions.
I get "Command not found" when I run halcompile.. :( I've checked and I have linuxcnc-dev (1:2.6.4) installed

I've hardly used Linux before so there might be something obvious I'm missing here?

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

More
10 years 10 months ago #67380 by andypugh
Replied by andypugh on topic VMC related HAL questions.
try sudo comp --install …

The command name was changed

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

More
10 years 10 months ago #67391 by thewho
Replied by thewho on topic VMC related HAL questions.
Worked lika a charm :)

Let's see if I got this right..
Warning: Spoiler!


Some thing that I realized when writing that:
I have an hydraulic pump that activates the drawbar and then A valve that releases the pressure and locking the tool in the spindle.
And as far I can tell that is not the way this hal-file is set up?
So for my machine it would be:

*Oriented and arm extended
1. Activate Pump
2. Wait for "tool released" sensor
3. Turn off Pump
4. Move Z
5. Unlock Carousel
6. Move Carousel
7. Lock Carousel
8. Move Z
9. Activate Pressure release valve
10. Retract Arm

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

More
10 years 10 months ago #67396 by andypugh
Replied by andypugh on topic VMC related HAL questions.

thewho wrote: Let's see if I got this right..

Warning: Spoiler!


In your case you need "encoding=bcd"

Some thing that I realized when writing that:
I have an hydraulic pump that activates the drawbar and then A valve that releases the pressure and locking the tool in the spindle.
And as far I can tell that is not the way this hal-file is set up?


In the demo that sequence is handled in the G-code toolchange routine. You need to make that suit your system, though it is already pretty close. You may need an extra output and an extra phase.

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

More
10 years 10 months ago - 10 years 10 months ago #67397 by thewho
Replied by thewho on topic VMC related HAL questions.
I see :silly:

Could you please explain a few things in the .ngc?
Warning: Spoiler!



EDIT: I'm stupid.. It's the "motion.digital-out-XX" that specifies that right?
Last edit: 10 years 10 months ago by thewho.

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

Time to create page: 0.069 seconds
Powered by Kunena Forum