Re: [Emc-users] HAL "watchdog" component

2016-10-02 Thread dannym

 "Peter C. Wallace"  wrote: 
> On Sun, 2 Oct 2016, dan...@austin.rr.com wrote:
> 
> > Date: Sun, 2 Oct 2016 19:59:37 +
> > From: dan...@austin.rr.com
> > Reply-To: "Enhanced Machine Controller (EMC)"
> > 
> > To: emc-users@lists.sourceforge.net
> > Subject: [Emc-users] HAL "watchdog" component
> > 
> > I am trying to put this in to watch the VFD modbus driver's "watchdog" pin, 
> > and tie a pyvcp LED showing VFD is good, as per:
> > http://linuxcnc.org/docs/html/man/man9/watchdog.9.html
> >
> > I used:
> >
> > loadrt watchdog num_inputs=1
> > addf watchdog servo-thread
> >
> > I have 2 issues:
> >
> > One, it generates the following error:
> >
> > HAL: ERROR: function 'watchdog' not found
> > custom_postgui.hal:42: addf failed
> >
> > My first thought was "well, I didn't include which watchdog it was, it 
> > needs to be watchdog.0".  But that just gets "function 'watchdog.0' not 
> > found".  And the line "setp watchdog.timeout-0 1.0" DOES pass,  as does 
> > "net vfdReadyLed watchdog.ok-out => pyvcp.vfd-ready-led".
> >
> > Second, I'm confused.  The man pages only offers "num_inputs" as an option, 
> > and that only creates more fan-in, not multiple components.  There's no 
> > "count" or "names" parameter, and I tried, HAL just errors "unknown 
> > parameter" when it loads.
> >
> > So can there only be one "watchdog" component, ever?  That doesn't seem 
> > right at all, that's not how HAL components work.  But how would you 
> > include more, and refer to different ones?  How does "addf" work?
> >
> > Danny
> 
> In the watchdog manual page you will see the two wtachdog functions
> "process" and "set-timeouts"
> 
> These are the functions tha must be added via addf
> 
> (watchdog.process and watchdog.set-timeouts)
> 
> 
> 
> Peter Wallace
> Mesa Electronics

Huh.. weird, but is there any way to create more than one?

Kinda beside the point, I made a better component with oneshot + rising=TRUE, 
falling=TRUE, retriggerable=TRUE.  Now it stays TRUE as long as it's been 
triggered in the last 1/2 sec.  That's exactly what I want in a watchdog.


Danny


--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HAL "watchdog" component

2016-10-02 Thread Peter C. Wallace
On Sun, 2 Oct 2016, dan...@austin.rr.com wrote:

> Date: Sun, 2 Oct 2016 19:59:37 +
> From: dan...@austin.rr.com
> Reply-To: "Enhanced Machine Controller (EMC)"
> 
> To: emc-users@lists.sourceforge.net
> Subject: [Emc-users] HAL "watchdog" component
> 
> I am trying to put this in to watch the VFD modbus driver's "watchdog" pin, 
> and tie a pyvcp LED showing VFD is good, as per:
> http://linuxcnc.org/docs/html/man/man9/watchdog.9.html
>
> I used:
>
> loadrt watchdog num_inputs=1
> addf watchdog servo-thread
>
> I have 2 issues:
>
> One, it generates the following error:
>
> HAL: ERROR: function 'watchdog' not found
> custom_postgui.hal:42: addf failed
>
> My first thought was "well, I didn't include which watchdog it was, it needs 
> to be watchdog.0".  But that just gets "function 'watchdog.0' not found".  
> And the line "setp watchdog.timeout-0 1.0" DOES pass,  as does "net 
> vfdReadyLed watchdog.ok-out => pyvcp.vfd-ready-led".
>
> Second, I'm confused.  The man pages only offers "num_inputs" as an option, 
> and that only creates more fan-in, not multiple components.  There's no 
> "count" or "names" parameter, and I tried, HAL just errors "unknown 
> parameter" when it loads.
>
> So can there only be one "watchdog" component, ever?  That doesn't seem right 
> at all, that's not how HAL components work.  But how would you include more, 
> and refer to different ones?  How does "addf" work?
>
> Danny

In the watchdog manual page you will see the two wtachdog functions
"process" and "set-timeouts"

These are the functions tha must be added via addf

(watchdog.process and watchdog.set-timeouts)



Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.


--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] HAL "watchdog" component

2016-10-02 Thread dannym
I am trying to put this in to watch the VFD modbus driver's "watchdog" pin, and 
tie a pyvcp LED showing VFD is good, as per:
http://linuxcnc.org/docs/html/man/man9/watchdog.9.html

