Advanced Search

Search Results (Searched for: )

  • blazini36
  • blazini36
22 Jan 2025 23:05 - 22 Jan 2025 23:07
Replied by blazini36 on topic Rando hal component collections

Rando hal component collections

Category: HAL

Here's a good one.....

The control panel I'm working on uses 1 button for (cycle) start/pause and another button for (cycle) stop. I made it that way before I bothered figuring out how to do the hal programming. Now that I look at halui, it doesn't really like that setup. I searched and this came up before...
forum.linuxcnc.org/47-hal-examples/13201...-hold-resume-buttons

Writing HAL lines like that I find confusing when there's alot of logic involved. I started to break it down like I write them, to "look" like a terminal block. I'm sure it works but that's alot of HAL to do something like this. I reworked the toggle2nist component to add 2 more outputs to set resume and  pause directly and another input to take the opposing state of what was "is-on". I just named the component and the pins as a specialized component since it's probably not as generally useful. It works perfectly without extra hal components. My flash component is also used here to switch an LED on/flashing when program is running, and on/solid when it is paused. It's off when stopped.

This is all the HAL lines for this setup:
    #program-run,pause,stop
net program-btn              => run_pause.program.in
net program-toggle-run       <= run_pause.program.run
net program-toggle-run       => halui.program.run
net program-toggle-pause     <= run_pause.program.pause
net program-toggle-pause     => halui.program.pause
net program-is-running       <= halui.program.is-running
net program-is-running       => run_pause.program.running
net program-is-running       => or2.program.in0
net program-resume           <= run_pause.program.resume
net program-resume           => halui.program.resume
net program-is-paused        <= halui.program.is-paused
net program-is-paused        => run_pause.program.paused
net program-is-paused        => or2.program.in1
net program-run-or-pause     <= or2.program.out
net program-run-or-pause     => flash.program.enable
net program-is-paused        => flash.program.hold
net program-led              <= flash.program.out
net program-stop-btn         => halui.program.stop
setp flash.program.hold-prec     false
setp flash.program.hold-prec-inv false
setp flash.program.flash-rate-ms 250

And this is the component:
component run_pause "Run-Pause, component for controlling halui program pins with 2 momentary pushbuttons";

description
"""
Run_Pause is based on the component toggle2nist. It has been specialized to work with halui program pins controlled with only 2 pushbuttons, start/resume and stop without adding a bunch of external logic.
""";

pin in bit in  "momentary button for run/pause input";
pin in bit running "running state input";
pin in bit paused "paused state input";
pin in unsigned debounce = 2 "debounce delay for 'in'-pin in cycles";
pin out bit run "run output, activates on in=true when paused=false and running=false";
pin out bit pause "pause output, activates on in=true when paused=false and running=true";
pin out bit resume "resume output, activates on in=true when paused=true and running=false";
variable int debounce_cntr;
variable unsigned debounce_set;
variable int state;

function _ nofp;
license "GPL";
author "Shade Technik";
author "Anders Wallin, David Mueller"; //Authors or toggle2nist
;;
FUNCTION(_)  {

    if (( debounce < 1 ) || ( debounce > 10000 )) {
        debounce_set = 2; /* set a sane value */
    } else {
        debounce_set = debounce;
    }

    if (in && state == 0 )  { /* input has changed from debounced 0 -> 1 */
        debounce_cntr++;
        if ( debounce_cntr >= debounce_set ) {
            if (!running && paused) { /* turn ON if it's paused */
                resume = 1;
                pause = 0;
            } else if (running && !paused) { /* turn OFF if it's running */
                resume = 0;
                pause = 1;
            }
            state = 1;
            debounce_cntr = 0;
        }
    } else if (!in && state == 1) { /* input has changed from debounced 1 -> 0 */
        debounce_cntr++;
        if ( debounce_cntr >= debounce_set ) {
            state = 0;
            debounce_cntr = 0;
        }
    } else if ((!running && pause) || (running && run)) { /* reset outputs once device has switched */
        run = 0;
        pause = 0;
        debounce_cntr = 0;
    } else {
        debounce_cntr = 0;
    }

    /* Set resume output while in is true and neither running nor paused is active */
    if (in && !running && !paused) {
        run = 1;
    } else {
        run = 0;
    }
}

I'll submit this when I'm done testing it but so far so good. 
  • cakeslob
  • cakeslob
22 Jan 2025 22:31 - 22 Jan 2025 22:31

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

Ok, and the quill is motorized it looks like? We can figure out the ratio stuff later. lets start by ensuring you get the proper rpm from remora. I think the board is doing a 0-10v analog correct? You should be able to measure the voltage output from the board and verify its outputting correctly.

