Advanced Search

Search Results (Searched for: )

  • Aciera
  • Aciera's Avatar
21 Aug 2024 09:14
Replied by Aciera on topic Delay or debounce

Delay or debounce

Category: HAL

  • Aciera
  • Aciera's Avatar
21 Aug 2024 09:11

Post GUI HAL not loading and "Bad character '[' used" error on E-Stop

Category: QtPyVCP

You've got a lot going on there.
Only thing I see are these MDI_COMMANDS that will cause syntax errors due to comma instead of semicolon but I have no idea if those are actually used anywhere.:
MDI_COMMAND = o<sweep_4x8> call,Sweep\n4x8
#MDI_COMMAND = o<measure_tool> call,Measure\nCurrent\nTool
MDI_COMMAND = G53 G0 Z0;G53 G0 X63 Y5,Go To\nMTC Location
MDI_COMMAND = M64 P7,Open Tool\nMagazine
MDI_COMMAND = M65 P7,Close Tool\nMagazine

If you run this in MDI do you also get the error about the Bad character '[':
(abort, aborting)
  • Aciera
  • Aciera's Avatar
21 Aug 2024 09:00
Replied by Aciera on topic İnstall glade

İnstall glade

Category: Gmoccapy

Usually you can simply click 'OK' and save the file.
  • seuchato
  • seuchato
21 Aug 2024 08:33

Results of latency test, list of computers tested for use with LinuxCNC

Category: Computers and Hardware

uugp
Nice find! Those values are very good, almost too good to be true! If however those values are true and at 9000 there are no random latency issues anymore, then you do have a very nice system for software stepping, too.
Kindly allow a couple of questions / remarks / recommendations:
  1. Did you run any other program? I see 10 glxgears, but what about a browser, vimeo or youtube, ... while doing the latency test?
  2. On board graphics is usually the way to go. Tracking down and elimination sparce spikes is a hard job, usually also with questionable success. So I'd stick with onboard graphics.
  3. What do you mean by "... and obtain a good color ..."?
  4. Seems the mobo is for Athlon IIX* cpus, which appeared around 2009. So, really old :-). I'd check the capacitors before making chips and/or have a spare one available. Not sure if such an old mobo is really a good idea as a cnc controller though.
Greez
chris
  • avive
  • avive
21 Aug 2024 08:30

Message: "Ignoring task mode change while jogging"

Category: GladeVCP

I confirm, the same problem. It happens exactly when the key is released and gscreen calls
self.gscreen.do_key_jog(_X, direction, False)

Thus it calls jog while the other is still in progress. If the movement is incremental and the key is not released until the movement is complete, then there is no error. In the source code it looks like this:
int emcTaskSetMode(EMC_TASK_MODE mode)
{
    int retval = 0;

    if (jogging_is_active()) {
        emcOperatorError("Ignoring task mode change while jogging");
        return 0;
    }
...

I thought the problem was with my custom panel implementation, but the standard one has the same problem. Any ideas on how to fix this?
  • slowpoke
  • slowpoke
21 Aug 2024 07:50 - 21 Aug 2024 07:55
Delay or debounce was created by slowpoke

Delay or debounce

Category: HAL

I'm trying to use one external push button to both pause and resume program execution depending on if the program is running or paused.

I used two and2 gates to perform this task, and it works sort of. The problem is that often when I press the button to pause, the program briefly pauses when the first "pause" and gate fires, however in the 100ms or so it takes for my finger to release the button the 2nd "resume" and gate fires because the program is now paused.

I don't know if there is a slower thread I could place the two and gates in or if there is a way to delay the input to the "resume" and gate?

Excerpt from postgui is below. Thank in advance

# Program Run Button
net pgmRun <= arduino.keypad.PgmRun
net pgmRun => halui.program.run

# Program Stop Button
net pgmStop <= arduino.keypad.PgmStop
net pgmStop => halui.program.stop

# Program Pause Button
net buttonPause <= arduino.keypad.PgmHold

# AND gates to drive PAUSE & RESUME  
loadrt and2 count=2
addf and2.0 servo-thread
addf and2.1 servo-thread

# assign nets to AND gate
net pgmRunning halui.program.is-running => and2.0.in0
net buttonPause => and2.0.in1
net pauseThePgm halui.program.pause <= and2.0.out

net pgmPaused halui.program.is-paused => and2.1.in0
net buttonPause => and2.1.in1
net resumeThePgm halui.program.resume <= and2.1.out

#.......................................................
 
  • zmrdko
  • zmrdko's Avatar
21 Aug 2024 07:10
Replied by zmrdko on topic is there some basic list to build the net ?

is there some basic list to build the net ?

Category: EtherCAT

I would suggest starting from basics like homing/limit switches. Maybe try some E-stop for safety. And as you will use the machine, you will find out what do you need. You can also get some inspiration from control panels on industrial machines
  • bentiggin
  • bentiggin
21 Aug 2024 06:59
Replied by bentiggin on topic Gui for standalone thc

Gui for standalone thc

Category: Plasma & Laser

Great, man motion really helped.
When I mentioned m3 I didn’t realize it was linked to spindle.
I linked spindle.0.on to my ihs/plasma start output and now m3 turns it on and m5 turns it off. Rock on.
I tried get spindle.0.at-speed to work for my arc ok/ok to move. Eventually gave up, but I found a post about m66 for arc ok and it is doing what I need.
I like the idea of a corner hold, but the standalone thc can supposedly handle that, so that’ll move to the back burner.

There’s a lot of non linuxcnc things I need to finish for this table, but where would be best place to focus my research to make the gui appropriate for a plasma. Pyvcp? Can I edit the axis gui? If I could just rename the spindle button and add a few leds, that’d be enough.

Anyways, I really appreciate all the help.



 
  • pawel77
  • pawel77
21 Aug 2024 06:50
Replied by pawel77 on topic İnstall glade

İnstall glade

Category: Gmoccapy

With 2.9 I have problem to open glade files done in 2.8.4 version, they request 3.8 while 3.4 glade is available. 
In synaptic manager gladevcp is not available. 

thanks for any help
  • mighty_mick
  • mighty_mick's Avatar
21 Aug 2024 06:43
Replied by mighty_mick on topic How to make HAL pins from .c kinematics file?

How to make HAL pins from .c kinematics file?

Category: HAL

And it is good to remember, in these lines below:

struct haldata {
hal_float_t *pivot_length;
hal_float_t *x_offset;
hal_float_t *y_offset;
} *haldata;

Your data is a pointer, and it is NULL pointer at the first time. You need to use hal_malloc function to export your data to hal layer before exporting pins.

You can find the function here: github.com/LinuxCNC/linuxcnc/blob/master/src/hal/hal.h
  • snowgoer540
  • snowgoer540's Avatar
21 Aug 2024 06:00 - 21 Aug 2024 16:01
Replied by snowgoer540 on topic Straight cut error

Straight cut error

Category: Plasmac

It would be really helpful with trying to get to the bottom of this if you could make a short video of your work flow including the error message and post it to YouTube. Bugs are easier to reproduce when we can follow the exact steps :)
  • rodw
  • rodw's Avatar
