VMC related HAL questions.

More
06 Sep 2019 18:13 #144402 by CNCDoc
Replied by CNCDoc on topic VMC related HAL questions.
Found error msg instead of abort


(MSG, Checking MagPos 02)
M66 P5 L3 Q2 ; Check if mag pos is empty change to L0?
o103 if [#5399 EQ -1]
(MSG, Tool in Magazine! 03)
o103 endif

Now the sequence is stopped properly.

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

More
06 Sep 2019 18:43 #144407 by andypugh
Replied by andypugh on topic VMC related HAL questions.
L3 Q2 is wrong here. How many times do I have to tell you that?
The following user(s) said Thank You: CNCDoc

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

More
06 Sep 2019 19:00 #144408 by CNCDoc
Replied by CNCDoc on topic VMC related HAL questions.
I have changed the code in the cnc computer. Copied previous posts here so the error came along.

(MSG, Checking MagPos 02)
M66 P5 L0; Check if mag pos is empty?
o103 if [#5399 EQ 0] "invert signal"
(abort, Tool in Magazine! 03)
o103 endif

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

More
07 Sep 2019 07:58 - 07 Sep 2019 07:59 #144463 by CNCDoc
Replied by CNCDoc on topic VMC related HAL questions.

Okay then I have misunderstood. Thought it was "carousel.comp" the whole tool change sequence was placed ..
The actual tool change sequence is located in "Toolchanges.ngc"?


In the example, config, yes. It could be handles with classic ladder, or with a Python remap, but anything that requires axis movement or M19 spindle orient is most readily done with a G-code remap.


Is the cited post the correct instructions for implementing the tool change sequence?
I just need to set an output for spindle origination.


I think it is close to what you seem to need.
If your spindle drive controls orient internally then you can use the M19 outputs to control the orient. (ignoring the angle output, just handshaking with spindle.0.orient and spindle.0.is-oriented )


I must have missed something when do a m19. I get no signal to spindle.0.orient .
Last edit: 07 Sep 2019 07:59 by CNCDoc.

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

More
07 Sep 2019 09:41 #144464 by andypugh
Replied by andypugh on topic VMC related HAL questions.
[quote="CNCDoc" post=144463I must have missed something when do a m19. I get no signal to spindle.0.orient .[/quote]

It looks like it always needs an R number (eg M19 R0) or there is no output.
That might be a bug.

You should probably use a Q number to set a timeout too.

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

More
07 Sep 2019 10:07 #144465 by CNCDoc
Replied by CNCDoc on topic VMC related HAL questions.
Yes m19 r0 and I got to use pin motion.spindle − orient. Also had to put an OR on the spindle enable signal to activate the spindle with motion.spindle − orient.
Problem now is that as soon as motion.spindle − is − oriented becomes high, the spindle stops orienting

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

More
07 Sep 2019 10:16 #144467 by andypugh
Replied by andypugh on topic VMC related HAL questions.

Problem now is that as soon as motion.spindle − is − oriented becomes high, the spindle stops orienting


That's intended behaviour. What is driving the is-oriented pin? It probably should be a "finshed" signal from the drive.

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

More
07 Sep 2019 10:27 - 07 Sep 2019 13:20 #144468 by CNCDoc
Replied by CNCDoc on topic VMC related HAL questions.
Signal come from the drives Spu card

motion.spindle - orient needs to be on whole tool exchange. The output in any case
Last edit: 07 Sep 2019 13:20 by CNCDoc.

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

More
08 Sep 2019 23:15 #144552 by andypugh
Replied by andypugh on topic VMC related HAL questions.
I don't think that M19 will finish without "oriented" being asserted.

The answer might be to send the orient signal to the drive through a latch. There is a latch called "flipflop" that might work, but I think that oneshot would also work and does not need a clock pulse.

linuxcnc.org/docs/2.8/html/man/man9/oneshot.9.html

Make the length long enough for a full toolchange, then assert the reset pin when toolchange is finished.

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

More
09 Sep 2019 07:00 #144565 by CNCDoc
Replied by CNCDoc on topic VMC related HAL questions.
Is there any advantage to using m19 instead of using M62 - M66 as in the rest of the tool changer sequence?
To control the spindle orient.

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

Time to create page: 0.095 seconds
Powered by Kunena Forum