Advanced Search

Search Results (Searched for: )

  • m456arcus
  • m456arcus
22 Aug 2024 01:05

Help Wanted for creating new UI with Qt and EtherCAT

Category: Qtvcp

Thanks for the info. I tried modifying qtdragon, I think where I got stuck is not being able to find the .ui file to edit, it wasn't in the config folder. It would be great to have a look at that. I would want support for a tool height sensor and can program that if you mean qtdragon does not include it.

Can you elaborate on EtherCAT and how you set it up?
  • RyanB
  • RyanB's Avatar
22 Aug 2024 00:58

Tool resets to Z0 when starting program without being told to

Category: AXIS

Having some issues with running some Gcode. I'm using fusion360 and when I single step through the ngc on linuxcnc the Z axis plunges to 0 without being told to in the Gcode.
%
(0000)
(MACHINE)
(  VENDOR AUTODESK)
(  DESCRIPTION GENERIC 3-AXIS)
(T5 D=6.35 CR=0. - ZMIN=12.69 - FLAT END MILL)
N10 G90 G94 G17 G91.1
N15 G21
(-ATTENTION- PROPERTY SAFE RETRACTS IS SET TO CLEARANCE HEIGHT.)
(ENSURE THE CLEARANCE HEIGHT WILL CLEAR THE PART AND OR FIXTURES.)
(RAISE THE Z-AXIS TO A SAFE HEIGHT BEFORE STARTING THE PROGRAM.)
(WHEN USING FUSION FOR PERSONAL USE, THE FEEDRATE OF RAPID)
(MOVES IS REDUCED TO MATCH THE FEEDRATE OF CUTTING MOVES,)
(WHICH CAN INCREASE MACHINING TIME. UNRESTRICTED RAPID MOVES)
(ARE AVAILABLE WITH A FUSION SUBSCRIPTION.)
(FLAT1)
N20 T5 M6
N25 S5000 M3
N30 G17 G90 G94
N35 G54
N40 G64 P0.001 Q0.001
N45 M8
N50 G0 X68.804 Y-180.895

The origin of the the piece is a known position on the spoil board, its surface being 0. So I raised the tool head to 40ish mm above the work piece. I then single step through the program and before it hits N50 (line 23) the tool head plunges to 0.
I've dissected the G-code as best as I could, but I can't find any portion that moves the head to 0.
(absolute distance mode)
(Units per minute mode)
(XY Plane set)
(incremental distance mode for I, J & K offsets)
G90 G94 G17 G91.1

(Unit Select MM)
G21

(Tool 5)
(Tool Change)
T5 M6

(Spindle Speed set to 5000)
(M3 = Right hand tool select)
S5000 M3

(XY Plane set)
(absolute distance mode)
(Units per minute mode)
G17 G90 G94

(Select Coordinate System 1)
G54

(Path Tollarance)
G64 P0.001 Q0.001

(Coolant Start)
M8

(Rapid Traverse to X68 Y-180)
G0 X68.804 Y-180.895

What am I missing here?
  • rodw
  • rodw's Avatar
22 Aug 2024 00:47

Ethercat installation from repositories - how to step by step

Category: EtherCAT

Start linuxcnc from the command line, read the error about the missing pin. It probably tells you the line number. Comment it out until Linuxcnc starts and review halshow to get the right spelling/pin name. This is just basic trouble shooting, not ethercat related.

linuxcnc -l 

is a very handy command (Lower case -L)
  • rodw
  • rodw's Avatar
22 Aug 2024 00:38 - 22 Aug 2024 00:39
Replied by rodw on topic Gui for standalone thc

Gui for standalone thc

Category: Plasma & Laser

Yes, I was suggesting a totally new stepper driven Z axis/lifter assembly.

A few of us did  a lot with plasma before Plasmac burst onto the scene.

Generally, we used a touch off subroutine that was called before the M3. JohnT has a good starting example here (and some other resources)
gnipsel.com/shop/plasma/plasma.xhtml  I think I modified this to probe away until loss of contact before saving the torch height.

Cornerlock just needs to monitor the current velocity and disable the THC if it falls below a threshold (say 90%) of the feedrate. This used to be  a problem becasue Linuxcnc never saved the feedrate,   but a kind developer heard our cries and its now published in motion as motion.feed-upm and a few other variations. Here though your THC will need some kind of input that disables it.
linuxcnc.org/docs/stable/html/man/man9/m...9.html#MOTION%20PINS

I have attached a working cornerlock component
  • rodw
  • rodw's Avatar
22 Aug 2024 00:14
Replied by rodw on topic how to recompile a linuxcnc directory?

how to recompile a linuxcnc directory?

Category: General LinuxCNC Questions

The build system should just build what you have changed.
  • rodw
  • rodw's Avatar
22 Aug 2024 00:10

Help Wanted for creating new UI with Qt and EtherCAT

Category: Qtvcp

Probably start with qtdragon and customise it to suit. TTS toolng and a probe works well in it. I use it. If you premeasure tool length as Tormach does it, you don't need a tool height sensor.

Ethercat is certainly a lot easier to use today than it used to be but becasue you are interfacing linuxcnc with the ethercat master, there is some additional complexity in setting it up. But it only took  a day for me to get movement.
  • rodw
  • rodw's Avatar
21 Aug 2024 23:42

is there some basic list to build the net ?

Category: EtherCAT

I would be very happy if someone could point me to a list of standard net to build stuff from ...
like : net x-home or net x-limit or net torch-on .... stuff like this 
OR I don't have to care and i can just create whatever i want?
I want to use most of the IO on my card that has 16 inputs and 16 outputs ... 
before i had a usb-bob for mach3 and had 4 inputs and 4 outputs

 

