Advanced Search

Search Results (Searched for: )

  • bladekel
  • bladekel
20 Nov 2024 13:57
How to detect M0 pause? was created by bladekel

How to detect M0 pause?

Category: Other User Interfaces

I'm trying to create custom GUI by pyqt5.
Is it possible to detect if pause is caused by M0 ?
I catch the program-paused-changed signal and than control the current_line of gcode_display.
it works if the machine paused after a move.
but if the machine couldnt started to move, the current_line didnt show the M0 line....
G21
F1000
G61
G90
G0 X0 Y0 Z0
M0 ( couldnt detect here with gcode_display.current_line. because it told me that the line is 0 )
G0 X100
M0 ( I detected here because gcode_display.current_line gave me the correct line)
  • slowpoke
  • slowpoke
20 Nov 2024 13:56 - 20 Nov 2024 14:11
Replied by slowpoke on topic LinuxCNC for lathe questions

LinuxCNC for lathe questions

Category: General LinuxCNC Questions

Thank guys, I'm starting to get a few of the blanks filled in. I now have a few more questions:

I read this (quickly)... linuxcnc.org/docs/html/lathe/lathe-user.html
I also watched this video on G76 thread cutting...


Links to other applicable documentation or instructional videos (specific to LinuxCNC lathe operation are welcome.

Now the follow-up questions:
1)  I don't see a problem using the G76 method in the video above except, I'm a hobby guy so it can be months between thread cutting sessions so with my present memory I would pretty much have to watch that video to refamiliarize myself with the various parameters before I could setup for a thread cut. Is there any sort of thread cutting wizard like GUI thing associated with Axis that simply lets you select the thread type for example 3/8-16, starting here, and ending there that then figures out the arguments required for G76?

2) Presently I have a derivative of the Clough42 ELS on my lathe and it uses a Omron 600 pulse/rev quadrature encoder. Assuming I use a MESA 7i96s to get that quadrature encoder signal into LinuxCNC, will the 600 pulse/rev encoder be fine (ie. not overwhelm Linux with too many pulses if operating at say 2000RPM)?

3) Looks like I will need a one pulse per rev sensor on the spindle correct? The Omron encoder I'm using has a Z output, so I will use that I guess.

4) Regarding the 7i96S, eventually I would like to use one or possibly two MPG style encoders to replicate the hand wheels for X and Z, it seems like I will have enough unused pins on the 7i96S, not sure if those inputs can be used for the MPG inputs and what would be involved in decoding the MPG inputs, possibly some logic in the HAL file? 

5) Not sure if I should get a 7i73 for the MPG(s), prefer to keep the hardware to a minimum if I can get away without the 7i73, comments?

6) Regarding X-axis servo. I measured with a peak torque sensor the required torque to do an aggressive cut with a dull HSS tool and peak torque was only 0.5Nm so I'm leaning towards a fairly small servo in the 1Nm range. Do you think this is too small?

7) Last question where can I find appropriate install LinuxCNC install file? I want to see if I can get it running on my RaspberryPi

Much appreciated

 
  • langdons
  • langdons
20 Nov 2024 13:48

How to configure pause/resume over pin 10 of parallel port?

Category: HAL

How does LinuxCNC determine the output of Spindle ON?
  • langdons
  • langdons
20 Nov 2024 13:38

How to configure pause/resume over pin 10 of parallel port?

Category: HAL

I tried the included wizard (stepconf).

The system works now.

Thank you tommylight!

However, I have pin 1 configured as "Spindle ON", but the output on the pin does not change.

What do I do now?
  • GeckoWorks
  • GeckoWorks
20 Nov 2024 13:14
Replied by GeckoWorks on topic Index homing Mesa 7i96s

Index homing Mesa 7i96s

Category: PnCConf Wizard

Hi, im wondering how to add index homing signals to the pncconf so i can do index homing. I cant seem to find the option to add the signal to the right io i put on the mesa 7i96s in pncconf.

I have 4 inputs. Index pulse x,y,y1,z axis. Can see the status. But dont seem to find the actual io option in needs to be to be recognized by pncconf as an index signal. What am i missing? 
if it needs to be a "full on" encoder in the 7i96s config... it only has 1 of those.

thank you,
routerman22
 

Hi Routerman,
Just in case you see this, since I just pulled the trigger on some Mesa cards (maybe not the correct ones...), did you ever get this to work?

I have Delta B2s so one step down from yours, but for index pulse, I think they work exactly the same.