21 Aug 2024 04:59

Pi4b and Pi5 users - What should go in a 2.9.3 image

Category: Installing LinuxCNC

Noticed that 2.9.3 starts up with the locales set to "POSIX" or "C", which will cause pncconf to error out... best to add a note that menu-config must be run after after install, and set locale and timezone, then reboot.

There are some notes about using menu-config on the install page. Sounds like pncconf needs to be coded a bit more robustly. It should not fail for issues like that. We do set the locale to reasonable defaults here. github.com/rodw-au/rpi-img-builder-lcnc/...9.3/userdata.txt#L39
  • Ray_TL00
  • Ray_TL00
21 Aug 2024 03:34
Replied by Ray_TL00 on topic New and Working RTAI debs for 2.9

New and Working RTAI debs for 2.9

Category: Installing LinuxCNC

Thank you very much, I will try your advice.
  • PCW
  • PCW's Avatar
21 Aug 2024 02:52 - 21 Aug 2024 02:52
Replied by PCW on topic Gui for standalone thc

Gui for standalone thc

Category: Plasma & Laser

In addition to some understanding of hal, you need to learn about the basic
components of LinuxCNC. One major component is called "motion"

You can access the manual page for motion by typing:

man motion

in a terminal window

M3  turns on the spindle so the motion pin:

spindle.0.on

would be a possible pin to connect to the SSR
  • Benb
  • Benb's Avatar
21 Aug 2024 02:06 - 21 Aug 2024 02:13
Replied by Benb on topic Dynamic jog speed from HAL, Possible?

Dynamic jog speed from HAL, Possible?

Category: HAL

halui.axis.jog-speed - This pin is for setting jog speed for plus/minus jogging.

To jog an axis you need to select axis, set jog speed using potentiometers and press plus or minus push button (PB) to jog axis. 

Most CNC machines built using Linuxcnc use joint (There is a whole spiel about axis/joint, google it if you would like to learn more about it).

Attached are function blocks of halui pins for axis to help visualize the jungle of pins. Halui has over 100 pins, I divided the related pins into function blocks to ease the visualization.For your info I added an external hadwired PB and UI widgets for +/- jog, you can use either or both.
 


Linuxcnc hal netlisting 

# Load realtime Components and their counts
loadrt or2          count= 2
loadrt scale        count= 1

# Add functions to threads
addf or2.0                    servo-thread 
addf or2.1                    servo-thread 
addf scale.0                  servo-thread 

# Set parameters
setp scale.0.offset                              0.0   
setp scale.0.gain                                0.12    

# Connect Pins with hal signals/Wires
net arduino.ain.0              scale.0.in  
net axis.sel.z.sw               halui.axis.z.select  
net axis.speed.minus       halui.axis.selected.minus  or2.1.out  
net axis.speed.plus           or2.0.out  halui.axis.selected.plus  
net axis.x.sel.sw                halui.axis.x.select  
net axis.y.sel.sw                halui.axis.y.select  
net halui.axis.jog-speed   scale.0.out  halui.axis.jog-speed  
net minus.speed.pb          or2.1.in0  
net minus.speed.ui           or2.1.in1  
net plus.speed.pb             or2.0.in0  
net plus.speed.ui              or2.0.in1  
 
Displaying 23566 - 23580 out of 24336 results.
Time to create page: 0.929 seconds
Powered by Kunena Forum