I used:

loadrt watchdog num_inputs=1
addf watchdog servo-thread

I have 2 issues:

One, it generates the following error:

HAL: ERROR: function 'watchdog' not found
custom_postgui.hal:42: addf failed

My first thought was "well, I didn't include which watchdog it was, it needs to 
be watchdog.0".  But that just gets "function 'watchdog.0' not found".  And the 
line "setp watchdog.timeout-0 1.0" DOES pass,  as does "net vfdReadyLed 
watchdog.ok-out => pyvcp.vfd-ready-led". 

Second, I'm confused.  The man pages only offers "num_inputs" as an option, and 
that only creates more fan-in, not multiple components.  There's no "count" or 
"names" parameter, and I tried, HAL just errors "unknown parameter" when it 
loads.

So can there only be one "watchdog" component, ever?  That doesn't seem right 
at all, that's not how HAL components work.  But how would you include more, 
and refer to different ones?  How does "addf" work?

Danny 

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Getting current RPM setting?

2016-10-02 Thread Danny Miller


On 10/2/2016 11:35 AM, Sebastian Kuzminsky wrote:
> On 10/02/2016 10:12 AM, Danny Miller wrote:
>> On 10/2/2016 11:05 AM, Sebastian Kuzminsky wrote:
>>> On 10/02/2016 02:32 AM, Danny Miller wrote:
 I thought it would be a good idea to display what the RPM setting is
 before the spindle is started.

 I see current_rps is right there WHILE the spindle is running.

 But when I enter "S1", it's set inside LinuxCNC even before M3.  I'd
 like to display it in pyvcp before M3 uses it. current_rps remains at zero.

 Is there a way to access the commanded RPM when not actually sending
 it?  I tried but couldn't find it.
>>> It's available on the pin 'motion.spindle-speed-out'.  It's 0 when the
>>> spindle is stopped (M2 or M5), and it's the commanded S-word when the
>>> spindle is running (M3).
>>>
>>> Details here:  http://linuxcnc.org/docs/html/man/man9/motion.9.html
>>>
>>>
>> Yeah I already have that.   It's useful, but I'd like to be able to
>> display what the spindle was set for when NOT running.
>>
>> Specifically I want the commanded S-word.
>>
>> It does show up under MDI "Active G-codes", but I don't know how to
>> access it in HAL.
> I see, i misread your original email.  I think unfortunately the S-word
> is not available in HAL currently, just in the "active g-codes" where
> you found it.
>
> It would probably be easy to add a motion pin with that information, i'd
> be happy to guide you through that if you like.
>
>
Sounds like a lot of complexity, but it's of great value to know how 
that works.  Shoot!

Danny


--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Getting current RPM setting?

2016-10-02 Thread Sebastian Kuzminsky
On 10/02/2016 10:12 AM, Danny Miller wrote:
>
> On 10/2/2016 11:05 AM, Sebastian Kuzminsky wrote:
>> On 10/02/2016 02:32 AM, Danny Miller wrote:
>>> I thought it would be a good idea to display what the RPM setting is
>>> before the spindle is started.
>>>
>>> I see current_rps is right there WHILE the spindle is running.
>>>
>>> But when I enter "S1", it's set inside LinuxCNC even before M3.  I'd
>>> like to display it in pyvcp before M3 uses it. current_rps remains at zero.
>>>
>>> Is there a way to access the commanded RPM when not actually sending
>>> it?  I tried but couldn't find it.
>> It's available on the pin 'motion.spindle-speed-out'.  It's 0 when the
>> spindle is stopped (M2 or M5), and it's the commanded S-word when the
>> spindle is running (M3).
>>
>> Details here:  http://linuxcnc.org/docs/html/man/man9/motion.9.html
>>
>>
>
> Yeah I already have that.   It's useful, but I'd like to be able to
> display what the spindle was set for when NOT running.
>
> Specifically I want the commanded S-word.
>
> It does show up under MDI "Active G-codes", but I don't know how to
> access it in HAL.

I see, i misread your original email.  I think unfortunately the S-word 
is not available in HAL currently, just in the "active g-codes" where 
you found it.

It would probably be easy to add a motion pin with that information, i'd 
be happy to guide you through that if you like.


-- 
Sebastian Kuzminsky

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Getting current RPM setting?

2016-10-02 Thread andy pugh
On 2 October 2016 at 17:05, Sebastian Kuzminsky  wrote:
> It's 0 when the
> spindle is stopped (M2 or M5), and it's the commanded S-word when the
> spindle is running (M3).

