Advanced Search

Search Results (Searched for: )

  • mjones@welfab.ca
  • mjones@welfab.ca
12 Nov 2024 15:57

Mesa, Linuxcnc with step direction servo's for axis and analog servo spindle.

Category: Basic Configuration

now that we have checked my firmware, how do I blend my hal file for the step and direction on the 7i76e
  • bladekel
  • bladekel
12 Nov 2024 15:50
Replied by bladekel on topic How to connect hal pins to custom GUI?

How to connect hal pins to custom GUI?

Category: Other User Interfaces

I tried this but I got an error like
./my-mill.hal:57: Pin 'somePin' does not exist
  • Aciera
  • Aciera's Avatar
12 Nov 2024 15:43
Replied by Aciera on topic How to connect hal pins to custom GUI?

How to connect hal pins to custom GUI?

Category: Other User Interfaces

This is not correct syntax to connect two pins in hal:
net somePin  hal_gpio.PIN33-in

Correct syntax is (<= and => are optional and are only to improve readability)
net some-signal-name  <=  hal_gpio.PIN33-in => somePin
  • bladekel
  • bladekel
12 Nov 2024 15:36 - 12 Nov 2024 15:39
How to connect hal pins to custom GUI? was created by bladekel

How to connect hal pins to custom GUI?

Category: Other User Interfaces

Hello to all.
I'm trying to build a custom GUI with pyqt5 for raspberryPi 5.
My linuxCNC version is 2.9.3, python version is 3.11.2.

I wanted to watch a input pin status whenever it changes.
I create a net in my hal file.
net somePin  hal_gpio.PIN33-in

After I created this net, I can see the pin and its changing logic from hal show with axis GUI.
I examined the qtplasmac_sim_handler.py and tried to make connections as on it.

Here is my custom GUI's handler file
def __init__(self, halcomp,widgets,paths):
    super().__init__()

    self.hal = halcomp self.somePinComp = self.hal.newpin('somePin', hal.HAL_BIT, hal.HAL_IN)
    self.somePinComp.value_changed.connect(lambda v: self.debugPrint("Changed"))

with this setup I cant see any changes. It only fires one time "Changed", and after that there is no information...

My guide qtplasmac_sim_handler.py did like I was...

What is my fault?
  • PCW
  • PCW's Avatar
12 Nov 2024 14:43
Replied by PCW on topic Raspberry PI4, MESA 7I96S problems

Raspberry PI4, MESA 7I96S problems

Category: General LinuxCNC Questions

Basically the issue is that the RPI4 Ethernet interface is connected via USB
and USB is not suited for real time.

For a RPI4 I would use a SPI interfaced device, The RPI5 (or most PCs) are fine with Ethernet
LinuxCNC motion controllers because their Ethernet hardware are not USB devices.
  • JT
  • JT's Avatar
12 Nov 2024 13:41 - 13 Nov 2024 12:18
Replied by JT on topic Flex GUI Tutorials

Flex GUI Tutorials

Category: Other User Interfaces

Tutorial 19



JT
  • behai
  • behai
12 Nov 2024 13:10
Replied by behai on topic Raspberry PI4, MESA 7I96S problems

Raspberry PI4, MESA 7I96S problems

Category: General LinuxCNC Questions

No. It's an 3 axis mini milling machine, with three steppers. I use step-dir interfaces.
 

Hi This email address is being protected from spambots. You need JavaScript enabled to view it.,

Have you managed to get it to work, please? I am asking because I am thinking of trying out the same set up. I have a Raspberry Pi 4B with 8 GB and real-time kernel. I have not bought a MESA 7I96S yet. But I am planning too.

Thank you and best regards,

...behai.
  • smc.collins
  • smc.collins
12 Nov 2024 12:48
Replied by smc.collins on topic Trajectory Planner using Ruckig Lib

Trajectory Planner using Ruckig Lib

Category: General LinuxCNC Questions