I think that is the biggest difference between Linuxcnc and Mach3,  Here, you start with a blank canvas, Mach has some structure about its setup.
Linuxcnc does not care and you can use whatever you want.
Over time you will build your own style that works for you. 
With ethercat, I like to put the drives at the top of the list so they get numbered the same as th ejoints but you can set a name j0.j1 etc.
  • PCW
  • PCW's Avatar
21 Aug 2024 23:36 - 21 Aug 2024 23:38
Replied by PCW on topic PID Servo Loop rates

PID Servo Loop rates

Category: General LinuxCNC Questions

The required PID rate also depends on what you are controlling.
 If you are controlling torque, you need a higher PID rate
than if you are controlling velocity (with the drive controlling the
lower level, higher frequency loops)

A typical position mode servo drive may have 3 nested PID (or similar)
loops, from fastest to slowest:

torque command to PWM out
velocity command to torque out
position command to velocity out

 
  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
21 Aug 2024 23:19
Replied by Cant do this anymore bye all on topic is there some basic list to build the net ?

is there some basic list to build the net ?

Category: EtherCAT

"did read almost half of the linuxcnc documentation"

That's the issue.

It's there you just need to look.
  • PCW
  • PCW's Avatar
21 Aug 2024 22:35
Replied by PCW on topic Digital input to float

Digital input to float

Category: HAL

conv_bit_float will just turn a bit to 0.0 or 1.0

Normally  the way jog increments are selected are with a mux
component, say mux4

man mux4
 
  • Hauligali22
  • Hauligali22
21 Aug 2024 22:00
Replied by Hauligali22 on topic Closed Loop Computer Vision Enabled CNC

Closed Loop Computer Vision Enabled CNC

Category: QtPyVCP

Thank you. Without your incredible help, I would still be searching for how to implement this project. My current CNC machine is a 5axismaker with Mach4 software and Pokeys57U hardware. After reaching out to the vendor, they confirmed it can be converted to run LinuxCNC and suggested I follow this post: forum.linuxcnc.org/24-hal-components/29816-pokeys-ethernet. My first step will be converting the machine to LinuxCNC as well as figuring out LinuxCNC. Then, I'll create a custom HAL to apply external offsets to the original g-code using data from the camera using OpenCV. I feel like I've done adequate research beforehand but the actual implementation is where I will see how difficult this gets. While I'm not as experienced with CNC control, I'm more comfortable with programming but we will see. Hopefully, I can show the completed project as soon as possible  !
  • slowpoke
  • slowpoke
21 Aug 2024 21:41 - 21 Aug 2024 21:42
Digital input to float was created by slowpoke

Digital input to float

Category: HAL

I have external push buttons for jog increment and I'm trying for example to update halui.axis.x.increment with the value 0.001
conv_bit_float seems like it should work for this?

It's not obvious how I get the float value of 0.001, assigned to the float value?
Error is postgui.hal:202: Pin '0.001' does not exist

The external button is updating net jog-inc-1 when I push the button (observed in Hal show)
Excerpt from postgui is as follows:

loadrt conv_bit_float count=1
addf conv-bit-float.0 servo-thread

net jog-inc-1 <= arduino.keypad.Jog-Inc-1
net jog-inc-1 => conv-bit-float.0.in
net jog-inc-1f  conv-bit-float.0.out 0.001
  • mark-v-d
  • mark-v-d
21 Aug 2024 21:41
Replied by mark-v-d on topic PID Servo Loop rates

PID Servo Loop rates

Category: General LinuxCNC Questions

You lose bandwidth by going to a lower servo PID rate. If that doesn't
matter because the system you're controlling is slow, there is no price
in going for a lower control speed.

With a sampling rate of 250Hz, you can actually measure up to 125Hz. In reality
the limit is usually between 1/5 and 1/3 that frequency before difference between
a sampled and a time continuous system become apparent.

So with 250Hz you're approximately limited to 50Hz of control
bandwidth. To me that seems terribly low. On my own lathe I have a
resonance at approximately 300Hz. Since I have the servo thread running
at 4500Hz (because that's the maximum rate the encoders I use support)
I was able to eliminate that resonance.

On the other hand, what do you lose when going for a higher sampling
rate? The only thing I can come up with is processor time, but that
seems hardly an issue on a modern PC. And I'm doing this on an RT_PREEMPT
kernel, so it's not even Xenomai or RTAI.
  • captain-panda
  • captain-panda's Avatar
21 Aug 2024 21:27 - 21 Aug 2024 21:33
Replied by captain-panda on topic 3 Achs Fräse mit MESA 7C80 und Raspi 4

3 Achs Fräse mit MESA 7C80 und Raspi 4

Category: Deutsch

I got the smallest Gravograph machine (UNICA) up and running.
Thanks once again for your input and this amazing forum in general :)

Now, the larger machines have 1-phase AC motors and a separate speed control PCB that's actually a single-phase frequency converter. So far so good, there's also an encoder and a potentiometer to set speed, BUT:
The potentiometer is 500 kOhm and voltage across the potentiometer is merely 0,22 V.

Is there any way to get this to work with LinuxCNC?

[EDIT]
I'd like to apologize for crashing Hans Peter - HPWs thread.
Would it be better to move my issues to a new topic instead?

Hans Peter, verzeih mir bitte, dass ich mich hier hineingedrängt habe
  • zmrdko
  • zmrdko's Avatar
21 Aug 2024 21:19
Replied by zmrdko on topic New LinuxCNC-Ethercat git tree

New LinuxCNC-Ethercat git tree

Category: EtherCAT

looks like golang did it. Thanks a lot Scott!!
Displaying 22231 - 22245 out of 25338 results.
Time to create page: 0.390 seconds
Powered by Kunena Forum