Advanced Search

Search Results (Searched for: )

  • tommylight
  • tommylight's Avatar
25 Oct 2024 11:45

Russian machine tool company that uses LinuxCNC with Probe Basic

Category: QtPyVCP


I'm not bashing the machine, just the fact that they're obscuring the fact that the software is LCNC.

Yeah that is shameful, and pretty sure it is illegal. Did anyone check our license?
I respect Tormach for mentioning LinuxCNC, and their software was 35$ including the USB.
  • Macwolf
  • Macwolf
25 Oct 2024 11:24 - 26 Oct 2024 15:22
Replied by Macwolf on topic Beckhoff components crasht Linuxcnc

Beckhoff components crasht Linuxcnc

Category: EtherCAT

hello
Finally the servo is in 88rn mode, but it rotates very slowly. The next problem is that after Lcnc is closed the servo goes into error ERC11, let's see what that means.
What did I do, pdo idx=1600 as out, and in 1a00

Update:
the axis now runs as it should after the pitch has been set.
setp cia402.1.pos-scale XXXXX. XXX for position mode
  • meister
  • meister
25 Oct 2024 11:15

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

Hi,
1) its a jumper to set pullUP/pullDown resistors to the signal-lines
2) yes, but, if you meen the cheap China BOB's, 12/24V is needed for the Opto's
3) you can freely use the pins on the board, but on the BOB, there are Opto's and Darlington-Arrays that works only in one direction.
4) i think up to 10 LED's are ok, if you need more, then i would use en extra 5V supply
PS) as you prefer / but i need you config file with the P8 error, it looks like there is one space too many in the config ('P8 ')
  • PeteTech
  • PeteTech
25 Oct 2024 11:12 - 25 Oct 2024 11:13

LinuxCNC putting out double steps instead of single steps

Category: General LinuxCNC Questions

Hello all, 

First time poster so I hope I give all the necessary information. I do work with Linux systems but only have a basic understanding.

We have a relatively simple 2 axis system running with LinuxCNC and our own front end that communicates with LinuxCNC in the background. We have been making these systems for years but have recently discovered a new issue. 

It has happened twice now, (with a week or 2 in between) that once the machine has been started it runs with a clear and steady double speed / double distance. We have not yet been able to scope the machine yet, but it would seem we are getting two steps for each one that is expected. On second occurence, shutting down linuxcnc ( not shutting the OS though) resolved the issue.  The installation is a direct clone from another machine that has not displayed this issue.  
  • The system is setup on a standard PC using a MSI A520M Pro motherboard with a AMD Ryzen Socket AM4 processor
  • "uname -a" command gives us:  5.10.0-0.deb10.22-rt-amd64 #1 SMP PREEMPT_RT Debian 5.10.17 8-3~deb10u1 (2023-04-25) x86_64 GNU/Linux
  • Debian version is Buster, release 10
  • We connect via parallel port to a DB25-1205 board.
  • We run the motor(5.6A Wantai Servo motor) with a Wantai DQ860HA Servo Drive
  • "top" command shows that the "rtapi_a+" command is using about 22% of the CPU when LinuxCnc is running, and drops to about 3% when LinuxCNC is closed. 
  • No unsteadiness in the motion. Accuracy still consistent but twice the distance instructed. Motor obviously stalls once the max drive/motor speed is exceeded.

    I am wondering along the lines of whether the real time kernel could for some reason throw a servo thread at twice expected rate?  
    I have not been able to recreate it again to test further. Are there any suggestions as to what might be a cause or which direction to  look in when we do recreate the condition?
  • gitano
  • gitano
25 Oct 2024 11:01 - 25 Oct 2024 11:09

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

Hello,

after diving a bit more deeply into LinuxCNC-RIO and having a closer look at the Tangbob and riocore, a few questions have come up:
1) almost every connector on the board makes sense to me, except J5 + J6 (Down/ Up) -> what are these connectors for?  

2) as i get it, i can use 2 BOB's simultanously with this board, correct? Do these boards still need the 12-24V input on the right side, or is the 5V input only sufficient to drive all Inputs and Outputs correctly? Except for the PWM Output (Spindle Control) on the right side, i bet.

3) do i have to use the BOB's Inputs / Outputs (left and lower Side) as such, or can i map them freely in riocore, f.e. use the - usually stepdir output - pins P2-P5 as Encoder input pins? 

4) can i power a LED strip directly via wled1 with the onboard 5V supply, or would an external supply be better?

Secondly i played around with the Tangbob configuration in riocore and as it seems i must be doing something completely wrong or there must be something messed up with the bitin/ bitout defintions for the Tangbob board somewhere:

Board: Tangbob
Toolchain: icestorm
Protocol: UDP

LinuxCNC:
3 Axis
mill
manual toolchange
axis gui

Modules:
china bob left -> split

