Re: [Emc-users] PLC for special purpose CNC

2023-08-15 Thread Jean-François Simon

Andy Sam, thanks for highlights

Jean-François

On 8/15/23 15:20, Sam Sokolik wrote:

Well...   Linuxcnc has a integrated ladder logic. (classic ladder).   You
also have the ability to write realtime components in C like language.

http://linuxcnc.org/docs/stable/html/hal/comp.html

I have retrofitted a cnc with 96 i/o and all is controlled with linuxcnc.
(both ladder and C)

sam

On Tue, Aug 15, 2023 at 8:08 AM Jean-François Simon 
wrote:


Hi,

May i ask a question, what's the common status about specialized PLC
that supports high performance languages like C/C++, does this have any
advantage in the CNC and special machines design and manufacturing or
not worth the price.

What's the most common approach to control systems (boards, plc ...)
when designing a complex cnc machine.

Thanks & reagards

Jean-François




___
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



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


Re: [Emc-users] PLC for special purpose CNC

2023-08-15 Thread Sam Sokolik
Well...   Linuxcnc has a integrated ladder logic. (classic ladder).   You
also have the ability to write realtime components in C like language.

http://linuxcnc.org/docs/stable/html/hal/comp.html

I have retrofitted a cnc with 96 i/o and all is controlled with linuxcnc.
(both ladder and C)

sam

On Tue, Aug 15, 2023 at 8:08 AM Jean-François Simon 
wrote:

> Hi,
>
> May i ask a question, what's the common status about specialized PLC
> that supports high performance languages like C/C++, does this have any
> advantage in the CNC and special machines design and manufacturing or
> not worth the price.
>
> What's the most common approach to control systems (boards, plc ...)
> when designing a complex cnc machine.
>
> Thanks & reagards
>
> Jean-François
>
>
>
>
> ___
> 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] PLC for special purpose CNC

2023-08-15 Thread andy pugh
On Tue, 15 Aug 2023 at 14:08, Jean-François Simon  wrote:

> May i ask a question, what's the common status about specialized PLC
> that supports high performance languages like C/C++

In the context of LinuxCNC it wouldn't make much sense to use a PLC
which runs C. You would just create a HAL component (in C) which will
integrate rather more tightly into the system.

-- 
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] PLC for special purpose CNC

2023-08-15 Thread Jean-François Simon

Hi,

May i ask a question, what's the common status about specialized PLC 
that supports high performance languages like C/C++, does this have any 
advantage in the CNC and special machines design and manufacturing or 
not worth the price.


What's the most common approach to control systems (boards, plc ...) 
when designing a complex cnc machine.


Thanks & reagards

Jean-François




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


Re: [Emc-users] Rigid tapping

2023-08-15 Thread andy pugh
On Tue, 15 Aug 2023 at 11:16, John Dammeyer  wrote:

> I'd guess that if the spindle encoder is  such that on each servo period 
> event,  that if the position of the encoder isn't electrically determined by 
> another encoder edge,  then a calculated value based on where the system 
> thinks it is will be reported as the position.

Yes. It "fllls in" the stairsteps in cases where there hasn't been an
edge seen since the last servo period.

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


Re: [Emc-users] Rigid tapping

2023-08-15 Thread John Dammeyer
What does this actually do assuming I using  the latest master?
net spindle-revs<=   hm2_7i92.0.encoder.01.position-interpolated

I'd guess that if the spindle encoder is  such that on each servo period event, 
 that if the position of the encoder isn't electrically determined by another 
encoder edge,  then a calculated value based on where the system thinks it is 
will be reported as the position. 
John

> -Original Message-
> From: andy pugh [mailto:bodge...@gmail.com]
> Sent: August 15, 2023 1:03 AM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] Rigid tapping
> 
> On Tue, 15 Aug 2023 at 01:11, John Dammeyer 
> wrote:
> 
> > It's why I'm filtering.  And yes. I agree, at this slow a speed I suspect
> > what I will find is two different velocities reported from edge to edge.
> 
> Rigid tapping uses the encoder-position, not the encoder velocity.
> 
> (And I wouldn't suggest filtering that in the HAL)
> 
> If you are using the latest master then you will have a pin
> ...position-interpolated that you can substitute into this line:
> net spindle-revs <=   hm2_7i92.0.encoder.01.position
> 
> --
> 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


Re: [Emc-users] Rigid tapping

2023-08-15 Thread andy pugh
On Tue, 15 Aug 2023 at 01:11, John Dammeyer  wrote:

> It's why I'm filtering.  And yes. I agree, at this slow a speed I suspect
> what I will find is two different velocities reported from edge to edge.

Rigid tapping uses the encoder-position, not the encoder velocity.

(And I wouldn't suggest filtering that in the HAL)

If you are using the latest master then you will have a pin
...position-interpolated that you can substitute into this line:
net spindle-revs <=   hm2_7i92.0.encoder.01.position

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


Re: [Emc-users] Rigid tapping

2023-08-15 Thread John Dammeyer
Yes.  That's way faster tapping than I've done.  I'm going to have to try
tapping that quickly just to keep up.  ;-)
But I'm not so concerned about being able to tap slowly.  Just that I want
to see the behaviour and how the trajectory planner handles hand turning the
spindle and have the Z axis track.   
Now seeing the waveforms from the velocity out over the MESA board I can see
why the Z axis would have that start/stop feel.  
John

> -Original Message-
> From: Sam Sokolik [mailto:samco...@gmail.com]
> Sent: August 14, 2023 9:09 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] Rigid tapping
> 
> Would you ever be tapping that slow?   If you are - then yes - higher
> resolution or try interpolation..  (Will that be bad in rigid tapping
> reversals?  Threading on a lathe interpolation works great - but that is
> one direction...). The green machine had a gear tooth encoder - about 40
> ish teeth.  I never tried running it that slow rigid tapping - but I did
> initially use it for non-circular boring.  It did OK at around 10 to 50
rpm
> but you certainly could see the resolution in the cut..  I did rigid tap
> with it - but pretty high rpm with no issues..
> 
> https://youtu.be/F7QulGiMt20
> 
> On Mon, Aug 14, 2023, 10:50 PM Chris Albertson
> 
> wrote:
> 
> > I think with encoders that are not symmetric 50/50, you need to look
only
> > at the leading edges. (Or only at the trailing edges)
> >
> > Yes,this cuts the resulution in half but removes the nose.I think
for
> > somethig with a lot of rotational inertia, like a spindle, you can use
> > interpolation to get all the resolution you need.
> >
> >
> >
> >
> > ___
> > 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



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