Re: [Emc-users] Oneshot question

2016-09-16 Thread Gene Heskett
On Friday 16 September 2016 11:43:53 andy pugh wrote:

> On 16 September 2016 at 15:58, Gene Heskett  
wrote:
> > bookmarked. But where does it display the answer?
>
> J40

I saw that, said 0xB

That said I did have to make one change in what I posted before, because 
it would also do a forced shutdown when the spindle was above 200 rpms.

Moving the trigger source to hm2_5i25.0.encoder.00.input-b gave my 
oneshot much more activity on its trigger input.  Now its working well 
up to 450 revs, and that block of cast in the chuck could do serious 
damage if it was to get thrown so I didn't spin it up any higher.  When 
I remove it to turn it around tomorrow, I'll check it to 1500+ revs with 
an empty chuck.

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 

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


Re: [Emc-users] Oneshot question

2016-09-16 Thread Gene Heskett
On Friday 16 September 2016 11:38:20 Jon Elson wrote:

> On 09/16/2016 09:58 AM, Gene Heskett wrote:
> > On Friday 16 September 2016 08:58:53 andy pugh wrote:
> >> On 16 September 2016 at 13:46, Gene Heskett 
> >
> > wrote:
> >>> Ok, what I need is a true output for any input condition of i0 and
> >>> i1 except i1 true and i0 false. function 0x2, the only answer that
> >>> lut5.py gives you, doesn't do that.
> >>
> >> That's function FFFB actually.
> >>
> >> https://docs.google.com/spreadsheets/d/1_VlL39jUOPpS8Tt9mpRK-eaSTS6
> >>C6P HBDoE3JitvLzs/edit#gid=0
> >
> > bookmarked. But where does it display the answer? I did try the 0xB
> > but that didn't work. Machine on button was locked out IIRC. Where
> > does the 7 F's in front of it that you show, come from?
>
> A LUT5 has 5 inputs, all combinations define 32 possible
> states of those inputs.  So, you have to define the output
> behavior for all of those possible states.  In hex, 32 bits
> takes 8 symbols.  F (hex)  =  (binary).
> The exact ordering of which bit refers to which input
> combination is in the manual.
>
> Jon
>
Bottom of page 652 I presume. Be aware that I found that particular  
version of kcalc to be at least as handy as bottled beer.  There's one 
thats even better in the 8-04 lts but I couldn't make that disk read.

BBUUTT, since lcnc switched to a debian base that feature of kcalc has 
been excised from the repo's so I had to run down a somewhat scratched 
up 10-04 LTS disk and install that one to get my favorite calculator 
back. One of our group ought to go hunting and find a 10 yo copy of the 
sources because someday whats in the repos will be so dumbed down its 
worthless to us.

Thanks Jon.

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 

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


Re: [Emc-users] Oneshot question

2016-09-16 Thread andy pugh
On 16 September 2016 at 18:09, Todd Zuercher 
wrote:

>
> I feel dumb, no idea how I got that wrong number the first time should
> have been 0xb. (or 0xfffb if you worry about the unused bits)


Actually, to be really on the safe side, and to ensure that no spurious
values on the unused bits affect the output, it should be 0x

https://docs.google.com/spreadsheets/d/1_VlL39jUOPpS8Tt9mpRK-eaSTS6C6PHBDoE3JitvLzs/edit#gid=0


-- 
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
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Oneshot question

2016-09-16 Thread Todd Zuercher


- Original Message -
> From: "Todd Zuercher" <zuerc...@embarqmail.com>
> To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net>
> Sent: Friday, September 16, 2016 1:09:35 PM
> Subject: Re: [Emc-users] Oneshot question
> 
> 
> 
> - Original Message -
> > From: "Todd Zuercher" <zuerc...@embarqmail.com>
> > To: "Enhanced Machine Controller (EMC)"
> > <emc-users@lists.sourceforge.net>
> > Sent: Friday, September 16, 2016 9:24:55 AM
> > Subject: Re: [Emc-users] Oneshot question
> > 
> > I would have thought that 0xc would have given you the result you
> > wanted (assuming only inputs 0 and 1 are used).
> 
> I feel dumb, no idea how I got that wrong number the first time
> should have been 0xb. (or 0xfffb if you worry about the unused
> bits)
> sorry
> 

