Re: [Emc-developers] time delay hal component for lube pump

2022-11-24 Thread Stefan Freisei Muehlbacher
Some time ago, I have written a small component which pulses at 
machine-start if last lubrication was a configurable time away. Next 
pulse is done if the way the machine has made in sum of moving of the 
three axis hits a configurable limit (or even if the last lubrication is 
too long ago again).


I guess two little components written in my poor c (one for saving the 
way-values on exit, the other for calculating/shooting next lubrication 
by time)   the rest (way-calculation) is done in simple HAL.


If interested i can search for it.

Greets.


Am 21.11.2022 um 22:14 schrieb Jon Elson:

Hello, all,
I need a hal component for a lube pump.  What I am looking for is more 
like a one-shot than the existing timedelay component.
timedelay seems to be able to delay the start or the end of a signal, 
but output will follow the input after the delays occur. I wanted a 
component that would trigger for a set time after a trigger (or 
LinuxCNC starting) and then, I could or it with the spindle enables.  
This would ensure the lube pump starts immediately when LCNC starts, 
and then run whenever the spindle is on.  Anybody know a better way to 
do this?

Thanks,
Jon


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




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


Re: [Emc-developers] Auto-start gscreen on pi4

2022-09-26 Thread Stefan Freisei Muehlbacher
When you start a Program with a GUI you should use the autostart 
mechanism of your UI/Windowmanager.


For some examples see here: https://wiki.ubuntuusers.de/Autostart/

Greets, Freisei


Am 26.09.2022 um 19:22 schrieb Hans Unzner:


Am 26.09.22 um 15:41 schrieb Thaddeus Waldner:

Hi,

Does someone have a quick tutorial on how to auto-start Linuxcnc on a 
Raspberry Pi 4? I have a script that starts it when I manually run 
the script, but it fails when called from a systemd service.


Thanks,

Thaddeus Waldner


You can try to add a script to /etc/profile.d/


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




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


Re: [Emc-developers] Plan for 2.9 release

2022-04-01 Thread Stefan Freisei Muehlbacher

Am 01.04.2022 um 08:41 schrieb Jérémie Tarot:

Le jeu. 31 mars 2022 à 23:31, andy pugh  a écrit :


On Thu, 31 Mar 2022 at 21:37, Rod Webster  wrote:


This also should simplify the release as there will be no reason to waste
resources on building ISO's anymore.
eg. 2.8 should be the last ISO released.


