VMC related HAL questions.
(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.
Please Log in or Create an account to join the conversation.
(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.
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 .
Please Log in or Create an account to join the conversation.
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.
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.
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.
motion.spindle - orient needs to be on whole tool exchange. The output in any case
Please Log in or Create an account to join the conversation.
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.
To control the spindle orient.
Please Log in or Create an account to join the conversation.