Advanced Search

Search Results (Searched for: )

  • JT
  • JT's Avatar
01 Jun 2024 14:03
Plot Preview was created by JT

Plot Preview

Category: Other User Interfaces

I'm trying to figure out the simple way to show the plot preview in a QOpenGLWidget. I "think" I need to use gcode.parse() to get the end points of the lines (forget about arcs for now). So I modified the code from this post to be a bit simpler and up to date. It returns each line like straight_feed (2.375, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) so I assume somehow I can use that to plot the lines using OpenGl. I'm looking for a simple example  to guide me...

JT
  • PCW
  • PCW's Avatar
01 Jun 2024 13:43 - 01 Jun 2024 13:49

Hal help for home to index with stepgen firmware update

Category: HAL

Can you post your current hal/ini files?

Also you can verify index operation by

1. Watching the stepgen feedback position and stepgen index enable in halshow
2. "sets" the stepgen index enable signal
3. Generate an index event

The expected result is that on index event, the stepgen index enable will go false
and the stepgen feedback position should be zeroed.
 
  • PCW
  • PCW's Avatar
01 Jun 2024 13:05 - 01 Jun 2024 13:38

7i96s + 7i89 analog spindle and mpg troubles

Category: PnCConf Wizard

net spindle-vel-cmd-rpm => [HMOT](CARD0).pwmgen.00.value

should be

net spindle-vel-cmd-rpm-abs => [HMOT](CARD0).pwmgen.00.value

Spindle section should be:
(assuming you are supplying 5V to 7I96S TB2 pin 24)


[SPINDLE_0]
P = 0.0
I = 0.0
D = 0.0
FF0 = 1.0
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 2500.0
OUTPUT_SCALE = 2500
OUTPUT_MIN_LIMIT = 0
OUTPUT_MAX_LIMIT = 2500


What is the issue with jogging?
  • Unlogic
  • Unlogic
01 Jun 2024 12:47 - 01 Jun 2024 21:09
Replied by Unlogic on topic Optimum Optimill MH50V CNC conversion

Optimum Optimill MH50V CNC conversion

Category: Milling Machines

I've started milling the first proper parts after the conversion and I have so say that I'm very pleased with the precision and performance of the Delta B3 servos along with the extra preloaded Bosch-Rexroth ball screws.

Posted a short video on YouTube showing the results of milling 6082 aluminium using a 12mm DLC coated carbide end mill. The adaptive tool path is generated using FreeCAD.



The only thing I really have to look at now is the spindle which is completely untouched with the stock bearing, motor and VFD. Even at a measly 1500 rpm it gets too hot for my comfort and the gearbox is way to noisy for long term use.

I have new bearings for the spindle on the shelf but I'm leaning more and more towards replacing the whole thing with a proper belt driven ATC spindle and Delta 2KW 6000rpm servo. That should bring down the noise and give much better control.
  • my1987toyota
  • my1987toyota's Avatar
01 Jun 2024 12:09
Replied by my1987toyota on topic Mostly 3D Printed CNC Foam cutter

Mostly 3D Printed CNC Foam cutter

Category: CNC Machines

video update.  This time I do an airfoil cut . Unfortunately I ran the Cutting wire a bit too cold and the air foil came out
a bit out of shape. That said it gives a good idea of how the whole thing works.
  • vre
  • vre
01 Jun 2024 12:04
  • PeterSi
  • PeterSi
01 Jun 2024 11:40
Replied by PeterSi on topic Probe Basic ATC Setup Problems

Probe Basic ATC Setup Problems

Category: QtPyVCP