I think that is the problem, he wants to know what the speed will be
prior to spindle start. At a guess in order to pre-select a gear.

-- 
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, 1916

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Getting current RPM setting?

2016-10-02 Thread Danny Miller

On 10/2/2016 11:05 AM, Sebastian Kuzminsky wrote:
> On 10/02/2016 02:32 AM, Danny Miller wrote:
>> I thought it would be a good idea to display what the RPM setting is
>> before the spindle is started.
>>
>> I see current_rps is right there WHILE the spindle is running.
>>
>> But when I enter "S1", it's set inside LinuxCNC even before M3.  I'd
>> like to display it in pyvcp before M3 uses it. current_rps remains at zero.
>>
>> Is there a way to access the commanded RPM when not actually sending
>> it?  I tried but couldn't find it.
> It's available on the pin 'motion.spindle-speed-out'.  It's 0 when the
> spindle is stopped (M2 or M5), and it's the commanded S-word when the
> spindle is running (M3).
>
> Details here:  http://linuxcnc.org/docs/html/man/man9/motion.9.html
>
>

Yeah I already have that.   It's useful, but I'd like to be able to 
display what the spindle was set for when NOT running.

Specifically I want the commanded S-word.

It does show up under MDI "Active G-codes", but I don't know how to 
access it in HAL.

Danny


--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Getting current RPM setting?

2016-10-02 Thread Sebastian Kuzminsky
On 10/02/2016 02:32 AM, Danny Miller wrote:
> I thought it would be a good idea to display what the RPM setting is
> before the spindle is started.
>
> I see current_rps is right there WHILE the spindle is running.
>
> But when I enter "S1", it's set inside LinuxCNC even before M3.  I'd
> like to display it in pyvcp before M3 uses it. current_rps remains at zero.
>
> Is there a way to access the commanded RPM when not actually sending
> it?  I tried but couldn't find it.

It's available on the pin 'motion.spindle-speed-out'.  It's 0 when the 
spindle is stopped (M2 or M5), and it's the commanded S-word when the 
spindle is running (M3).

Details here:  http://linuxcnc.org/docs/html/man/man9/motion.9.html


-- 
Sebastian Kuzminsky

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] CNC little hobber

2016-10-02 Thread andy pugh
On 2 October 2016 at 16:17,   wrote:
> I have looked at some gearing diagrams of gear hobbers and I noticed that a 
> 'differential' gear set was included. What does that actually do?

It is for helical gears, and is linked to the feed gears. (Also easy
to do with LinuxCNC and HAL)

-- 
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, 1916

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] CNC little hobber

2016-10-02 Thread Dave Caroline
The differential gears are nothing to do with prime but to add the
traverse into the equation and also to add a rotation for a helical.
I have a diagram of one at
http://www.collection.archivist.info/hobbing.html

then you can wind the hob back along its cut traverse and it remains "in gear"

Dave Caroline

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] CNC little hobber

2016-10-02 Thread richshoop
I have looked at some gearing diagrams of gear hobbers and I noticed that a 
'differential' gear set was included. What does that actually do? I suspect it 
is for cutting prime number gears? 

- Original Message -

From: emc-users-requ...@lists.sourceforge.net 
To: emc-users@lists.sourceforge.net 
Sent: Sunday, October 2, 2016 12:22:56 AM 
Subject: Emc-users Digest, Vol 126, Issue 2 

Send Emc-users mailing list submissions to 
emc-users@lists.sourceforge.net 

To subscribe or unsubscribe via the World Wide Web, visit 
https://lists.sourceforge.net/lists/listinfo/emc-users 
or, via email, send a message with subject or body 'help' to 
emc-users-requ...@lists.sourceforge.net 

You can reach the person managing the list at 
emc-users-ow...@lists.sourceforge.net 

When replying, please edit your Subject line so it is more specific 
than "Re: Contents of Emc-users digest..." 


Today's Topics: 

1. Re: Estimated time remaining (Danny Miller) 
2. Re: CNC little hobber (andy pugh) 
3. Re: Estimated time remaining (sam sokolik) 
4. Re: Estimated time remaining (Todd Zuercher) 
5. Re: CNC little hobber (Dave Caroline) 
6. Re: CNC little hobber (Gregg Eshelman) 


-- 

Message: 1 
Date: Sat, 1 Oct 2016 17:27:25 -0500 
From: Danny Miller  
Subject: Re: [Emc-users] Estimated time remaining 
To: emc-users@lists.sourceforge.net 
Message-ID: <1692ab96-d54e-b4b1-4825-5d81dcb18...@austin.rr.com> 
Content-Type: text/plain; charset=windows-1252; format=flowed 