Actually, and I don't want to get your hopes or those of anyone else reading this in the future, the B3 may be able to home internally to its index pulse... I a, pretty sure the A series can, but I feel like there's a chance that it's one of the things the B3 can do over B2. So, a signal would be sent from the controller to the servo drive and the drive would take over homing and it would report back once done.

[EDIT]
Homing To The Index/Z Pulse of Delta Servos - and Important Differences Between A and B series!

I am new at all this so could be wrong, but just had a look at the B3 manual and I am almost certain they can home "internally", meaning the servo drive handles the homing. Which might save the Mesa from the noise and speed issues Peter talked about earlier in this thread. So, it would work like this: The Mesa would send a signal to the servo drive to start homing and the drive would be configured to go look for the limit switch and then from there go in either direction to its index pulse whereafter it would send a signal to the Mesa, that homing was complete.
I think you can set up offsets, too - so, hit the index, then go to an offset, then signal Mesa. 
Sounds like a cleaner or at least potential alternative way to do this? 

Sadly, I don't have B3s but the "lowly" B2s which can't do this... 

I would assume the A-series, both A2 and A3 can do it as the A series are above the B series, but please look into that yourself if you are in the market for these and need this feature. 
  • 7strideR
  • 7strideR's Avatar
20 Nov 2024 13:02
Replied by 7strideR on topic Beckhoff Compatibility

Beckhoff Compatibility

Category: EtherCAT

What's the odds of getting a Module not listed working? The one in question I am looking for is not listed in the Github

EL2088 - 8 Negative Outputs | Supported
EL2889 - 16 Negative Outputs | Not Supported
EL2809 - 16 Positive Outputs | Supported

Will it be possible to get this working or does it have no drivers?
  • JT
  • JT's Avatar
20 Nov 2024 12:55

Flex Gui forces machine into Manual mode when any other process switches to MDI

Category: Other User Interfaces

I've changed it so an internal MDI button resets the mode but external MDI should not.

JT
  • JT
  • JT's Avatar
20 Nov 2024 12:46

Flex Gui forces machine into Manual mode when any other process switches to MDI

Category: Other User Interfaces

There's one place in status.py line 138 that sets the mode to manual after a mdi and the interp is idle...

JT
  • GeckoWorks
  • GeckoWorks
20 Nov 2024 12:43 - 20 Nov 2024 13:14
Replied by GeckoWorks on topic Index homing Mesa 7i96s

Index homing Mesa 7i96s

Category: PnCConf Wizard

...
  • sk_linuxcnc
  • sk_linuxcnc
20 Nov 2024 12:32

Help: How to run X and A axis with different feed rates simultaneously?

Category: G&M Codes

yes it is a dedicated winding machine. I could go with just X and Z lathe config. However, the problem still remains. the Z axis would then take feed in mm/min right? and not be a rotary axis.
nevertheless, can you help further?
  • JT
  • JT's Avatar
20 Nov 2024 12:21
Replied by JT on topic Flex GUI translation

Flex GUI translation

Category: Other User Interfaces

The E Stop and Power button text is now user configurable.

gnipsel.com/linuxcnc/flexgui/controls.html#e-stop-and-power

JT
  • JT
  • JT's Avatar
20 Nov 2024 12:16 - 20 Nov 2024 12:17

Flex Gui forces machine into Manual mode when any other process switches to MDI

Category: Other User Interfaces

I get errors when I try and run it and the run button does nothing for me.

