well i have a working spindle orientation!

once you have a vfd that allows a low speed 15 rpm accurate motor rotation
its not too hard

just rotate until the input-index pin changes state with a m66 code

then stop spindle

it overshoots the sensor by about 10 degrees but its repeatable

so just change the location of the sensor (aka index pulse and we are away)

next bit of progress i am just trying to get done is to preload my tool

i have a random position tool changer and have selected that option in
linuxcnc ini file

but its not preloading tool

it sits there and waits for the tool to load instead of doing it while the
program is running

when i type t1m6 the  IOcontrol tool prepare pin goes high

then once tool is selected the IOcontrol tool prepared pin goes high and
then the tool actually gets changed with the m6 command


anyway do you guys have any ideas


regards

Andrew

On Tue, Nov 8, 2022 at 11:20 PM andrew beck <andrewbeck0...@gmail.com>
wrote:

> Hey andy.
>
>  I was just having a play and I can actually just sense the input-index
> pin directly.  With
> M66 P0 L2 10
> I rotate spindle at 5rpm and wait until sensor changes state
>
> Then stop.
>
>
> In my case this is a proxy switch.  Not a encoder so I don't have to worry
> about missing it.
>
> Anyway I tried that and it's orientating fine at the moment.
>
> And very simple compared to m19 stuff.
>
> I'll finish it tomorrow and might make a video to show you guys.
>
> On Tue, 8 Nov 2022, 23:15 andy pugh, <bodge...@gmail.com> wrote:
>
>> On Tue, 8 Nov 2022 at 04:50, andrew beck <andrewbeck0...@gmail.com>
>> wrote:
>>
>> >
>> > i am using the tristate bit but getting a bit confused on how it works
>> >
>>
>> It only drives the output to the input when enable is true.
>>
>> You want to set the indes-enable pin high, and then stop writing to it so
>> that the rest of the system can do its thing.
>>
>> So set input permanently high.
>> Then toggle enable on and off.
>> Then rotate the spindle until index-enable is driven false.
>>
>> --
>> 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-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>
>

_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to