Make that0x

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


Re: [Emc-users] Oneshot question

2016-09-16 Thread Todd Zuercher


- Original Message -
> From: "Todd Zuercher" <zuerc...@embarqmail.com>
> To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net>
> Sent: Friday, September 16, 2016 9:24:55 AM
> Subject: Re: [Emc-users] Oneshot question
> 
> I would have thought that 0xc would have given you the result you
> wanted (assuming only inputs 0 and 1 are used).

I feel dumb, no idea how I got that wrong number the first time should have 
been 0xb. (or 0xfffb if you worry about the unused bits)
sorry

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


Re: [Emc-users] Oneshot question

2016-09-16 Thread Jon Elson
On 09/16/2016 09:58 AM, Gene Heskett wrote:
> On Friday 16 September 2016 08:58:53 andy pugh wrote:
>
>> On 16 September 2016 at 13:46, Gene Heskett 
> wrote:
>>> Ok, what I need is a true output for any input condition of i0 and
>>> i1 except i1 true and i0 false. function 0x2, the only answer that
>>> lut5.py gives you, doesn't do that.
>> That's function FFFB actually.
>>
>> https://docs.google.com/spreadsheets/d/1_VlL39jUOPpS8Tt9mpRK-eaSTS6C6P
>> HBDoE3JitvLzs/edit#gid=0
> bookmarked. But where does it display the answer? I did try the 0xB but
> that didn't work. Machine on button was locked out IIRC. Where does the
> 7 F's in front of it that you show, come from?
A LUT5 has 5 inputs, all combinations define 32 possible 
states of those inputs.  So, you have to define the output 
behavior for all of those possible states.  In hex, 32 bits 
takes 8 symbols.  F (hex)  =  (binary).
The exact ordering of which bit refers to which input 
combination is in the manual.

Jon

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


Re: [Emc-users] Oneshot question

2016-09-16 Thread andy pugh
On 16 September 2016 at 15:58, Gene Heskett  wrote:

> bookmarked. But where does it display the answer?


J40

-- 
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
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Oneshot question

2016-09-16 Thread Gene Heskett
On Friday 16 September 2016 08:58:53 andy pugh wrote:

> On 16 September 2016 at 13:46, Gene Heskett  
wrote:
> > Ok, what I need is a true output for any input condition of i0 and
> > i1 except i1 true and i0 false. function 0x2, the only answer that
> > lut5.py gives you, doesn't do that.
>
> That's function FFFB actually.
>
> https://docs.google.com/spreadsheets/d/1_VlL39jUOPpS8Tt9mpRK-eaSTS6C6P
>HBDoE3JitvLzs/edit#gid=0

bookmarked. But where does it display the answer? I did try the 0xB but 
that didn't work. Machine on button was locked out IIRC. Where does the 
7 F's in front of it that you show, come from?

Anyway, I believe I have it working, with an and2 and a not. I may have 
to play with delay timings to do rigid tapping. TBD.

Thanks Andy.

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 

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


Re: [Emc-users] Oneshot question

2016-09-16 Thread Gene Heskett
On Friday 16 September 2016 08:26:07 Todd Zuercher wrote:

> Maybe it would be easier for you to draw out what you want to do with
> ladder logic?

No experience at that Todd. But I believe I have it working.

A timedelay to give the spindle time to start moving. 200 milliseconds.
A retriggerable oneshot looking at the encoder to detect movement.
An and2 with the oneshots out-not is in0. True if not moving.
The input in1 is the timedelay. True after the timedelay, which is 
started my motion.spindle-on.

That and2 gives a logic one out when both are true.
Thats fed to a not, and the not is fed to motion.enable.

