VMC related HAL questions.

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.

Please Log in 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 to join the conversation.

More
7 years 1 month ago #144687 by andypugh
Replied by andypugh on topic VMC related HAL questions.
Why do you persist in using rising-edge with timeout rather than simply checking the state of the input?

Please Log in to join the conversation.

More
7 years 1 month ago #144688 by CNCDoc
Replied by CNCDoc on topic VMC related HAL questions.
For the spindle to have time to index before alarm.
Was the idea.

Please Log in to join the conversation.

More
6 years 10 months ago #151832 by CNCDoc
Replied by CNCDoc on topic VMC related HAL questions.
Receives the following error message when I load a g code with the tool changes.

Attachment not found



I comment off the line N25 the file opens properly. The text of the error message is from my tool changer sequence.
Code:
1001) (T1 D=6.5 CR=0. TAPER=118DEG - ZMIN=-17.153 - DRILL) (T2 D=10. CR=0. - ZMIN=-15.4 - FLAT END MILL) N10 G90 G94 G17 G91.1 N15 G21 N20 G53 G0 Z0. (DRILL2) N25 T1 M6 N30 T2 N35 S3500 M3


What causes this?

Attachment not found

Please Log in to join the conversation.

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

CNCDoc wrote: For the spindle to have time to index before alarm.
Was the idea.


Execution of the M19 won't complete until the spindle-is-oriented pin goes high.

linuxcnc.org/docs/2.8/html/gcode/m-code.html#mcode:m19

Please Log in to join the conversation.

More
6 years 10 months ago #151838 by CNCDoc
Replied by CNCDoc on topic VMC related HAL questions.
Is this the cause of the error message above?

Please Log in to join the conversation.

More
6 years 10 months ago #151839 by tommylight
Error says line 0, that line is missing a bracket.

Please Log in to join the conversation.

More
6 years 10 months ago #151840 by CNCDoc
Replied by CNCDoc on topic VMC related HAL questions.
excuse my lack of knowledge. bracket?

Please Log in to join the conversation.

More
6 years 10 months ago #151842 by tommylight

CNCDoc wrote: 1001)

Should be:
(1001)

Please Log in to join the conversation.

Time to create page: 0.119 seconds
Powered by Kunena Forum