VMC related HAL questions.

More
7 years 1 month ago #144467 by andypugh
Replied by andypugh on topic VMC related HAL questions.

CNCDoc wrote: 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
7 years 1 month ago - 7 years 1 month ago #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: 7 years 1 month ago by CNCDoc.

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

More
7 years 1 month ago #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
7 years 1 month ago #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.

More
7 years 1 month ago #144581 by andypugh
Replied by andypugh on topic VMC related HAL questions.

CNCDoc wrote: Is there any advantage to using m19 instead of using M62 - M66 as in the rest of the tool changer sequence?


Only a very small one, in that it saves a DIO pin, and the G-code is slightly simpler and clearer.
The following user(s) said Thank You: tommylight, CNCDoc

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

More
7 years 1 month ago #144669 by CNCDoc
Replied by CNCDoc on topic VMC related HAL questions.
My solution to the problem. M19 and then check if the spindle is uninterrupted (P6).

Then an M5 at the end of the tool sequence. To stop the orientation.

Code:
M19 R0 (MSG, Orient spindel 01) M66 P6 L3 Q5; Check if spindel is Oriented? o101 if [#5399 EQ -1] (abort, Fail orient spindel! 01) o101 endif (rest of toolchanges sequence) M5 M2

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

Time to create page: 0.443 seconds
Powered by Kunena Forum