Start spindle with motor power off, or backgear in neutral, 200 ms later 
the machine on button goes off. And spits out a motion stopped error 
message. 

Click the machine on button after reaching around a mag based dial that 
sits on the head for handy use as the chuck is a 5" 4 jaw, hiding even 
the extended lever I put on the backgear, and put it in gear, hit r and 
it should run the program.  In the instant operation, its making a 
replacement block for a junk compound of this Sheldon 11x36 I bought 
back in early June and am doing a cnc conversion to. That block of cast 
in the chuck is at least 20 lbs. A measureable percentage of the whole 
lathes weight as its only a 7x12. But its been rebuilt here and there 
and almost usable as a cnc lathe. Ball screws, tapered gibs, and a 
compound replacement block of cast iron to replace the weeping willow 
compound it came with. Still needs baby sitting from time to time, and 
this will reduce that. Thats probably a 20+ hour job as the block is 
found cast. A pour plug cut off a truck wheel casting at our local 
casting operation. Good source of cast for a hobbyist machinist, but 
darned near more than my back wants to carry in one piece.

But next is a skinny-dip as I have an appointment with a medicine man at 
a hospital/clinic about 30 miles up the superslab at 1pm. I need to see 
his dance & maybe do a few steps of my own before he'll renew a 
prescription for gabapentin that keeps me going.  My back is going away, 
lots of pain.

I don't recommend getting old, avoid it if you can. :(

Take care Todd.

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 

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


Re: [Emc-users] Oneshot question

2016-09-16 Thread Todd Zuercher


- Original Message -
> From: "Gene Heskett" <ghesk...@shentel.net>
> To: emc-users@lists.sourceforge.net
> Sent: Friday, September 16, 2016 8:46:25 AM
> Subject: Re: [Emc-users] Oneshot question
> 
> On Friday 16 September 2016 04:15:07 andy pugh wrote:
> 
> > On 16 September 2016 at 02:06, Gene Heskett <ghesk...@shentel.net>
> wrote:
> > > Looking at the lut5 modules man page, where it claims all kinds
> > > of
> > > functions can be performed, I am not grokking what it says.
> >
> > It allows you to define a single output value for every combination
> > of
> > the 5 input values.
> > That's all.
> > If one of the inputs is a raw signal and one is a delayed version,
> > and
> > if you feed the output back to one of the inputs, then it is
> > capable
> > of a great degree of subtlety.
> 
> Ok, what I need is a true output for any input condition of i0 and i1
> except i1 true and i0 false. function 0x2, the only answer that
> lut5.py
> gives you, doesn't do that. I've also tried every function from 0x0
> to
> 0xf without finding anything usable.
> 
> So I gave up and used an and2 and a not. That seems to work from an
> ssh -Y login. I get a near instant shutdown for a spindle on but
> motor
> power off.
> 
> Thanks Andy.
> 

I would have thought that 0xc would have given you the result you wanted 
(assuming only inputs 0 and 1 are used).

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


Re: [Emc-users] Oneshot question

2016-09-16 Thread andy pugh
On 16 September 2016 at 13:46, Gene Heskett  wrote:

> Ok, what I need is a true output for any input condition of i0 and i1
> except i1 true and i0 false. function 0x2, the only answer that lut5.py
> gives you, doesn't do that.
>

That's function FFFB actually.

https://docs.google.com/spreadsheets/d/1_VlL39jUOPpS8Tt9mpRK-eaSTS6C6PHBDoE3JitvLzs/edit#gid=0


-- 
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
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Oneshot question

2016-09-16 Thread Gene Heskett
On Friday 16 September 2016 04:15:07 andy pugh wrote:

> On 16 September 2016 at 02:06, Gene Heskett  
wrote:
> > Looking at the lut5 modules man page, where it claims all kinds of
> > functions can be performed, I am not grokking what it says.
>
> It allows you to define a single output value for every combination of
> the 5 input values.
> That's all.
> If one of the inputs is a raw signal and one is a delayed version, and
> if you feed the output back to one of the inputs, then it is capable
> of a great degree of subtlety.

