On Wed, 2010-04-07 at 20:04 +0100, Andy Pugh wrote:
... snip
> However, HAL doesn't have any operators at all. Not only is there no
> mod, there is not even a divide. There is a mult2 and an invert,
> though.
Would this help?
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?ContributedComponents#modmat
Andy Pugh wrote:
> On 7 April 2010 19:37, Gene Heskett wrote:
>
>
>> Some languages use the % sign as a mod function. If its not there, then I
>> suppose it can be cobbled up in 4 or 5 lines of gcode
>>
>
> The spindles are linked in HAL, not on G-Code. This means that they
> keep synch e
On 7 April 2010 20:04, Andy Pugh wrote:
> The spindles are linked in HAL, not on G-Code. This means that they
> keep synch even when there is no program running.
This is what worked: using ddt to spot a change in the tooth count,
then resetting the encoder and latching a new offset into the step
On 7 April 2010 19:37, Gene Heskett wrote:
> Some languages use the % sign as a mod function. If its not there, then I
> suppose it can be cobbled up in 4 or 5 lines of gcode
The spindles are linked in HAL, not on G-Code. This means that they
keep synch even when there is no program running.
Ho
On Wednesday 07 April 2010, Andy Pugh wrote:
>On 7 April 2010 03:00, Gene Heskett wrote:
>> Sounds like your math needs a mod function. It would drive it to the
>> next index only, I think.
>
>Yes, that ought to work too (though I would prefer that the gear
>didn't move at all when the tooth coun
Andy Pugh wrote:
> On 7 April 2010 03:00, Gene Heskett wrote:
>> Sounds like your math needs a mod function. It would drive it to the next
>> index only, I think.
>>
> Yes, that ought to work too (though I would prefer that the gear
> didn't move at all when the tooth count was altered).
>
On 7 April 2010 03:00, Gene Heskett wrote:
> Sounds like your math needs a mod function. It would drive it to the next
> index only, I think.
Yes, that ought to work too (though I would prefer that the gear
didn't move at all when the tooth count was altered).
I was all set to do it this way, t
On Tuesday 06 April 2010, Andy Pugh wrote:
>One annoyance with my hobbing config is that if I change the tooth
>count the gear chuck drives itself to to the new correct position. So
>if I cut a 12 tooth gear, which takes 200 gear revolutions, then
>decide to cut a 120 tooth gear, when I change the
One annoyance with my hobbing config is that if I change the tooth
count the gear chuck drives itself to to the new correct position. So
if I cut a 12 tooth gear, which takes 200 gear revolutions, then
decide to cut a 120 tooth gear, when I change the textbox the chuck
sets off to do 2000 revolutio