john@cave:~/qtpyvcp_grinder_touch/rpi_grinder_touch$ linuxcnc ./rpi_grinder_touch.ini
LINUXCNC - 2.9.2-64-g675988daf7
Machine configuration directory is '/home/john/qtpyvcp_grinder_touch/rpi_grinder_touch/.'
Machine configuration file is 'rpi_grinder_touch.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./sim.hal
Grinder hal ready
GRINDER_BACKEND STARTED
/home/john/qtpyvcp_grinder_touch/rpi_grinder_touch/./rpi_grinder_touch.ini:49: executing 'import sys
sys.path.insert(0,"python")'
PythonPlugin: Python '3.11.2 (main, May 2 2024, 11:59:08) [GCC 12.2.0]'
/home/john/qtpyvcp_grinder_touch/rpi_grinder_touch/./rpi_grinder_touch.ini:49: executing 'import sys
sys.path.insert(0,"python")'
PythonPlugin: Python '3.11.2 (main, May 2 2024, 11:59:08) [GCC 12.2.0]'
is_callable(remap.queuebuster) = TRUE
is_callable(__init__) = FALSE
Stopping BE
Could not parse stylesheet of object flexgui(0x16103a0, name = "MainWindow")
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/libflexgui/startup.py", line 1798, in setup_import
module = importlib.import_module(module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/john/qtpyvcp_grinder_touch/rpi_grinder_touch/grinder.py", line 4, in <module>
from qtpy.QtWidgets import QLineEdit, QPushButton, QComboBox, QDoubleSpinBox, QSpinBox, QCheckBox, QWidget
ModuleNotFoundError: No module named 'qtpy'

Could not parse stylesheet of object flexgui(0x16103a0, name = "MainWindow")
task: main loop took 0.131505 seconds
Shutting down and cleaning up LinuxCNC...
task: 10460 cycles, min=0.000006, max=0.131505, avg=0.010063, 1 latency excursions (> 10x expected cycle time of 0.010000s)
is_callable(__delete__) = FALSE
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gi/_ossighelper.py", line 92, in signal_notify
def signal_notify(source, condition):

KeyboardInterrupt
Note: Using POSIX realtime
john@cave:~/qtpyvcp_grinder_touch/rpi_grinder_touch$


JT
  • timo
  • timo
20 Nov 2024 12:06 - 20 Nov 2024 12:07

Help: How to run X and A axis with different feed rates simultaneously?

Category: G&M Codes

Seems to be very similar to a lathe.
When the a axis gets an encoder and the x axis is "slaved" to this.
Pitch should be adjustable.

Leaves the back and forth movement to be taken care of.

Is it a dedicated winding machine? Or you need to solve it just with G-code for a standard x-y-z a Machine?
Greetings Timo
  • sk_linuxcnc
  • sk_linuxcnc
20 Nov 2024 11:04

Help: How to run X and A axis with different feed rates simultaneously?

Category: G&M Codes

Hello All, I am at a beginner level in linuxcnc and cnc programming.

I have to build a simple winding machine, as depicted in the attached image. (I wish to perform side by side winding of the mateial without any gaps or overlaps)

the X axis is supposed to control the layup slide back and forth.
the A axis is supposed to rotate at a constant speed in the same direction until multiple layers are wound.

here is a simple working example of the gcode i prepared.
g91
o100 repeat [5]
g1 x80 a3600 f360
g1 a720 f10000
g1 x-80 a3600 f360
g1 a720 f10000
o100 endrepeat
m2

*please note that this is just a representative code, which performs the desired motion for me.*
however, since the feedrate is calucated in a compound manner, giving priority to the x-axis, adjusting the rotational speed so as to have a side-by-side layup of material is difficult.

secondly, since the A axis isnt rotating conitnously, it generates a momentary pause (due to deaccelartion and re-accelartion when a line of code ends)

Q: I am looking to eliminate both of these problems, but i dont know how to make it possible in the gcode.
I wish that A axis would keep rotating indefinietly without any pause at a given certain feed rate. and the X axis to keep moving back and forth independently at a different given feedrate.


i can use a spindle setting instead of A axis, the example gcode for it looks something like this:
s100 m3
o100 repeat [5]
g91 g0 x80 f360
g91 g0 x-80 f360
o100 endrepeat
m2

However, i wish to know if this is possible to with X and A axis, what would the gcode look like.

Any help is much appreciated. :)
  • Hossein74Majidi
  • Hossein74Majidi
20 Nov 2024 10:52
Replied by Hossein74Majidi on topic Real-Time Kernel with Orange Pi 4 LTS

Real-Time Kernel with Orange Pi 4 LTS

Category: General LinuxCNC Questions

At least for the rk3588 the dtb version must match with the kernel version so I assume it's the same with yours. In this case it might be easier to create an image with the Armbian build system, just put the rt patch in the right folder, for example patch/kernel/archive/rockchip64-6.9 and start with ./compile and choose that you want to see the kernel config before you'll compile it.

Although they only support Linux 6.6, 6.9 and 6.12 (which don't need a rt patch). But if for some reason you need an older kernel you could just find an image with the same version kernel you've compiled and copy that dtb.

I'm using those kernels just because the official links of orangepi provided them, If any rt-kernel can be installed, that would be great.
when I was using orange pi 5 plus, I used armbian 5.10.160. but I experienced a tough time with its SPI driver. after spending some time on that I thought it may be the armbian which its spi is not real-time and reliable.
That's why this time I was avoiding to installing armbian.
if you think armbian is reliable in SPI, then this time i will try this way.
Displaying 16846 - 16860 out of 24529 results.
Time to create page: 0.328 seconds
Powered by Kunena Forum