Ok, what I need is a true output for any input condition of i0 and i1 
except i1 true and i0 false. function 0x2, the only answer that lut5.py 
gives you, doesn't do that. I've also tried every function from 0x0 to 
0xf without finding anything usable.

So I gave up and used an and2 and a not. That seems to work from an 
ssh -Y login. I get a near instant shutdown for a spindle on but motor 
power off.

Thanks Andy.

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 

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


Re: [Emc-users] Oneshot question

2016-09-16 Thread Todd Zuercher
Maybe it would be easier for you to draw out what you want to do with ladder 
logic?

- Original Message -
From: "Gene Heskett" <ghesk...@shentel.net>
To: emc-users@lists.sourceforge.net
Sent: Friday, September 16, 2016 1:38:43 AM
Subject: Re: [Emc-users] Oneshot question

On Thursday 15 September 2016 21:06:17 Gene Heskett wrote:

> On Thursday 15 September 2016 10:44:08 Gene Heskett wrote:
> > On Thursday 15 September 2016 06:57:27 andy pugh wrote:
> > > On 15 September 2016 at 11:04, Gene Heskett <ghesk...@shentel.net>
> >
> > wrote:
> > > > But, if I could 'net' the edge trigger parameters,
> > >
> > > You can't net parameters. You can only net pins.
> > > http://linuxcnc.org/docs/2.7/html/man/man9/oneshot.9.html
> > > Tells you which are which.
> >
> > Ok, then as soon as the coffee and my morning pills have kicked in,
> > I'll go carve a bit on the hal file for TLM.
>
> Looking at the lut5 modules man page, where it claims all kinds of
> functions can be performed, I am not grokking what it says.  And the
> link to lut5.py isn't helping as it gives me the exact same answer,
> 0x2, regardless of what logic operator I put between the two input
> pins.  And what it says is not getting me what I want.  What I want is
> a true output for every input combo of 2 pins, based on
> motion.spindle-on but delayed a hundred milliseconds as an enable of
> its going false if the encoder output stops, indicated by frozen data
> for .2 seconds.
>
> That will stop the retrigger oneshot. So it will go true or false
> depending on the output wired in.
>
> The second input in-1, is fed from a timedelay module so that its
> output is a time-delayed version of motion.spindle-on, delayed by how
> long it takes the spindle to move past an edge of a slot plus a bit,
> perhaps 250 milliseconds from the time motion.spindle-on went true.
>
> The best I can get, for about an hours playing with halshowconfig, and
> setp is to get it to move the spindle about 10 degrees during the
> timedelay, and shut it down because the spindle did move.
>
> Thanks for any enlightenment that is not in the manpage.
>
> Cheers, Gene Heskett

I just had a better idea Andy. Use the onehot to make a 
spindle-is-turning signal as now. Feed that into a mux2.in1

Use the timedelay to switch that mux2, feeding a logic one into in0, and 
the spindle-is-turning into in1.

When the timedelay runs out, and spindle-is-turning is still false, bang 
the motion.enable down with the 0 out of the mux2 until the timedelay 
has been reset by motion.spindle-on going back false, putting the logic 
1 back into motion.enable from the mux2.in0.

However, a mux2 carries digital values & may not like a setp in0 True, 
and on looking thru what we have, maybe tristate_bit might be the better 
choice, copying a logic 0 from spindle-is-turning when it isn't, to 
motion.enable until the timedelay is reset by the machine being turned 
off  I'll try that.  And I found tristate_bit is not tristated when 
disabled. Testing now. Yup, its pulling motion.enable false when its 
enable is false. So the machine cannot be turned on at all.  

Thats a bug isn't it?

Unless you've an even better idea of course. Obviously this doesn't work.

Thanks Andy.

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 <http://geneslinuxbox.net:6309/gene>

--
___
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


Re: [Emc-users] Oneshot question

2016-09-16 Thread andy pugh
On 16 September 2016 at 02:06, Gene Heskett  wrote:

> Looking at the lut5 modules man page, where it claims all kinds of
> functions can be performed, I am not grokking what it says.
>

It allows you to define a single output value for every combination of the
5 input values.
That's all.
If one of the inputs is a raw signal and one is a delayed version, and if
you feed the output back to one of the inputs, then it is capable of a
great degree of subtlety.

-- 
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
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Oneshot question

2016-09-15 Thread Gene Heskett
On Thursday 15 September 2016 21:06:17 Gene Heskett wrote:

> On Thursday 15 September 2016 10:44:08 Gene Heskett wrote:
> > On Thursday 15 September 2016 06:57:27 andy pugh wrote:
> > > On 15 September 2016 at 11:04, Gene Heskett 
> >
> > wrote:
> > > > But, if I could 'net' the edge trigger parameters,
> > >
> > > You can't net parameters. You can only net pins.
> > > http://linuxcnc.org/docs/2.7/html/man/man9/oneshot.9.html
> > > Tells you which are which.
> >
> > Ok, then as soon as the coffee and my morning pills have kicked in,
> > I'll go carve a bit on the hal file for TLM.
>
> Looking at the lut5 modules man page, where it claims all kinds of
> functions can be performed, I am not grokking what it says.  And the
> link to lut5.py isn't helping as it gives me the exact same answer,
> 0x2, regardless of what logic operator I put between the two input
> pins.  And what it says is not getting me what I want.  What I want is
> a true output for every input combo of 2 pins, based on
> motion.spindle-on but delayed a hundred milliseconds as an enable of
> its going false if the encoder output stops, indicated by frozen data
> for .2 seconds.
>
> That will stop the retrigger oneshot. So it will go true or false
> depending on the output wired in.
>
> The second input in-1, is fed from a timedelay module so that its
> output is a time-delayed version of motion.spindle-on, delayed by how
> long it takes the spindle to move past an edge of a slot plus a bit,
> perhaps 250 milliseconds from the time motion.spindle-on went true.
>
> The best I can get, for about an hours playing with halshowconfig, and
> setp is to get it to move the spindle about 10 degrees during the
> timedelay, and shut it down because the spindle did move.
>
> Thanks for any enlightenment that is not in the manpage.
>
> Cheers, Gene Heskett

I just had a better idea Andy. Use the onehot to make a 
spindle-is-turning signal as now. Feed that into a mux2.in1

Use the timedelay to switch that mux2, feeding a logic one into in0, and 
the spindle-is-turning into in1.

When the timedelay runs out, and spindle-is-turning is still false, bang 
the motion.enable down with the 0 out of the mux2 until the timedelay 
has been reset by motion.spindle-on going back false, putting the logic 
1 back into motion.enable from the mux2.in0.

However, a mux2 carries digital values & may not like a setp in0 True, 
and on looking thru what we have, maybe tristate_bit might be the better 
choice, copying a logic 0 from spindle-is-turning when it isn't, to 
motion.enable until the timedelay is reset by the machine being turned 
off  I'll try that.  And I found tristate_bit is not tristated when 
disabled. Testing now. Yup, its pulling motion.enable false when its 
enable is false. So the machine cannot be turned on at all.  

Thats a bug isn't it?

Unless you've an even better idea of course. Obviously this doesn't work.

Thanks Andy.

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 

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


Re: [Emc-users] Oneshot question

2016-09-15 Thread Gene Heskett
On Thursday 15 September 2016 10:44:08 Gene Heskett wrote:

> On Thursday 15 September 2016 06:57:27 andy pugh wrote:
> > On 15 September 2016 at 11:04, Gene Heskett 
>
> wrote:
> > > But, if I could 'net' the edge trigger parameters,
> >
> > You can't net parameters. You can only net pins.
> > http://linuxcnc.org/docs/2.7/html/man/man9/oneshot.9.html
> > Tells you which are which.
>
> Ok, then as soon as the coffee and my morning pills have kicked in,
> I'll go carve a bit on the hal file for TLM.

