Advanced Search

Search Results (Searched for: )

  • thomaseg
  • thomaseg
17 Jul 2024 09:10
Replied by thomaseg on topic Safety relay and e-stop in LCNC?

Safety relay and e-stop in LCNC?

Category: Basic Configuration

I'm using an ABB safety relay on my CNC converted mill (forum.linuxcnc.org/12-milling/50559-opti...mh50v-cnc-conversion) and I've set it up so that LinuxCNC feeds the e-stop circuit via an output on the Mesa board.

If LinuxCNC isn't up and running the e-stop cannot be reset. If the e-stop is triggered it can only be reset via my physical e-stop reset button, e-stop cannot be reset in software.

I'm using Delta B3 servos which have two different power connections on the servo drives, one connection for the logic section and one for the servo power section. The logic section remains powered all the time (per the Delta manual) but the servo power section is cut via contactors when an e-stop is triggered. The drives also have the e-stop signal connected to them so they can detect an e-stop and stop the servos using the built in brake resistor.

I really like the way you setup reacts. I cannot figure out if your safety relay can actually trip without LinuxCNC being on? From what i can see on your schematic the estop is wired to the drives + IO pin, but not the safety relay?

Your drives are better than mine. The way logic and power is seperated is very handy! Mine doesn't have that. Neither does my drives support external e-stop input since they run via EtherCAT.

pippin88 post=305449 userid=16922
Ha e you tried just setting it up in hal as an estop?

I have a simple estop button to LinuxCNC and when I reset the button LinuxCNC comes out of estop.
I still have to hit "power on" on LinuxCNC after reseting estop. This is generally recommended behaviour

Reseting estop should never result in immediate motion

Yeah, hitting "Power on" in LinucCNC is just fine, it makes good sense. And i agree that estop reset shouldn't restart motion, that is crucial!
I tried just simply setting the e-stop pin to emc-enable:
net estop lcec.0.DI03.din-0-not => iocontrol.0.emc-enable-in
...but this doesn't work and i also suspect that this isn't actually what i want :-)

rodw post=305452 userid=20660
There are two ways to do this. You can either run an external latch (which is a momentary switch) that resets the safety relay. In this case, you should connect a signal to a Linuxcnc input which is connected in hal to iocontrol.0.emc-enable-in This is the approach I took.
 


There is no need to press anything in Linuxcnc

I tried this simple approach with the above HAL-code, but this isn't working(at all)... maybe the emc-enable-in should be pulsed? I'm unsure how the internals of LinuxCNC works with these pins...

rodw post=305452 userid=20660
The other way is to  use iocontrol.0.user-request-enable instead of your external latch. Linuxcnc sends a pulse on this signal to act as the latch when the on screen estop is reset (S34 in the diagram).
When I researched this, this was compliant provided you isolated Linuxcnc (your controller) with redundant relays (K3 & K4). These needed to be force guided relays where a non conducting pin is forced between the contacts when they are triggered to ensure the contacts cannot become welded closed.


I should have posted a diagram in my previous post, but better late than never. This is my safety circuit:
 
 
I'm starting to think that i have to change this. So instead of the resetbutton(S6) goes directly to the safety-relay it actually goes to LinuxCNC. Then LinuxCNC is the only on that can reset the safety relay, just like in Unlogics case mentioned above. The question is then if should have an additional latch inside LinuxCNC or how should i structure the HAL?

A whole other can of worms is that the drives are connected via EtherCAT and uses CIA402, so i need to manage their state when the estop is reset. I have to re-initialize them after a reset, i'm not even sure this is doable via HAL logic...
  • Caffink
  • Caffink
17 Jul 2024 09:03
Replied by Caffink on topic Help understanding fundamentals of linuxcnc

Help understanding fundamentals of linuxcnc

Category: General LinuxCNC Questions

I think you have two types of jogging mixed up.

gmoccapy can jog with a screen button/arrow like most GUis