If I have this correct, when you S5000 M3, it should read 10v.

edit, to do threading, you will need an encoder. 
  • tommylight
  • tommylight's Avatar
22 Jan 2025 22:15
Replied by tommylight on topic Onsale: PM-25 converted linuxCNC milling machine

Onsale: PM-25 converted linuxCNC milling machine

Category: User Exchange

There are no private messages on this forum.
  • JT
  • JT's Avatar
22 Jan 2025 21:48
Replied by JT on topic Flexible GUI

Flexible GUI

Category: Flex GUI

The ini entry INPUT is now THEME gnipsel.com/linuxcnc/flexgui/ini.html#themes

Which file browser, the keyboard or the touch screen?

Good point on the flood and mist and I see no reason to disable them at any time and that has been fixed.

JT
 
THEME = touch overrides my qss. I get the touch file browser back be it's using whatever qss the theme uses instead of the one I specified with QSS =. Can I add the touch style file browser to my qss?

As for the file browser showing the current directory, just some bar at the top of the browser or maybe even a label that can display it above the file browser. Right now you see files in the directory that you are in....but you have no idea what directory you are in. I keep most of my NC files on a NAS so sometimes I move around a bit to get to the file. It's a lot easier to navigate if you can see what directory you are currently browsing.

BTW, thanks for answering these questions. I can probably figure some of this out myself but that probably wouldn't help anyone else looking to work with Flex.
 

From the manual gnipsel.com/linuxcnc/flexgui/ini.html THEME is checked first then QSS so the first entry found is used.

I should be able to add the current directory to the touch file browser.

JT
 
  • Murphy
  • Murphy
22 Jan 2025 21:31
Replied by Murphy on topic Spindle location on the opposite side

Spindle location on the opposite side

Category: AXIS

Great I'll try this , thanks for all the help. It's much appreciated. Travel on X is 48mm In the specs. 
  • bcorley
  • bcorley
22 Jan 2025 21:10
Replied by bcorley on topic Hypertherm XPR woes

Hypertherm XPR woes

Category: EtherCAT

I may have found something in my xml file

<pdoEntry idx="6000" subIdx="01" bitLen="16" halType="complex">
<complexEntry bitLen="1" halPin="motion" halType="bit"/>
<complexEntry bitLen="1" halPin="tbd" halType="bit"/>
<complexEntry bitLen="1" halPin="ready-for-start" halType="bit"/>
<complexEntry bitLen="1" halPin="error" halType="bit"/>
<complexEntry bitLen="1" halPin="process-ready" halType="bit"/>
<complexEntry bitLen="1" halPin="error-priority-info" halType="bit"/>
<complexEntry bitLen="1" halPin="error-priority-alert" halType="bit"/>
<complexEntry bitLen="1" halPin="ohmic-contact" halType="bit"/>
<complexEntry bitLen="1" halPin="remote-power-status" halType="bit"/>
<complexEntry bitLen="1" halPin="error-priority-error" halType="bit"/>
<complexEntry bitLen="1" halPin="error-priority-failure" halType="bit"/>
<complexEntry bitLen="4"/> <<<need to change this to 5
</pdoEntry>

Need to change last complexEntry bitLen from 4 to 5

Can't test it until tomorrow though.
  • langdons
  • langdons's Avatar
22 Jan 2025 21:04
Replied by langdons on topic Homing an axis moves away from home switch!

Homing an axis moves away from home switch!

Category: StepConf Wizard

Okay.

The soft limits are 500mm for X & Y.

I am 99% sure this is correct.
  • spumco
  • spumco
22 Jan 2025 20:57
Replied by spumco on topic Spindle location on the opposite side

Spindle location on the opposite side

Category: AXIS

And another thing...

I saw in your last screencap that the DRO is displaying "G54 X: -17.xxx", but TLO X: 0.

I think this means that when you 'touched the tool off', you actually set the G54 work offset for X, and not the tool length offset.

On a lathe, the work offset for Z always changes depending on the stock/chuck length.  But X offset should never change - it should always remain zero - otherwise LCNC thinks the spindle centerline is offset from reality.

You need to zero out the G54 X-offset value, and then redo the tool touch-off under the Machine menu.  Here's the manual section:
linuxcnc.org/docs/devel/html/gui/axis.html#_manual_control
  • prokopcio
  • prokopcio's Avatar
22 Jan 2025 20:20 - 22 Jan 2025 20:25

Integrating a BCL-AMP capacitive sensor to LinuxCNC