Aciera post=313997 userid=25994Hm, as I understand it, this does _not_ give us multi thread gcode execution as that would require multiple parallel motion planners in the same linuxcnc instance. A single instance of linuxcnc cannot interpolate more than one tool path at the same time.

I could be wrong, but given the current API that linuxcnc is written on top of, this would likely require very deep work into the core of linuxcnc. AFAICT there are no tools in the API that can synchronize the threads for instance. Also the code appears to be heavily written for serial execution. What would probably need to happen otomh is that the api would need a way to have each thread run independently with a centrally controlled memory management cache to synchronize the various threads. so you would have a trajectory planner " all required code to execute motion" for each new instance of a aixs and have it run in it's own thread and then a central trajectory planner would keep the various thread in sync. 

at that point, it would probably make sense to port to a mulithreaded api that has c and c++ tools for this kind of work. Texias Instruments RTOS for there microcontrollers has this kind of capabiliy. Any newer x86 can do this easily if it is multicore. I am not super familiar with the ROTS version of the linux kernel that just sa release. But yes a multithreaded pi would be required bare minimum.
  • Aciera
  • Aciera's Avatar
12 Nov 2024 12:29
Replied by Aciera on topic gmoccapy z height after hitting start

gmoccapy z height after hitting start

Category: General LinuxCNC Questions

tool size was different until after the G43 H2 line which prompts for inserting tool 2.


That command does NOT prompt for 'inserting tool 2', that command activates TLO with offset values defined in the tool table for tool #2.

If you are not using TLO in linuxcnc anyway then I would recommend setting freecad up so it does not output GCODE that activates TLO. This way there are no surprises whatever offset values you have in your tooltable.

Why did the behaviour change?

Probably not the answer you want but most likely due to operator error.
  • tommylight
  • tommylight's Avatar
12 Nov 2024 12:04

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

Category: Computers and Hardware

Why are you getting -4V on the scope?
Are the probes reversed?
  • mBender
  • mBender
12 Nov 2024 11:57

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

Category: Computers and Hardware

I removed the level shifter and connected the Tang directly to the Break out Board. Good news, it works. Then I measured at the drives and I get a nice 50% duty cycle. However, the motors still stall. And depending on where I stop, the Tang is sending Step Signals even without any movement. The motor just make sound.

 

 
  • darrylb123
  • darrylb123
12 Nov 2024 10:49
Replied by darrylb123 on topic gmoccapy z height after hitting start

gmoccapy z height after hitting start

Category: General LinuxCNC Questions

Understand. I use freecad to generate the gcode from 3d models. The gcode header seems to be the same. I compared a file that was causing the issue with one from 2 years ago. Only the date and tool size was different until after the G43 H2 line which prompts for inserting tool 2.
This is routine as I always create a different path job for each tool so they are always tool 2 ( 1 being the default tool).
Why did the behaviour change?
  • besriworld
  • besriworld
12 Nov 2024 10:45
Replied by besriworld on topic OLD Lathe conversion to a CNC

OLD Lathe conversion to a CNC

Category: Turning

Thanks @aciera
It works, so easy. Thanks again! I am also adding a new drilling video.

  • Aciera
  • Aciera's Avatar
12 Nov 2024 10:28
Replied by Aciera on topic gmoccapy z height after hitting start

gmoccapy z height after hitting start

Category: General LinuxCNC Questions

The INI file has not changed in the last year. Why had this not been a problem before? I do try to keep linuxcnc up to date, so an update may have triggered it.


There is no need to change the ini file to get different behavior like this.
TLO can be activated/deactivated through Gcode (G43/G49)
Tooloffsets can be changed through Gcode (G10 L1)


Sounds like you are missing some fundamental concepts of CNC control. Without a sound understanding of Gcode you are bound to get affected by all kinds of pitfalls.
linuxcnc.org/docs/html/gcode/g-code.html
Displaying 17941 - 17955 out of 24292 results.
Time to create page: 0.465 seconds
Powered by Kunena Forum