This is quite different than using an external encoder


You are right, I seem to have them mixed up. 

After some more reading, I might have cleared up some of the confusion regarding the basic concept of linuxcnc(hopefully).

Linuxcnc, or more specifically HAL and hal-pins are based on abstractions of real world hardware. So what you are doing on Linuxcnc is making a "virtual PCB", and soldering "virtual" connections between the hal-pins with net commands.

(This is a simplification).
For instance. Lets say you want to make a X-button that makes a stepper motor move, and that stepper motor is connected to a Mesa board.
1)That X-button pin Outputs Bit type(True of false), based on if it is pressed or not
2)Mesa Board has an input pin that accepts Bit type.
3)Then you connect the X-button pin with Mesa Board input pin with "net command" i.e(fictional example):
net x-btn-move x.button-pin => Mesa.Board-pin
4) You don't necessarily need to know how the Mesa Board communicates with the stepper motor, you just need to know that X-button-pin has to be connected to Mesa-board-pin, in order for the stepper motor to move.

Is this thought process correct?
 
  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
17 Jul 2024 07:52
Replied by Cant do this anymore bye all on topic New and Working RTAI debs for 2.9

New and Working RTAI debs for 2.9

Category: Installing LinuxCNC

Compiling the kernel is easy, where the skill comes in is getting the config correct.
And be thankful it's not the 90's and you're not having to do it on a 486 with 16MB ram.

Joking aside, it's probably best to have one set of debs for the kernel from a known source. Debugging is going to be, I'd like to say easier, rather than having user built kernels that maybe a little different, due to a change in config. Or how gcc's mood was on that day.

After coming from Slackware in the last 4 or so years to debian\ubuntu and going thru "RPM Hell" back in Ye Olden Days, installing packages via debs is pure bliss. I don't want to think about how long it took to install gitlab on a Slackware 14.2 server, just about every dependency had to be compiled. On Ubuntu its a one liner.

Just a suggestion Rod, pin grub so it doesn't get updated. Because somewhere some how it will make someone cry when they go to update it on a UEFI system with an RTAI kernel.
  • Raksop
  • Raksop
17 Jul 2024 07:46 - 17 Jul 2024 07:48

LinuxCNC stalls on manual toolchange routine

Category: General LinuxCNC Questions

Hi there,
I'm currently facing some problems with my LinuxCNC setup. I have remapped the M6 command to run my macro for measuring my tool length. However, it's only working the first time the macro (messen.ngc) is called. This means:
  • The machine gets switched on and homed
  • The first tool is inserted (for example, T1) and measured with the macro
  • The zero point of the workpiece is set
  • Another tool is called via T2 M6 (MDI)
  • The machine moves to the manual tool change position and waits for the tool change
  • Upon confirmation of the tool change, the machine starts moving (to the position of the tool length sensor) and then immediately stops without fault.
I really don't know what to do anymore. LinuxCNC isn't throwing any exceptions on the Gmoccapy screen or in the terminal. It would be really nice if someone could help me out. I'm running the following setup:
  • HP ProDesk 600 G1
  • i3 4160
  • 8GB RAM
  • Mesa 7i95
Thank you very much and best regards,
Raksop
  • rodw
  • rodw's Avatar
17 Jul 2024 07:42

G64 causes the processing acceleration to slow down

Category: G&M Codes

Yes acceleration will reduce if you enforce a reduced radius. This is because of centripetal acceleration where the acceleration determines the arc radius. The velocity is meaningless.
  • rodw
  • rodw's Avatar
17 Jul 2024 07:33

Help understanding fundamentals of linuxcnc

Category: General LinuxCNC Questions

This is quite different than using an external encoder
to jog.

I could never work out why Gmocappy added jogging pins. Using external hardware, this is the correct method
linuxcnc.org/docs/stable/html/examples/mpg.html
  • meister
  • meister
  • rodw
  • rodw's Avatar