Looking at the lut5 modules man page, where it claims all kinds of 
functions can be performed, I am not grokking what it says.  And the 
link to lut5.py isn't helping as it gives me the exact same answer, 0x2, 
regardless of what logic operator I put between the two input pins.  And 
what it says is not getting me what I want.  What I want is a true 
output for every input combo of 2 pins, based on motion.spindle-on but 
delayed a hundred milliseconds as an enable of its going false if the 
encoder output stops, indicated by frozen data for .2 seconds.

That will stop the retrigger oneshot. So it will go true or false 
depending on the output wired in.

The second input in-1, is fed from a timedelay module so that its output 
is a time-delayed version of motion.spindle-on, delayed by how long it 
takes the spindle to move past an edge of a slot plus a bit, perhaps 250 
milliseconds from the time motion.spindle-on went true.

The best I can get, for about an hours playing with halshowconfig, and 
setp is to get it to move the spindle about 10 degrees during the 
timedelay, and shut it down because the spindle did move.

Thanks for any enlightenment that is not in the manpage.

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 

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


Re: [Emc-users] Oneshot question

2016-09-15 Thread Gene Heskett
On Thursday 15 September 2016 06:57:27 andy pugh wrote:

> On 15 September 2016 at 11:04, Gene Heskett  
wrote:
> > But, if I could 'net' the edge trigger parameters,
>
> You can't net parameters. You can only net pins.
> http://linuxcnc.org/docs/2.7/html/man/man9/oneshot.9.html
> Tells you which are which.

Ok, then as soon as the coffee and my morning pills have kicked in, I'll 
go carve a bit on the hal file for TLM.

The story so far:

Its next job is to make a base for the phase II on the Sheldon, replacing 
the compound.  The ways on the compound are junk, sprung to about a 20 
thou taper, and the "ears" where its bolted to the carriage are sprung 
just enough to let it rock, so I have a block of cast that currently 
weighs about 25 lbs that will be carved in stages, first to a cylinder 
the same size as the base of the old compound, then the side grooves cut 
on the mill to copy the shape of the compounds base, and the holes for 
the hold-down bolts drilled.  Then back to TLM but mounted off-center 
about 3/4", drill the hole for the phase II hold-down and tap it, make 
the top about .001" concave so its the outside edge of the phase II that 
bears 95% of the hold-down bolts force, a trick I learned on TLM to stop 
the tool post from being turned by cutting forces such has a dull boring 
bar might subject it to.

Hope fully, the top of the cross slider isn't similarly sprung.

The last operation then is to turn it to this off-center contour with a 
g3 curve, advancing both x and z in the loop until the top is the right 
size for the phase II, and the bottom will clear any large things I 
might be tempted to mount in that 8" chuck on the Sheldon.

That was, maybe still is a problem on TLM, but that same piece replaceing 
the compound on it has now been similarly carved, hopefully enough I can 
face cut all the way to the center as I make that piece for the Sheldon.  
The idea of the off-center is so that this base can be rotated, moving 
the tool post to adjust such clearance issues.

Then I need to make a ring for the shop made collet puller to rest 
against on the rear of the Sheldon's spindle so I can also use 5C stuff 
for smaller work.

And while TLM is doing that, I can drill & tap the bottom of the 
Sheldon's saddle for some 1/4" bolts to hold a brass, full width front 
gib in place. I am still removing paint from the bottom of the bed ledge 
so I can use an area that has not been chewed up by the OEM postage 
sized tabs that served that purpose, one of which was also equipted with 
a locking bolt to serve as a carriage lock, so the first 3/16" of that 
area is well trashed because that bolt was bent and there was no 
position that didn't drag and wear on the bed lip short of removing it 
completely.  The high wear area is cut about 20 thou deep!
Test fits indicate I may need a few thousandths of shim stock to fit it 
right. OTOH, it might fit if I can get rid of all the paint. Acetone 
removes it, slowly, and I've spent at least an hour already doing that.

I'd make tapered gibs, but that job for TLM was about 2 weeks work 
because I didn't really have enough heat to properly anneal the brass, 
so I had to hammer and file it straight, a process that always came up 
with a twist, until I found the file wasn't flat! Things went a lot 
better after I found a file that didn't rock when laid on a flat 
surface. That made a huge difference in how TLM made finish cuts. I can 
almost quit calling it a toy!

OTOH, that side project improving TLM did kept me out of the bars for a 
while. :)

Thanks Andy.

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 

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


Re: [Emc-users] Oneshot question

2016-09-15 Thread andy pugh
On 15 September 2016 at 11:04, Gene Heskett  wrote:

> But, if I could 'net' the edge trigger parameters,


You can't net parameters. You can only net pins.
http://linuxcnc.org/docs/2.7/html/man/man9/oneshot.9.html
Tells you which are which.




-- 
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
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Oneshot question

2016-09-15 Thread Gene Heskett
On Thursday 15 September 2016 04:55:03 andy pugh wrote:

> On 15 September 2016 at 05:20, Gene Heskett  
wrote:
> > would be simplified if I could use a 'setp' parameter as
> > a 'net' pin.
>
> As parameters, pins, nets and "setp" are all different things I am not
> clear what you are asking here.
>
> If you are asking if you can "setp" a pin value then leave it
> unconnected, and it will hold the setp value, then the answer is "yes"

I'd like to "net" it to the output of another logic module, which would 
save an and2 gate in the data flow.

I already have a 'spindle-is-moving' signal which would (re)trigger a 
oneshot to give a steady signal as long as the spindle is turning. Then 
I want motion.spindle-on to trigger a second oneshot. If at the end of 
that oneshot pulse, the spindle is moving, everythings fine, but if the 
spindle-is-moving is false at the end of that oneshot, trigger a 3rd to 
pull motion.enable down for a few milliseconds, bringing everything to a 
halt before the motor, with no feedback, has been told to go 450 rpms, 
but the PID winds it up to 10 grand and destroys some more stuff.  This 
time it was the 5i25 and the bob that were blown.  But it went thru the 
grounding system and took all 3 slot interrupters out of the encoder 
too.  So it was about a $150 fix all told, apparently caused by a lack 
of a common ground between the - end of the motor's psu and the system 
ground.

So maybe do it with 2 oneshots & a timedelay?  The timedelay to make a 
startup delay of perhaps 50 milliseconds. A oneshot to convert the 
filter pump to a steady signal, Feed those to an and2, and if the and2 
goes true, fire the 3rd one to shut things down before the motor gets 
all wound up.

But, if I could 'net' the edge trigger parameters, I could do away with 
an and2 in the chain by disabling both edges in lieu of the and2.

It seems there ought to be a simpler way than 4 hal modules to do a 
spindle hasn't turned 100 milliseconds after enabling it shutdown.

I'll set that up come daytime & see if I can get the right "-not" signals 
into the and2.

The idea is to pull motion.enable low just long enough to kill everything 
and then release it.  While at the same time, being immune to the very 
short time of very low speed when the spindle direction is reversed 
while doing rigid tapping. That reversals speed is determined by the 
acceleration profiles, separate from the PID that I put in to keep from 
destroying drive pulley's and belts.

That acceleration limit3's straight line ramp works, but I'd like to have 
a limit4 whose characteristic output for a step input was a 'sine 
squared' ramp.  But we "don't hardly got some more of those". :)  It 
would go a long ways towards de-jerking the spindle.

Thanks Andy.

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 

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


Re: [Emc-users] Oneshot question

2016-09-15 Thread andy pugh
On 15 September 2016 at 05:20, Gene Heskett  wrote:

> would be simplified if I could use a 'setp' parameter as
> a 'net' pin.
>

As parameters, pins, nets and "setp" are all different things I am not
clear what you are asking here.

If you are asking if you can "setp" a pin value then leave it unconnected,
and it will hold the setp value, then the answer is "yes"

-- 
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
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users