Plugins added:
ads111514 on i2c             -> all ok
wled bar on wled             -> all ok
modbus1 on modbus             -> all ok
stepdir on RIGHT: P2 + P2         -> all ok
stepper17 on RIGHT: P3 to P6        -> all ok
quadencoder on RIGHT: P10 - P12     -> all ok
bitout on RIGHT: P8            -> compiles well 

but the latter gives a long error message when firing up LinuxCNC:

riocomp.c:185:28: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘OUT_BIT’
  185 |     hal_bit_t   *SIGOUT_P8 OUT_BIT;
      |                            ^~~~~~~

[...and TONS of similar/ follow up errors]

looking at riocomp.c:185 reveals:

"hal_bit_t   *SIGOUT_P8 OUT_BIT" <- looks like a missing underscore between P8 and OUT, with added underscore i just get:

   
linuxcnc rio.ini 
LINUXCNC - 2.10.0~pre0
Machine configuration directory is '/media/gitano/Alhambra/Software/Linux/CAD+CAM/LinuxCNC-RIO/riocore/Output/Tangbob/LinuxCNC'
Machine configuration file is 'rio.ini'
Starting LinuxCNC...
linuxcncsvr (563355) emcsvr: machine 'Rio - mill'  version '1.1'
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX non-realtime
milltask (563384) task: machine 'Rio - mill'  version '1.1'
halui (563390) halui: machine 'Rio - mill'  version '1.1'
twopass:invoked with <> options
twopass:found ./rio.hal
twopass:found ./pregui_call_list.hal
twopass:pass0: loadusr -W hal_manualtoolchange
riocomp.c: In function ‘register_signals’:
riocomp.c:541:51: error: ‘data_t’ has no member named ‘SIGOUT_P8’
  541 |     if (retval = hal_pin_bit_newf  (HAL_IN, &;(data->SIGOUT_P8 OUT_BIT), comp_id, "%s.P8 OUT.bit", prefix) != 0) error_handler(retval);
      |                                                   ^~
riocomp.c:541:62: error: expected ‘)’ before ‘OUT_BIT’
  541 |     if (retval = hal_pin_bit_newf  (HAL_IN, &;(data->SIGOUT_P8 OUT_BIT), comp_id, "%s.P8 OUT.bit", prefix) != 0) error_handler(retval);
      |                                              ~               ^~~~~~~~
      |                                                              )
riocomp.c:542:10: error: ‘data_t’ has no member named ‘SIGOUT_P8’
  542 |     *data->SIGOUT_P8 OUT_BIT = 0;
      |          ^~
riocomp.c:542:21: error: expected ‘;’ before ‘OUT_BIT’
  542 |     *data->SIGOUT_P8 OUT_BIT = 0;
      |                     ^~~~~~~~
      |                     ;
riocomp.c: In function ‘convert_varout1_bitout19_bit’:
riocomp.c:1013:23: error: ‘data_t’ has no member named ‘OUT_BIT’
 1013 |     bool value = *data->OUT_BIT;
      |                       ^~
make: *** [/usr/share/linuxcnc/Makefile.modinc:117: riocomp.o] Error 1
# compiling and loading rio component...failed

adding the same fix in line 541, 542 and adding SIGOUT_P8_ before OUT_BIT in line 1013 as well as uncommenting OUT_BIT in rio.hal and custom_postgui_hal, axis GUI fires up. The defined button for P8 shows up fine in GUI, i guess it won't work with hardware, though.

I tried adding bitins and outs for other boards (iceshield and octobot) and there they work fine.

All in virtuality, i still have no hardware around, but that will change soon

Cheers,
-lgitano

P.S.: Dont know if it is correct to post such userspace/ configurations issues here as this thread perhaps gets quite huge, or if it would be better to open new board specific threads? If You think so, i will do the latter :)
  • Grotius
  • Grotius's Avatar
25 Oct 2024 10:46 - 25 Oct 2024 10:48
Replied by Grotius on topic linuxcnc trajectory planner

linuxcnc trajectory planner

Category: General LinuxCNC Questions

Hi Arciera,

Thanks for trying this out.
Maybe i have an idea.

I can check the regular make process --verbose output.
Remove one lib from the rtlib that uses liblinuxcnchal.
Then invoke a make --verbose command and check the output.
In this output we can see compile flags. Then maybe we miss a compile flag.

If we miss a compile flag, we add it to the edited motmod.so or tpmod.so (cmake projects)

Let you know soon!
  • meister
  • meister
25 Oct 2024 10:25

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

 

do you already have your layout on github ? then i would create a new board in rio so that you have the pins in the right place.
  • Stran_ge
  • Stran_ge
25 Oct 2024 09:44 - 25 Oct 2024 09:47
Replied by Stran_ge on topic Spindle servo step/dir Problems

Spindle servo step/dir Problems

Category: Advanced Configuration

okay i did some more testing today.

I tried turning the spindle by hand and looked at the rawcounts.
I did 10 rotations and everytime the result was 4096 (or some single digits off, user error).
Which tells me that my encoder scale of 4096 should be correct.