Category: Plasma & Laser

Let me know how I can be of help.

 

Hello, thank you for your willingness to help.
As I mentioned, I’m not proficient in LinuxCNC, but I have great respect for it.I’d like you to let me know what you need, and I’ll do my best to adapt the product to your requirements and send it to you for testing. I think we should start a new thread to avoid cluttering the current one.I’m very committed to keeping the topic open and accessible to everyone without any secrets.Criticism, in particular, has always been, is, and will continue to be motivating for me.

ps. to introduce myself I present my child:
My Proma-Elektronika company
  • tommylight
  • tommylight's Avatar
22 Jan 2025 20:14
Replied by tommylight on topic Homing an axis moves away from home switch!

Homing an axis moves away from home switch!

Category: StepConf Wizard

Is it okay to set it as just "Home X"?

Yes it is, granted you set the soft limits correctly in the wizard or in the ini file.
  • spumco
  • spumco
22 Jan 2025 20:13
Replied by spumco on topic Spindle location on the opposite side

Spindle location on the opposite side

Category: AXIS

And we're back to your X limit values in INI file being wacky.

See the error about "Line 17" in your screencap?

Line 17 in the pawn file is the first move with an X axis value.  Specifically:N20 G0 X55.56 Z10.And if you look at your INI file:MIN_LIMIT = -48.0
MAX_LIMIT = 3.00
Something isn't going to work out when you tell LCNC to move to an X position greater than the MAX_LIMIT unless you have a tool offset active that drives the commanded position back inside the MAX/MIN limits.

Problem #1 is that your MAX should be something like 51, and MIN should be something like 0.  Or maybe closer to 40 and -14 if you want the turret centerline tools to be at machine "0" after homing.  I've no idea what the actual stroke length is for X.

Problem #2 is that you probably have F360 programmed with a HUGE clearance diameter/radius.  F360 has no idea about your machine's travel limits (unless you define them in the Machines Definitions), so it doesn't alert you when you tell it you want a gigantic clearance.  Try setting your clearance to 1 or 2mm from the stock OD and re-post.  Line #17 will probably look more like:

N20 G0 X35.56 Z10.

So circle back to my earlier post about adjusting your X MAX/MIN values, and once you've got them where you want, re-do all three F360 operations to have a minimum clearance value and re-post.  You can then look at the g-code and immediately see whether F360 is trying to drive your X-axis beyond the max limit.
  • rodw
  • rodw's Avatar
22 Jan 2025 20:01

Integrating a BCL-AMP capacitive sensor to LinuxCNC

Category: Plasma & Laser

Uthayne is your man. He is very knowledgeable in this area. :)
  • rodw
  • rodw's Avatar
22 Jan 2025 19:53
Replied by rodw on topic Actual master on Debian 10

Actual master on Debian 10

Category: Installing LinuxCNC

No, there are too many dependencies that cannot be met. The move from python 2 to python3 is the biggest one.

You would be better off upgrading to Debian 12
  • blazini36
  • blazini36
22 Jan 2025 19:48
Replied by blazini36 on topic Flexible GUI

Flexible GUI

Category: Flex GUI

The ini entry INPUT is now THEME gnipsel.com/linuxcnc/flexgui/ini.html#themes

Which file browser, the keyboard or the touch screen?

Good point on the flood and mist and I see no reason to disable them at any time and that has been fixed.

JT
 

THEME = touch overrides my qss. I get the touch file browser back be it's using whatever qss the theme uses instead of the one I specified with QSS =. Can I add the touch style file browser to my qss?

As for the file browser showing the current directory, just some bar at the top of the browser or maybe even a label that can display it above the file browser. Right now you see files in the directory that you are in....but you have no idea what directory you are in. I keep most of my NC files on a NAS so sometimes I move around a bit to get to the file. It's alot easier to navigate if you can see what directory you are currently browsing.

BTW, thanks for answering these questions. I can probably figure some of this out myself but that probably wouldn't help anyone else looking to work with Flex.
  • Murphy
  • Murphy
22 Jan 2025 19:42
Replied by Murphy on topic Spindle location on the opposite side

Spindle location on the opposite side

Category: AXIS

No way lol, it's amazing what you see when there's a finger pointing right at it. That was stupid on me it's so obvious.
What was throwing me off was when ever I touched off the x and z . The program wouldnt run because it was exceeding the limits. Even though there's plenty of space there. So there has to be an issue with my limits etc ?
Displaying 19201 - 19215 out of 21693 results.
Time to create page: 0.573 seconds
Powered by Kunena Forum