I am not so sure about that, the ISO is useful to "try before you buy"
without committing to wiping the existing OS on the PC.
(And it isn't all that much effort)


Also not every potential user, at all, may be familiar with Virtualization,
not to mention have VB or VMP already installed.

Plus, even if I agree that it a piece of cake for s/o used to it, just the
words "linux install" is clearly intimidating for the rest of the world,
sadly.

Then, even if it's easy and quite fast, you can't beat sticking a disc in a
toaster and rebooting and... Voilà ! Barely enough to go get an old dram 

Finally, even if I consider switching to manual install, we have to admit
that rebooting straight into an installed linuxcnc box is quite comfortable
and surely a big plus from user experience perspective.

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


Hi!

there are already debian live images. Maybe it is worth to create a 
kickstart-script that converts a standard debian-live-iso to a linuxcnc 
live iso.


Good example for a kickstart is

bash <(curl -Sshttps://my-netdata.io/kickstart.sh)

Which fully installs a monitoring-system with one bash line.

Greets from Bavaria.

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


Re: [Emc-developers] Manual skip function

2021-08-18 Thread Stefan Freisei Muehlbacher

Hi,

in 2.9 there are some bugs in probing, since the behaviour changed to 
trip errors when probe turns on by moving out of G38.x commands.


See here, i think its unresolved: 
https://forum.linuxcnc.org/24-hal-components/42321-new-component-probefilter-to-handle-probe-tripped-errors


I´ve written a small component "probefilter" to get dev-version running 
with probing/contacting. (Its very alpha state, but works stable for me).


Maybe you can get some basic ideas for your own component or enhance my 
component.


https://github.com/freisei/probefilter/blob/main/probefilter.comp


Greets from Bavaria.


Am 13.08.2021 um 18:32 schrieb Feral Engineer:

Here's one for you guys... I think it's petty cool.

Fanuc and mits offer an option called manual skip. We use it on our
machines for something called w setter and t setter. W setter let's you
call up the work offset page, manually jog into your workpiece and
depending on selected function, will capture a single point, 2 point
center, 3 point center or angular skew. This is all done by contacting and
retracting the probe from the workpiece with the mpg. T setter works the
same way with setting tools. It's a really handy function for setting up
jobs.

I know that lcnc has an alarm that pops up if you contact your probe in a
manual move, but I'm wondering if there's a way to make manual skip a
thing. Maybe a custom component or possibly a change in source code, if I
knew, I'd be working on developing it by now... I'm trying, though. I'm
just getting into creating object classes in c++ 若

Any ideas of how to implement such a thing? Basically just need a 
check box

option to have g38.2 active in manual mode and know which direction is
being moved (x y z).


Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

Help support my channel efforts and coffee addiction:
www.patreon.com/theferalengineer

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



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


[Emc-developers] Realtime-components for named/numbered parameters in G-Code (from Re: Question for the devs)

2021-07-28 Thread Stefan Freisei Muehlbacher

Just an idea for a more flexible extension.

[SomwareInTheINI]

[RS274NGC]

USER_PARAM_5021 = name_of_realtime_component

name_of_realtime_component has to calculate that value, and then its 
avaiable in as #5021 in the interpreter.


I don´t know for sure if every value for abs position is avaiable in the 
RT-Components. But i think would be a great way to add more of such 
values in a flexible way without changes in source-code. Just like 
HAL-RT-componets.


With such a solution some of my huge/complicated macros would be very 
much handier. Additionally it would be possible to get better debugging 
by writing out some values into HAL and monitor them with halscope for 
example.


And, by this way it would be possible to write out values to hal 
in a easier way. (Do i correctly remember its not possible by default 
and we have to use M-Codes?)


Don´t know anything about how much code must be changed in the 
"untouchable interpreter code" and about side effects, but as more as i 
think about this extension as more ideas i get how many things could be 
made easier with that.



Greets from Bavaria

Freisei

(Sorry for the topic-change, but i could no more read such a bad subject)


Am 27.07.2021 um 14:19 schrieb Feral Engineer:

Simply put, I don't want workarounds, I want a solution as simple as #5021
to give me the ability to track where my machine is from my home positions
without having to stand on one foot, rub my belly and hope I'm not using
coordinate rotation. I write logic in Fanuc, Mitsubishi and Siemens
controls constantly and see a lot of missing features in the o code stuff
that I would be more than happy to address myself if I could ever get to
that level in CPP.

Not sure how familiar you all are with the aforementioned controls, but I'd
be happy to provide manuals for the logic sections of all 3 so you could
see what each one is about. Fanuc and Mits are like 99% identical, but
Siemens is completely different and way more powerful. Some examples would
be that control has both WHILE and FOR loops, 3 dimensional data arrays,
unlimited nonvolatile variable assignment via GUD tables and four different
methods of GOTO.


Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

Help support my channel efforts and coffee addiction:
www.patreon.com/theferalengineer

On Tue, Jul 27, 2021, 6:17 AM andy pugh  wrote:


On Mon, 26 Jul 2021 at 19:58, Chris Radek  wrote:


(Note I'm not saying it would be bad to add this feature)

The Fanuc numbers are in unclaimed space in the LinuxCNC parameter
range, so I think I would go further and suggest that it would be good
to add this feature.

I recall this being one of my very first questions on the IRC when I
first started with LinuxCNC. I can't remember why I wanted current abs
position, but I did, and ended up using the G28.1 inelegant
workaround.
(It is inelegant because it has side-effects)

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


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



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


Re: [Emc-developers] Question for the devs

2021-07-26 Thread Stefan Freisei Muehlbacher

I do same thing with an workaround:

Set G59.2 with offset 0/0/0. Then you can access the G59.2 values which 
are in fact machine coordinates. Of course you loose one 
coodinate-system. My usage is to calculate the maximum way to drive for 
G38.2/4 moves where a fixed value is a bad idea if you are near to end 
of a axis.


Greets, Freisei


Am 26.07.2021 um 19:31 schrieb Feral Engineer:

That's not what I'm looking for.

I can position with G53, but I want to read that G53 position into a
variable. On fanuc and mits controls, machine position for X is #5021 and
absolute position for X from current offset is #5041, much like how skip
position is #5061. When you're writing macro programs for things, sometimes
you want to do calculations from current abs position and relate it back to
machine coordinate. Only way I can do it currently is store the values i
want in an ini (tool setter position, etc) and access it that way, which is
fine for static values, but sometimes you want to capture a current machine
position in real time for the macro calculations.

An example would be setting a work offset:

G10 L2 P1 X#5021 Y#5022




Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

Help support my channel efforts and coffee addiction:
www.patreon.com/theferalengineer

On Mon, Jul 26, 2021, 1:00 PM Nicklas SB Karlsson  wrote:


  5420 gives me current position from my work offset zero. I want current
position from my machine home (g53) position

Then you use "G53 Move in Machine Coordinates"? Or?


Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

Help support my channel efforts and coffee addiction:
www.patreon.com/theferalengineer

On Sun, Jul 25, 2021, 5:02 PM  wrote:


Isn't that #5420?

-Original Message-
From: Feral Engineer 
Sent: Sunday, 25 July 2021 7:39 AM
To: EMC developers 
Subject: [Emc-developers] Question for the devs

Hello devs,

I have a question. In Fanuc land, #5021 is the X axis system variable

for

machine home position (axis 1, really), 5022 is axis 2, etc. Linuxcnc

does

not have these variables. I'm wondering how hard it would be to add

them?

Having access to the machine coordinate system is helpful in writing

logic

for various things (as is goto, but I'm not pressing my luck). Unless
there's an alternate variable I could use, like #<_axis_1_mach_pos>
something like that? Also, not sure how familiar you guys are with G65

and

G66 macro calls. Is this something up for consideration in the future?

Just

curious is all. I'm a macro maniac.

Tyia


Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

Help support my channel efforts and coffee addiction:
www.patreon.com/theferalengineer

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



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


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


--
Nicklas SB Karlsson 


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


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




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


Re: [Emc-developers] newest iso install, sshfs can't connect

2021-04-18 Thread Stefan Freisei Muehlbacher
try to get a log on the server you are connecting to. (maybe by tail -f 
/var/log/syslog on host 3dprint)


Am 18.04.2021 um 04:56 schrieb Gene Heskett:

Greetings all;

Bringing up a machine to run openscad, but my fav networking tool, sshfs, isn't 
working.

All the stuff related checks identical between buster installs that
work, and this last one that doesn't. Best I can get out of an attempted
mount is "connection reset by peer".
Adding -osshfs_debug (frm the sshfs manpage) to the command line isn't
very informative either.

ssh -Y machine works, sshfs doesn't.

gene@coyote:~$ sshfs gene@3dprint:/ /sshnet/3dprint -osshfs_debug
SSHFS version 2.8
read: Connection reset by peer
-

How do I troubleshoot this ?

Cheers, Gene Heskett



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


Re: [Emc-developers] Hello and is this the right place

2021-01-14 Thread Stefan Freisei Muehlbacher


Am 14.01.2021 um 18:58 schrieb Andrew:

чт, 14 січ. 2021 о 09:35 Stefan Freisei Muehlbacher 
пише:


Hi developers!

I am from bavaria/germany and retrofitted a MAHO MH400 with linuxcnc. By
doing this i developed some small addons for linuxcnc and of course
sometimes i cant find all informations at forum.linuxcnc.org.


Hi Stefan,

Can you tell a bit more about the MH400 retrofit?
Which drives have you used, which addons have you developed etc.

Thanks,
Andrew



Hi Andrew,

you can find some informations on http://freisei.de (if i find some time 
i will add much informations there)


It´s a MAHO MH400e which was already a CNC-Machine. I could use the 
included servos driven by an "Indramat" thyristor controller.


I´ve written a realtime-componet "mahorc" for using the orginal 
remote-control.


For now i can

- control the LED´s

- use the buttons and the override-selector.

- basic probing (X/Y/Z+/-, X/Y inner/outer middle, Z-down)


Another self-written component is called "timeinterval" - its used for 
the lubrication, time-based plus way-based


here is a list of PINs

pin in u32 interval "interval-time in seconds, default: 0";
pin in u32 width=1 "lenght of pulse in seconds, 0 means forever until 
reset, default: 1";
pin in bit reset "resets out to false and begin a new count, if reset is 
true out can never be false";

pin in bit active=true "activates the component, default: true";
pin out u32 last_out "timestamp of last interval";
pin out u32 next_out "timestamp of next interval";
pin out bit out "pulse-output";

It has the abilitiy to persistent save the last intervals in a file.

I´ve done some hacky improvements on "Sergey 'Jin' Bostandzhyan"´s 
mh400e-gearbox component.



Everything still under heavy development and testing. But the machine is 
now in a working state.



Greets from Bavaria,

Freisei




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


Re: [Emc-developers] Hello and is this the right place

2021-01-14 Thread Stefan Freisei Muehlbacher

Here is the welcome-mail:


Welcome to theemc-develop...@lists.sourceforge.net  mailing list!
Welcome to the EMC Developers List!

Good Things to do if you haven't already.

* Learn about EMChttp://linuxcnc.org

* Subscribe to the emc-users list at
https://lists.sourceforge.net/lists/listinfo/emc-users

* Post a short bio with your relevant experience/interests for the
group.
  
* Get CVS access. (emailjmkasun...@users.sourceforge.net  or

shac...@cme.nist.gov  for more info on this.)

* Subscribe to the emc-commit list at
https://lists.sourceforge.net/lists/listinfo/emc-commit.  The commit
list will send you an email whenever a developer commits changes to
CVS, so you can stay up-to-date on what is happening.

Check out a working copy of the code from CVS (development is now
focusing on the EMC2 module)

Read the CodingStyle document in the src/ directory of the emc2
module.


To post to this list, send your message to:

   emc-developers@lists.sourceforge.net

General information about the mailing list is at:

   https://lists.sourceforge.net/lists/listinfo/emc-developers

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

   
https://lists.sourceforge.net/lists/options/emc-developers/freisei%40freisei.de


You can also make such adjustments via email by sending a message to:

   emc-developers-requ...@lists.sourceforge.net

with the word `help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including changing
the password, itself) or to unsubscribe without confirmation.  It is:

   XX

Normally, Mailman will remind you of your lists.sourceforge.net
mailing list passwords once every month, although you can disable this
if you prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.



btw: is it correct to set the "answer-to" to 
"emc-developers@lists.sourceforge.net"


Am 14.01.2021 um 11:38 schrieb andy pugh:

On Thu, 14 Jan 2021 at 09:50, Stefan Freisei Muehlbacher
 wrote:


So maybe the welcome mail should be updated. There are hints to get CVS
access on sourceforge. I think now its all on github.

I must admit that I have no idea what that email says, or who has the
admin rights to change it.




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


[Emc-developers] Hello and is this the right place

2021-01-13 Thread Stefan Freisei Muehlbacher

Hi developers!

I am from bavaria/germany and retrofitted a MAHO MH400 with linuxcnc. By 
doing this i developed some small addons for linuxcnc and of course 
sometimes i cant find all informations at forum.linuxcnc.org.


So is this the right place for developers? The devel-list welcome-mail 
from  Emc-developers@lists.sourceforge.net  seems to be a little out of 
date.


By the way: Many many thanks to the guys developing linuxcnc. When 
reading the forum or mailing-list archive some of yours must spend nealy 
all time of life for linuxcnc.


Nice greets from Bavaria!

Freisei



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