Now i also tested the command M19 R0 or M19 R90......180....270....360....
and those commands all worked and were repeatable and correct.

The rpm however is still wrong and the spindle-at-speed never reaches true.

Also when i command 100 rpm via linuxcnc and check in the display of my servo drive it says 82 rpm which means my output scale is wrong i guess ?
  • Aciera
  • Aciera's Avatar
25 Oct 2024 08:46
Replied by Aciera on topic linuxcnc trajectory planner

linuxcnc trajectory planner

Category: General LinuxCNC Questions

Just reinstalled the OS (LMDE 6) and while my regular linuxcnc rip install works I still have to copy copying 'liblinuxcnchal.so.0' to 'root/lib' to get it to start from your repo.
  • Dougal9887
  • Dougal9887
25 Oct 2024 07:48 - 25 Oct 2024 07:50
Getting Gnome desktop. was created by Dougal9887

Getting Gnome desktop.

Category: Installing LinuxCNC

A bit of a newbie question I'm afraid.I've just done a fresh install of the latest version and hoped to get the Gnome desktop, but have managed to end up with xcfe.I have searched for and tried all sorts of ways, each attempt has failed. Example screenshot attached.Maybe I have to install again?Some help would be much appreciated.
Dougal.
 

Attachment not found

  • royka
  • royka
25 Oct 2024 06:13 - 25 Oct 2024 06:18

Help me solve big latency (INTEL NUC7 / Pentium J5005 )

Category: Computers and Hardware

What tommylight said indeed. HDMI CEC control off, HDD led off.
And these kernel parameters worked good for me:
isolcpus=3 intel_pstate=disable processor.max_cstate=0 idle=poll cpufreq.default_governor=performance i915.enable_dc=0 ahci.mobile_lpm_policy=1 irqaffinity=0 nomodeset quiet

Bad memory can also be a cause. You can check the following command to see if there are interrupts of other devices on the isolated cpus: cat /proc/interrupts
Did you check the temperature?
  • martin2day
  • martin2day
25 Oct 2024 06:04

Knuth Mark Super CNC Retrofit - need some help with my first LinuxCNC

Category: Milling Machines

Good morning,

thank you very much for your time. You are right, Knuth is a german machine but the build this machine in china, like many other.
Look waht i found last day: :-)
 
I want to find oz what kind of encoder is build in the machine... it is also from china.

I am with you. I also think the wiring is okay and i want to safe as much as i can.
Only for the safty i think this is not a good solution. Here is what i found:
 
There is a relay called KA0 (CNC ON/OFF) with two bottons on the panel. This cut off the power form the windows XP computer.
On this computer is the whole cnc with a pci card.
So you can cut off the running pc and cnc-controller with this buttons.
The machine also have two safty switches... the goes to the relay KC0.. but the relais goes to an input off the cnc-controller.
It is not hard wired to something else.

 
I have also a main- relay that cut off the power form the servos. But this relay is switched by the cnc-controller... not hard.

In my opinion i think i would connect the main power for the servos to the safty switches... if there is something wrong, than i will shut it down.
NC ON/OFF i think it is okay to disconnect the eneble... but shut down the hole cnc? Is this okay.

What do you think is here a good behavior?

I hase one other question.
I will use the tpuchdisplay of this machine to, but this is vertically aligned.
I am right i have to chnage the GUI for that?

I also want to use a handcontrol from china.  Link
Can i also use the wired one with linuxCNC?

Have a nice day
Martin
  • Micro2000
  • Micro2000
25 Oct 2024 05:51
Replied by Micro2000 on topic Base Thread Over 100k

Base Thread Over 100k

Category: General LinuxCNC Questions

I found a rx 560 localy, I will see if it works.
  • Aciera
  • Aciera's Avatar
25 Oct 2024 05:32 - 25 Oct 2024 05:38
Replied by Aciera on topic linuxcnc trajectory planner

linuxcnc trajectory planner

Category: General LinuxCNC Questions

Still doesn't work without copying 'liblinuxcnchal.so.0' to 'root/lib':
tpmod: dlopen: liblinuxcnchal.so.0: cannot open shared object file: No such file or directory
  • Deckerjwd
  • Deckerjwd's Avatar
25 Oct 2024 05:08
Replied by Deckerjwd on topic Optional tool lenght measurement

Optional tool lenght measurement

Category: Advanced Configuration

Should be able to add a digital input check to your tool change routine that runs a sub routine that measures your tool then forks back to your regular program. You could use a physical switch or an interface button, then use o100 if to check that input and run your tool measure routine. Exact impametation would be intersting. Perhaps an easier way would be to breakout your drilling gcode in to separate file and run them manually then continue with all your preset tools
Displaying 22006 - 22020 out of 22695 results.
Time to create page: 0.509 seconds
Powered by Kunena Forum