Sadly not :(
To be honest I have no idea where to even look at this point.
For now I have gone back to manual tool changing which works without any problems.
But I really want to get the ATC working again since it worked perfectly fine with the old setup with the only drawback being that I had to manually change the pocket numbers when I changed out a tool in the ATC which wasn't very often since I had 24 pockets. But I assume that going back to an older Linuxcnc and probebasic version will be somewhat difficult as well since I don't know what exact version I was using.
 
  • amanker
  • amanker
01 Jun 2024 10:00

Need help in choosing controller board from small honby cnc.

Category: Driver Boards

Here is my mpg.hal
# Jog Pendant
loadrt encoder num_chan=1
loadrt mux4 count=1
addf encoder.capture-position servo-thread
addf encoder.update-counters servo-thread
addf mux4.0 servo-thread

# If your MPG outputs a quadrature signal per click set x4 to 1
# If your MPG puts out 1 pulse per click set x4 to 0
setp encoder.0.x4-mode 0

# For velocity mode, set to 1
# In velocity mode the axis stops when the dial is stopped
# even if that means the commanded motion is not completed,
# For position mode (the default), set to 0
# In position mode the axis will move exactly jog-scale
# units for each count, regardless of how long that might take,
setp joint.0.jog-vel-mode 0
setp joint.1.jog-vel-mode 0
setp joint.2.jog-vel-mode 0

# This sets the scale that will be used based on the input to the mux4
setp mux4.0.in0 0.1
setp mux4.0.in1 0.01
setp mux4.0.in2 0.001

# The inputs to the mux4 component
net scale1 mux4.0.sel0 <= remora.input.9
net scale2 mux4.0.sel1 <= remora.input.10

# The output from the mux4 is sent to each axis jog scale
net mpg-scale <= mux4.0.out
net mpg-scale => joint.0.jog-scale
net mpg-scale => joint.1.jog-scale
net mpg-scale => joint.2.jog-scale
#net mpg-scale => axis.a.jog-scale
#net mpg-scale => axis.c.jog-scale

# The MPG inputs
net mpg-a encoder.0.phase-A <= remora.input.7
net mpg-b encoder.0.phase-B <= remora.input.8

# The Axis select inputs
net mpg-x joint.0.jog-enable <= remora.input.11
net mpg-y joint.1.jog-enable <= remora.input.12
net mpg-z joint.2.jog-enable <= remora.input.13
#net mpg-a axis.a.jog-enable <= remora.input.14
#net mpg-c axis.c.jog-enable <= remora.input.15

# The encoder output counts to the axis. Only the selected axis will move.
net encoder-counts  <= encoder.0.counts
net encoder-counts => joint.0.jog-counts
net encoder-counts => joint.1.jog-counts
net encoder-counts => joint.2.jog-counts
#net encoder-counts => axis.c.jog-counts

As per linuxcnc example "addf encoder.update-counters servo-thread" should be base thread, If I use base thread it gives error.
This HAL is working on my pendant. But signals are lagging, if I change scale then it reflects late. If I release enable switch then also axis remains active for few seconds.

I have defined all inputs as normal digial inputs and its working. (There is limit of 16 digital input) so I want A,B defined as encoder input. This way 2 more digital inputs will be saved. But If I define A,B pins of encoder as encoder input remora.PV.0 then HAL gives float to s32 type mismatch error.

 
  • JohnnyBeluga
  • JohnnyBeluga
01 Jun 2024 09:56
7i96s + 7i89 analog spindle and mpg troubles was created by JohnnyBeluga

7i96s + 7i89 analog spindle and mpg troubles

Category: PnCConf Wizard

ChatGPTCertainly! Here is a corrected version of your post for the LinuxCNC forum:Hi!I need some help with my LinuxCNC setup. I'm having trouble adding an MPG pendant and getting the spindle to work correctly. I have tried different solutions, but I'm obviously missing something. When I launch my configuration, I can jog the three axes through the GUI, but the MPG doesn't work. I tried adapting the custom HAL file with an example file and setting up the jog wheel through PNCconf. I'm also struggling with the spindle's analog control. I tested the spindle, and it works as expected with a variable voltage supply, reaching 2500 RPM at 5V.
Any hints or suggestions on what I might be doing wrong or what to check would be greatly appreciated!Thanks in advance for your help!
  • Aciera
  • Aciera's Avatar
01 Jun 2024 09:46 - 01 Jun 2024 09:47
Replied by Aciera on topic Getting super jerky curves

Getting super jerky curves

Category: General LinuxCNC Questions

Can't view the video (access denied) but the first thing that comes to mind is that maybe you have G61 (exact stop) active.

[edit]
for more information:
linuxcnc.org/docs/2.6/html/gcode/gcode.html#sec:G61-G61_1
  • Aciera
  • Aciera's Avatar
01 Jun 2024 09:27
Replied by Aciera on topic Probe panel for Axis GUI

Probe panel for Axis GUI

Category: AXIS

Ok, so it seems that pyvcp tab embedding was added rather recently. So it looks like you would have to update to the current 2.9.x.
github.com/LinuxCNC/linuxcnc/commit/a343...d4652c1be3f35c8b8545
  • automata
  • automata
01 Jun 2024 08:30
Replied by automata on topic Trajectory Planner using Ruckig Lib

Trajectory Planner using Ruckig Lib

Category: General LinuxCNC Questions

Grotius and Anderw2085
Fitting biclothoids for g2 continuity is a great addition for jerk limitation.
Another method used for CAM generated gcode which has many small line segments (polyline) is to use a line to spline converter. 
In OpenCN they have alluded to this algorithm as the CompressCurveStructs in this documentation link:
mecatronyx.gitlab.io/opencnc/opencn/CNC_...-planning-algorithms

More elaborate discussion in Section 6.2.5 in this document: mecatronyx.gitlab.io/opencnc/opencn/CNC_...tric_Operations.html

The BSpline calculator from short line segments from the OpenCN project can be found at: gitlab.com/mecatronyx/opencnc/opencn-mat...Lee.m?ref_type=heads

This compressor can be turned on and off with a parameter so it is not necessary to keep it on all the time. 

Linuxcnc has an offline compressor called g1tog23.py detailed in this link: wiki.linuxcnc.org/cgi-bin/wiki.pl?LinesToArcs.
This can be used to compress small line segments to lines and biarcs. It uses Douglas–Peucker algorithm and a biarc interpolator for the compression. The compression is done offline though.  

Regards,
automata
  • handsomebeast
  • handsomebeast
01 Jun 2024 08:21
Replied by handsomebeast on topic Probe panel for Axis GUI

Probe panel for Axis GUI

Category: AXIS

get no errors when running from a terminal im running debian 10 buster (linux debian 4.19.0-25-rt-amd64 #1 SMP PREMPT RT debian 4.19.289-2

i dont have that config in my configs folder,
  • JetForMe
  • JetForMe's Avatar
01 Jun 2024 08:16 - 01 Jun 2024 17:21
Getting super jerky curves was created by JetForMe

Getting super jerky curves

Category: General LinuxCNC Questions

My machine has been working well for years. But this may be the first time I'm cutting something with a spline (although I've cut font paths before without this issue). I'm not sure if I messed up a setting or what. It's been quite a while since the last time I used my router.

I've attached images of the parts I'm cutting, how it looks in simulation (a series of line segments, it seems), and the generated gcode (from the current Fusion 360, although I haven't updated the post processor in some time). I'm not sure if this is a Fusion tolerance issue, or I need to tell it to use some kind of arc move, or my linuxcnc setup is not right (I've attached my .ini file too).

     

File Attachment:

File Name: Arcs.ngc
File Size:119 KB
And here is video of the resulting machine motion.
  • Aciera
  • Aciera's Avatar
01 Jun 2024 07:09 - 01 Jun 2024 07:20
Replied by Aciera on topic Probe panel for Axis GUI

Probe panel for Axis GUI

Category: AXIS

What version of LinuxCNC are you running?
Any errors when launching from a terminal?

[edit]
Also, try the 'sim/pyvcp_demo/pyvcp_embed_tab' from the config picker. Does that work for you?
Displaying 25291 - 25305 out of 26479 results.
Time to create page: 0.511 seconds
Powered by Kunena Forum