17 Jul 2024 07:07
Replied by rodw on topic Safety relay and e-stop in LCNC?

Safety relay and e-stop in LCNC?

Category: Basic Configuration

There are two ways to do this. You can either run an external latch (which is a momentary switch) that resets the safety relay. In this case, you should connect a signal to a Linuxcnc input which is connected in hal to iocontrol.0.emc-enable-in This is the approach I took.
 
There is no need to press anything in Linuxcnc

The other way is to  use iocontrol.0.user-request-enable instead of your external latch. Linuxcnc sends a pulse on this signal to act as the latch when the on screen estop is reset (S34 in the diagram).
When I researched this, this was compliant provided you isolated Linuxcnc (your controller) with redundant relays (K3 & K4). These needed to be force guided relays where a non conducting pin is forced between the contacts when they are triggered to ensure the contacts cannot become welded closed.

It's good that you used a safety relay with a timer in it can retain control until motion stops.

 
  • MrStupid
  • MrStupid's Avatar
17 Jul 2024 05:29

XHC-HB04: not work macro mdi_command Fn+macro3/macro4/macro8

Category: Advanced Configuration

On the lathe, I decided to use macro commands when changing tools: Т№M6 G43.
I have 10 instruments in total. I decided to bind these commands to xhc-hb04. I came across the fact that the macro3 macro4 macro8 buttons do not work, although the commands were written in the ini file. In the hal file responsible for the operation of mpg, I saw that these buttons are reserved.
Is it possible to somehow remove/exclude the default spindle control or change the hal file so that macros become active (Fn+macro3/macro4/macro8)?

p.s.
translated and voiced by Google translator
  • pippin88
  • pippin88
17 Jul 2024 05:25
Replied by pippin88 on topic Safety relay and e-stop in LCNC?

Safety relay and e-stop in LCNC?

Category: Basic Configuration

Ha e you tried just setting it up in hal as an estop?

I have a simple estop button to LinuxCNC and when I reset the button LinuxCNC comes out of estop.
I still have to hit "power on" on LinuxCNC after reseting estop. This is generally recommended behaviour

Reseting estop should never result in immediate motion
  • PCW
  • PCW's Avatar
17 Jul 2024 04:31

"error finishing read" with Mesa 7i92T on fresh install

Category: Driver Boards

Its very unlikely to be a card issue.

Try the ping command in the previous post to see what the Ethernet latency is.

You also have to disable basically all power management/speed shifting/
turbo modes etc in the PC BIOS

Finally, using isolcpus and pinning the Ethernet to the last CPU can help a lot

If you have isolcpus setup in the kernel command line, you can temporarily
pin the Ethernet IRQ with this script:

 

File Attachment:

File Name: pinirq_2024-07-17.txt
File Size:1 KB


and check that its done the expected thing with this script:

 

File Attachment:

File Name: checkmask_...7-17.txt
File Size:1 KB







 
  • cmorley
  • cmorley
17 Jul 2024 03:17

how to make my own custom page for qtdragon_hd?

Category: Qtvcp

Did you use linuxcnc-HAL radio/check buttons?
  • cmorley
  • cmorley
17 Jul 2024 03:00
Replied by cmorley on topic Spindle Inhibit while Probing.....

Spindle Inhibit while Probing.....

Category: Qtvcp

Yes, Pushed.

Looks like I made a spelling mistake, so it's under a different heading (missing hyphen).

[VERSA_PROBE OPTIONS]
ps_probe_tool = 0

I'll fix that soon.

Chris
  • tommylight
  • tommylight's Avatar
  • tommylight
  • tommylight's Avatar
17 Jul 2024 02:17
Replied by tommylight on topic Mostly 3D Printed CNC Foam cutter

Mostly 3D Printed CNC Foam cutter

Category: CNC Machines

Seems very easy to use, thank you.
Displaying 24631 - 24645 out of 25542 results.
Time to create page: 0.595 seconds
Powered by Kunena Forum