The estimator DOES just use distance & feedrate, not acceleration. This 
is effective for estimating 2D cuts but junk for 3D carving, which 
hinges primarily on acceleration. 

There is no one effective "factor". I have 3D carvings which took 4x 
longer than estimated, others 6x. If it is only a gentle slope then the 
factor could be 1x, all for the same profile. 

When tuning a machine, you can reduce the axis max velocity in order to 
increase the max acceleration, and this can in fact make the machine run 
faster. Note an arbitrary multiplier factor would be useless for 
tuning, as you need to know the actual effect of the parameter changes. 

But the feature I proposed- an ETA timer- I don't see how to do it, 
because the required info isn't on the interface that I can find. 
Specifically "total line count from the G-code" and "current line number 
in the G-code". The concept would fail for sure on G-code bearing 
subroutines but that's not a feature of any of the 3d carving I'm doing. 

The ETA-by-line-count would be inaccurate on 2D cutting, even without 
subroutines, because there's no telling how long a vector is. A curved 
cut can be 10 or 1000 lines but only take a second or two, while a 
single straight line can be a long cutting time. 

Danny 

On 10/1/2016 8:39 AM, Todd Zuercher wrote: 
> I suppose you might be able to make something like that. 
> 
> But I think I have a good idea for improving the run time estimator. Right 
> now how does it work, does it just use the feed rates X distance to be 
> traveled? What if it took that and added to it a factor(derived from the 
> machines acceleration rate) X the number of lines in the file. 
> 
> - Original Message - 
> From: dan...@austin.rr.com 
> To: "Enhanced Machine Controller (EMC)"  
> Sent: Friday, September 30, 2016 11:30:51 PM 
> Subject: [Emc-users] Estimated time remaining 
> 
> I am doing 3D carving, where the Properties analysis is regrettably useless 
> for coming up with time estimates due to not taking into account the 
> acceleration aspect of trajectory planning. 
> 
> I did install the cycle timer pvcp and it does certainly help. 
> 
> But one thing I noticed- these carvings are "mostly" consistent in how much 
> time they're taking per-line. It would be accurate enough to be helpful to 
> calculate: 
> 
> Time Remaining=(total # of gcode lines/gcode lines done so far)*cycletime so 
> far 
> 
> Is there any way to do that? All I can see is access to "time". 
> 
> Danny 
> 
> --
>  
> Check out the vibrant tech community on one of the world's most 
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot 
> ___ 
> Emc-users mailing list 
> Emc-users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/emc-users 
> 
> --
>  
> Check out the vibrant tech community on one of the world's most 
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot 
> ___ 
> Emc-users mailing list 
> Emc-users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/emc-users 
> 




-- 

Message: 2 
Date: Sat, 1 Oct 2016 23:36:46 +0100 
From: andy pugh 

Re: [Emc-users] CNC little hobber

2016-10-02 Thread Gene Heskett
On Sunday 02 October 2016 03:02:20 Dave Caroline wrote:

> And I used Andy's info and cnc'd a Barber Colman hobbing machine
>
> http://www.collection.archivist.info/searchv13.php?searchstr=barber+co
>lman+pd
>
> Dave Caroline
>
I'm impressed.  Nice work Dave.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Getting current RPM setting?

2016-10-02 Thread Danny Miller
I thought it would be a good idea to display what the RPM setting is 
before the spindle is started.

I see current_rps is right there WHILE the spindle is running.

But when I enter "S1", it's set inside LinuxCNC even before M3.  I'd 
like to display it in pyvcp before M3 uses it. current_rps remains at zero.

Is there a way to access the commanded RPM when not actually sending 
it?  I tried but couldn't find it.

Thanks,

Danny


--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] CNC little hobber

2016-10-02 Thread Gregg Eshelman
Replacing all the gearing that interconnects the various axes with encoders and 
motors on each bit that spins.



 
  From: "richsh...@comcast.net" 
 To: emc-users@lists.sourceforge.net 
 Sent: Saturday, October 1, 2016 3:49 PM
 Subject: [Emc-users] CNC little hobber
   
OK, I know nothing about gear hobbing, but have seen that youtube video of the 
little hobber, what kind of work would need to be done to build a cnc version 
of such a machine?
   
 
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] CNC little hobber

2016-10-02 Thread Dave Caroline
And I used Andy's info and cnc'd a Barber Colman hobbing machine

http://www.collection.archivist.info/searchv13.php?searchstr=barber+colman+pd

Dave Caroline

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users