Re: [Emc-developers] iocontrol.0.tool-prepare
Hi, On Sonntag, 17. Mai 2020, 17:46:14 CEST andy pugh wrote: > On Sun, 17 May 2020 at 16:13, Reinhard wrote: > > in ioControl.cc I found the note: "only valid when tool-prepare=TRUE", but > > where do I have to enable that switch? > > That pin is not mentioned in docs of ini-file nor in the man-page of > > iocontrol > Did you really mean iocontrol.0.tool-prepare? That pin is mentioned in > the manpage. Yes, I meant that pin, but I was unprecise with my words. I wanted to say, that configuration of that pin is not mentioned. That's because I misunderstood source comment from ioControl. What I learned so far: a shortcutted pin is too fast, to see it toggle. So I break the loop and I saw, that the pin works without configuration. But ... ... don't know - the gcode-sequence I posted lately - is that valid for linuxcnc? That way every machine is programmed at work. The N-word may be special for Fanuc, as Fanuc shows the active N-word ... Anyway - axis and interpreter accept the code without error message, but with that code, the tool-prepare pin does not work as expected. The line headed by N10 sets up the parameters for tool T4, which has been changed just before. At the end of the line, T23 is commanded - so at that time, the tool-prepare pin should be active. But it is not. ... and it will not become active until next M6-command. After the second M6, axis shows T23 as active and the tool-prepare becomes active with prep-toolnum of T24. Don't know, whether I should do something different. Actually I monitor the tool-prepare- and tool-change-pin and when they become active I rise the -prepared-pins and -changed-pins to confirm the action. cheers Reinhard ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] iocontrol.0.tool-prepare
> On Sun, 17 May 2020 at 16:13, Reinhard wrote: > > > in ioControl.cc I found the note: "only valid when tool-prepare=TRUE", but > > where do I have to enable that switch? > > That pin is not mentioned in docs of ini-file nor in the man-page of > > iocontrol (Bit, Out) TRUE when a Tn tool prepare is requested Here is something about this pin http://wiki.linuxcnc.org/cgi-bin/wiki.pl?ToolChange at the "Prepare option" header. > Did you really mean iocontrol.0.tool-prepare? That pin is mentioned in > the manpage. > http://linuxcnc.org/docs/2.7/html/man/man1/iocontrol.1.html ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] iocontrol.0.tool-prepare
On Sun, 17 May 2020 at 16:13, Reinhard wrote: > in ioControl.cc I found the note: "only valid when tool-prepare=TRUE", but > where do I have to enable that switch? > That pin is not mentioned in docs of ini-file nor in the man-page of iocontrol Did you really mean iocontrol.0.tool-prepare? That pin is mentioned in the manpage. http://linuxcnc.org/docs/2.7/html/man/man1/iocontrol.1.html -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] iocontrol.0.tool-prepare
Hi, On Samstag, 16. Mai 2020, 16:21:55 CEST Reinhard wrote: > So I wrote a gcode-file, that has a T-word after the M6 ... > ... but the prepare-pin did not light. in ioControl.cc I found the note: "only valid when tool-prepare=TRUE", but where do I have to enable that switch? That pin is not mentioned in docs of ini-file nor in the man-page of iocontrol ... Any help is appreciated! cheers Reinhardd ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] iocontrol.0.tool-prepare
Hi Chris, On Samstag, 16. Mai 2020, 20:32:28 CEST Chris Morley wrote: > Try putting the T code well before the m6 This is the sequence I tried: === snip === ( T4 : 12.0 HPC ) G40 G80 T4 M6 N10 G0 G90 G54 X50 Y70 S4750 M3 T23 G43 H4 Z2 M8 G1 Z-9 F300 G1 X40.134 Y61.694 F800 G1 X38.719 Y55.036 G3 X57.269 Y38.038 I14.281 J-3.036 G1 X62.094 Y39.513 G3 X40.134 Y61.694 I-62.094 J-39.513 G1 X38.719 Y55.036 G1 X38.523 Y55.077 G3 X57.327 Y37.847 I14.477 J-3.077 G1 X62.403 Y39.399 G3 X39.999 Y62.02 I-62.403 J-39.399 G1 X38.523 Y55.077 G1 X50 Y70 G0 Z150 M5 M9 M6 === snap === So between T23 and the last M6 I expected to see the tool-prepare pin true. When I watched pins, it does not matter, whether they are short cutted. I see the signal too (same as halmeter) cheers Reinhard ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers
Re: [Emc-developers] iocontrol.0.tool-prepare
Try putting the T code well before the m6 T prepares the tool changer to change for a specific tool M6 changes it. machines with large tool chains use this to preselect the next tool. This loads tool 1 and immediately preselects tool2 T1 M6 T2 Most configs short cut the pins as you mentioned and don't preselect. Chris From: Reinhard Sent: May 16, 2020 2:21 PM To: emc-developers@lists.sourceforge.net Subject: [Emc-developers] iocontrol.0.tool-prepare Hi, playing around with hal I discovered the prepare-pins of iocontrol. So I wrote a gcode-file, that has a T-word after the M6 ... ... but the prepare-pin did not light. Inspecting hal from axis I can see, that prepare-pins are connected. I wonder, what is the role of these pins and when will they get active? Reinhard ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers ___ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers