Re: [Emc-users] jerk control

2021-08-29 Thread Alexander Brock
On 8/26/21 10:38 AM, andy pugh wrote:
> On Thu, 26 Aug 2021 at 00:34, Alexander Brock  
> wrote:
> 
>> There is an elegant way to compute exact derivatives without computing
>> analytical derivatives by hand. Here is a nice introduction:
> 
> Is that applicable to the LinuxCNC kinematics functions? (Which are
> kernel modules written in C).

The idea can be implemented in C and for simple cases like 1D funktions
it should be fairly straight-forward.

The beauty with C++ is having templates and operator overloading so the
kinematic function needs to implemented only once and can then be used
for all datatypes (double, Jet). Also, operator overloading makes code
more readable, for example in C++ I could write (random example):

x = cos(4*t) + 2*t*t + 9

and it works with Jet but in C that would probably translate to
something like

x = sum(cos(product(4,t)), product(2,t,t), 9)

I'm using C++ 99.99% of the time so if I would be tasked with providing
derivatives in a C program I would try to make some kind of library /
module where I just use C++ for the actual computations but I don't know
how that would work or what the downsides would be.

Best Regards,
Alexander


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


Re: [Emc-users] jerk control

2021-08-25 Thread Alexander Brock
On 8/24/21 1:08 AM, andy pugh wrote:
> I have a feeling that kinematics is not a problem in most cases, the
> kins functions run fast enough to be used for finite-difference
> differentiation / numerical integration.

There is an elegant way to compute exact derivatives without computing
analytical derivatives by hand. Here is a nice introduction:

http://ceres-solver.org/automatic_derivatives.html#chapter-automatic-derivatives

Best Regards,
Alexander


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


Re: [Emc-users] Example configuration for THC + stepper

2017-03-13 Thread Alexander Brock
On 03/13/2017 03:49 PM, John Thornton wrote:
> It really has nothing to do with the GUI, it's something you add to your 
> hal file. I just use a setp to enable it when I start my GUI ( I used to 
> use a check box but would forget to check it lol).

How can I create a configuration which provides the nice gmoccapy-plasma
gui, runs my steppers using the parport and uses thcud for THC?

Best Regards,
Alexander



signature.asc
Description: OpenPGP digital signature
--
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] Example configuration for THC + stepper

2017-03-13 Thread Alexander Brock
On 03/12/2017 11:46 PM, John Thornton wrote:
> Are you using the thcud component?

Do you mean this?
http://linuxcnc.org/docs/html/man/man9/thcud.9.html

I'm not using it at the moment but it seems this provides what I need /
want. Would you suggest to
a) integrate it in the gmoccapy-plasma config shipped with linuxcnc
b) integrate it into a "mill" configuration generated with stepconf
c) something else?

Best Regards,
Alexander



signature.asc
Description: OpenPGP digital signature
--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Example configuration for THC + stepper

2017-03-12 Thread Alexander Brock
Hi,

I forgot to mention that I use the parport interface.

Best Regards,
Alexander



signature.asc
Description: OpenPGP digital signature
--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Example configuration for THC + stepper

2017-03-12 Thread Alexander Brock
Hi,

I built a XYZ router and attached a plasma cutter to it with a THC
module which gives me "Arc ok", "up" and "down" signals.
I figured out how to use Stepconf to move the stepper motors but I can't
get the THC part to work.

Does someone have a similar / example configuration? I saw that there is
a example for simulating plasma operation in
"configs/sim/gmoccapy/gmoccapy_plasma", but I don't understand how I
need to modify it so it moves my steppers and actually uses my plasma
cutter.

Is it better / easier to modify the gmoccapy_plasma so it actually does
something or should I try to modify the mill configuration which does
already move the steppers?

Best Regards,
Alexander

--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Plasma Torch Height Control

2016-10-25 Thread Alexander Brock
On 09/10/2016 12:35 PM, Marius Liebenberg wrote:
> The cncprofi work very well and with no fuss. I used it many times.

I finally had time for my project again and I bought the cncprofi one. I
managed to connect it to the plasma and it seems to work (shows up and
down and it changes when I shout at the plasma operator that he should
lower / raise the torch :-)).
I tried to adapt a configuration used for a servo router but failed,
does anyone have a working configuration for a stepper router with a
plasma torch? IIRC I have LinuxCNC 2.7.0 but I'm willing to upgrade it
if necessary.

Best Regards,
Alexander



signature.asc
Description: OpenPGP digital signature
--
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Plasma Torch Height Control

2016-09-12 Thread Alexander Brock
On 09/11/2016 04:22 PM, John Thornton wrote:
> Does is have connections to measure the tip voltage?

I'm not exactly sure, it has a connection named "CNC" and it might be
either an input for starting / stopping the cutting or an output for
measuring tip voltage.

Best Regards,
Alexander



signature.asc
Description: OpenPGP digital signature
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Plasma Torch Height Control

2016-09-10 Thread Alexander Brock
On 09/10/2016 01:21 AM, John Thornton wrote:
> What kind of plasma torch do you have?

This one:

http://www.stamos-welding.com/s-plasma-125h

Best Regards,
Alexander



signature.asc
Description: OpenPGP digital signature
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Plasma Torch Height Control

2016-09-09 Thread Alexander Brock
On 09/09/2016 10:58 PM, John Thornton wrote:
> Most LinuxCNC users use this one as do I.
> http://mesaus.com/index.php?route=product/product=65_id=64
> or
> http://mesaus.com/index.php?route=product/product=65_id=65
> depending on your plasma torch.

Thank you for your answer :-)

I have a HF arc start with pilot arc functionality, there are 3 cables:
- thick cable for +, connected to torch
- thinn cable for pilot arc ignition, also connected to torch
- thick cable for -, connected to clamp which I attach to the material I
want to cut.

Do I need 2 of the AD converters to monitor cutting arc and pilot arc?
What would be an appropriate resistor to protect the THCAD?

Best Regards,
Alexander



signature.asc
Description: OpenPGP digital signature
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Plasma Torch Height Control

2016-09-09 Thread Alexander Brock
Hi,

I recently bought a Plasma Cutter and built a CNC router and now I want
to add a Torch Height Control to it.

I found these models, does anyone have experience with them or
experience with other THC systems?

http://www.ebay.de/itm/172288076009
http://www.ebay.de/itm/262439946439
http://www.cncprofi.eu/product_info.php?info=p860_profi-plasmabrenner-hoehe-controller-thc.html

Best Regards,
Alexander



signature.asc
Description: OpenPGP digital signature
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Python script find center from 3 locations

2010-03-24 Thread Alexander Brock
Am 24.03.2010 20:27, schrieb Stephen Wille Padnos:
 Ries van Twisk wrote:
 The forumla might be right, looks a bit long to me :), there are
 better/other ways...

It looks so ugly because it contains the general solution of a system of
equations. That's why computer algebra systems were invented, nobody
wants to solve such equations by hand.

 http://mathforum.org/library/drmath/sets/select/dm_center_circle.html

 The case for a CNC is even simpler, because we don't have to use any 
 three random points.

Sometimes you cannot choose, e.g. because the hole is damaged or partly
covered or it's only a half hole.

Alexander



signature.asc
Description: OpenPGP digital signature
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Python script find center from 3 locations

2010-03-22 Thread Alexander Brock
Hi,

 Does anyone know if there is a script for emc similar to in mach 3 where 
 you can touch of multiple edges of a circle and it will calculate the 
 center for you?

I don't know such a script, but if you just want to calculate the
center, here is a description of the solution:
http://mathforum.org/library/drmath/view/55233.html

This is not the only solution, I'm currently trying to find a closed
formula which is easy to implement.

Alexander



signature.asc
Description: OpenPGP digital signature
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users