Advanced Search

Search Results (Searched for: )

  • spumco
  • spumco
Today 16:14
Need help with Bash M-code was created by spumco

Need help with Bash M-code

Category: General LinuxCNC Questions

Working on a switchable kinematics for my lathe, using the millturn example on GH.

(more here:  forum.linuxcnc.org/10-advanced-configura...r-than-x-axis#344888 )

One part of the switchkins process are a pair of M-codes: M128 and M129.  I gather these are used to change the axis max/min limits when the respective joints are swapped.

Problem is I don't understand the Bash language/terms/syntax well enough to make sure I'm modifying it appropriately for my config.

Here's the full M128:
Warning: Spoiler!


Question(s):

1.  Do I need to change (INI_FILE_NAME) to my particular ini file name, or is this some sort of 'points to the configuration's INI file regardless of name' programming thing?

2.  Under #RESTORE, there is the foreach | $coords... part.
- Does this call, or otherwise ensure, everything below applies to all values after set coords "x y z" at the top?

- Does set L [string toupper $l] somehow change the lowercase "x y z" to upper-case for use in the ::AXIS_[set L]... part?

- What is "catch"?

3.  Could this have been written more simply?
like: hal setp ini.x.min_limit [set ::AXIS_X(MIN_LIMIT)]

and repeated for desired axes?  With no "set coords" or "foreach" or "set L" needed?

Bonus Question:
- Other than to confuse non-programmers, what purpose does this complication serve?  Is the intent to make it so the end-user only has to change the coords "n n n" values and everything still works?
  • Todd Zuercher
  • Todd Zuercher's Avatar
Today 11:15
Replied by Todd Zuercher on topic Homing To Index Following Error

Homing To Index Following Error

Category: Advanced Configuration

Here's another Halshow screen shot showing the index input.
 
  • Todd Zuercher
  • Todd Zuercher's Avatar
Today 10:24
Replied by Todd Zuercher on topic Homing To Index Following Error

Homing To Index Following Error

Category: Advanced Configuration

Here's a Halscope shot of it.
 
  • Todd Zuercher
  • Todd Zuercher's Avatar
Today 10:20 - Today 10:22
Homing To Index Following Error was created by Todd Zuercher

Homing To Index Following Error

Category: Advanced Configuration

I have a 4 axis router with step/dir servos using a 7i76EU+7i85 to command the servos and read the encoder feedback.  I have the servos reasonably tuned running closed loop.  But I'm seeing a following error spike on homing to index for the W axis (XYZW) on the first attempt at homing the machine after power up.  After the initial encoder position reset on the homing index it will home fine the 2nd try and works after that. If the machine was parked at the W-zero location when Linuxcnc is turned off and started it does not do the following error.  For some reason it seems like Linuxcnc is not ignoring the F-eror on the encoder index reset for the W-axis like it should.  Any Ideas how to fix this?

Here are my main hal and ini config files.

File Attachment:

File Name: TwinCNC.hal
File Size:22 KB
 

File Attachment:

File Name: TwinCNC.ini
File Size:6 KB
  • Ameone
  • Ameone
Today 08:25
Replied by Ameone on topic Bitfile for rcservo - MESA 7i95t

Bitfile for rcservo - MESA 7i95t

Category: Driver Boards

Thanks it should work fine with the 2 RCPWMs and the sserial on TB4
  • Marcos DC
  • Marcos DC's Avatar
Today 08:11

CiA402 framework for LinuxCNC (follow-up: runnable + simulation + easier debuggi

Category: EtherCAT

Small update:

I aligned all docs with the actual runtime behavior and added a practical diag.sh guide.

Quick start is now simulation-first and profiles are clarified as declarative contracts.

Some parts were previously implicit (in my head), so this pass was mainly about making those assumptions explicit and removing ambiguity.

No changes in runtime/semantics — just making it easier to use and debug.

Now waiting for real hardware feedback.
  • ts
  • ts
Today 07:55 - Today 07:57

Ext hard buttons duplicate Power_PB and Reset

Category: Flex GUI

Ok, it is reset of latched estop.
And how to realise reset button for external errors, for example drives errors or external devises (torch head or edm generator)?

Also i couldnt startup halui component, but somehow flexgui send power on signal to drives , i want to know how to use the same logic and send signal the same way
  • Hakan
  • Hakan
Today 07:40
Replied by Hakan on topic Ethercat random jitter fix

Ethercat random jitter fix

Category: EtherCAT

It doesn't sound pll-related if you get clunks when idle/standing still.
You can try and record this. If the clunks are from commanded position disruptions
you should see it as disruptions in position feedback.
You can record long sequences to try to catch it. Use the "sampler" hal component.
Possibly add a ddt component to take the derivative of the position feedback.
It will show some spike/peak when a clunk happens, if there is something with the position.
Plot the data, and evaluate.
 
  • bill.anderson
  • bill.anderson
Today 05:56

Can't install Linux 2.9.8 hybrid alongside Windows 11.1

Category: Installing LinuxCNC

I know Windows 11.1 uses a GPT partitioning. Everything I've read indicates that if I used Rufus to make the USB live stick on a GPT partition that I could do a dual boot install. I turned off bitlocker on the Windows files, turned off secure boot, turned off fastboot under the power settings, and shrank the windows partition to give me 50GB for the install. The install asked me for a missing file related to a sound card and didn't recognize my network (wifi). I selected manual partitioning and did not see any of the partitions other than the USB stick. The live version booted and ran fine. Running gparted showed the EFI partition with an error triangle alongside. I suspect this has something to do with GPT but I can't figure out what.
I'm trying to install this on an HP Laptop. Any thoughts?
  • Marcos DC
  • Marcos DC's Avatar
Today 05:18

CiA402 framework for LinuxCNC (follow-up: runnable + simulation + easier debuggi

Category: EtherCAT

Nice, thanks for testing it

And yeah, honestly you did a better job than the docs there
At that moment they were a bit messy and could easily lead in the wrong direction.

I just went through and cleaned them up properly (quick start is now simulation-first, no profile/topology needed, and observability is aligned with what diag actually shows).

So what you ran is basically the intended path, just not well explained before.

If you get time later to try it on real hardware, that would be really interesting to hear about.

Appreciate you taking the time to try it.
  • TAKUYA
  • TAKUYA
Today 04:33
Replied by TAKUYA on topic Ethercat random jitter fix

Ethercat random jitter fix

Category: EtherCAT

The config was previously working just fine. I dont know what changed that caused this.

Ill check dmesg again when im home.
As for the working state after the DRO populates... Its hard to say. I can definately move every axis just fine, but theres a 50% chance that clunks occur. Sometimes more clunks, sometimes less clunks. Sometimes they even appear mid-cycle which is a no-go.

ive swapped out all the ethernet cables now, re-imaged my lcnc host, even used a new host without any success.
  • Lcvette
  • Lcvette's Avatar
Yesterday 03:00

30 Second timeout before opening and E-Stop button not clicking...

Category: QtPyVCP

first thign i see is you ar emissing the postgui hal file that is required. you need to uncomment the ini for that line and copy over the probe basic post guiio hal file as is stated in the docs.

it looks like you may have missed a few steps, go beack through the machine config section in the docs really carefully and make sure you have done all of the steps accordingly and i think you will find things will work as expected.

kcjengr.github.io/probe_basic/machine_config.html
  • NWE
  • NWE's Avatar
Yesterday 01:06
Replied by NWE on topic LinuxCNC S-Curve Accelerations

LinuxCNC S-Curve Accelerations

Category: General LinuxCNC Questions

Go easy on me. I tried to read through this whole thread, but there's a lot to digest. 

--snip--

I know it's not a "real" control, but it's pretty amazing they could get all that to work (along with g-code interpreter, etc) on an 8 bit AVR microcontroller. 

 

Just now I discovered:
GRBLHAL = 32 bit
GRBL = 8 bit
Thanks for bringing this up. A long time ago I read all about GRBL 8-bit and sort of gave up on it. Now I notice the main project is 32 bit. Now that seems worthwhile. Cheap 32-bit MCUs today pack some punch.

That said, I'll leave the S-curve talk for the pros.
  • ewlsey
  • ewlsey
Yesterday 00:40
Replied by ewlsey on topic LinuxCNC S-Curve Accelerations

LinuxCNC S-Curve Accelerations

Category: General LinuxCNC Questions

Go easy on me. I tried to read through this whole thread, but there's a lot to digest. 

How does the current linuxcnc approach compare to how S curve acceleration is being done in GRBLHAL? 

I've tried to read the linuxcnc servo loop code, but it's pretty well impenetrable. 

However, GRBLHAL is very cleanly written and well commented. From what I can see, it has many features discussed here.

It has a backwards (and forwards) buffered trajectory planner with prescribed tangential acceleration. It has buffered segment interpolation. Both run outside the realtime loop, but the segment buffer is fast enough for feed overrides and holds to feel instantaneous. 

I know it's not a "real" control, but it's pretty amazing they could get all that to work (along with g-code interpreter, etc) on an 8 bit AVR microcontroller. 

The current HAL version offers jerk limited acceleration, though I have to say its utility is a bit questionable for industrial machines. I believe the GRBL equivalent of the "servo loop" only runs at 100Hz, so you would need really low jerk values to see an effect. But, the framework seems sound.
  • NWE
  • NWE's Avatar
Yesterday 00:40

CiA402 framework for LinuxCNC (follow-up: runnable + simulation + easier debuggi

Category: EtherCAT

Thanks!
I looked it over and tried the simulation. It's looking good. Later this week I hope to find time to try it on my hardware.
Displaying 1 - 15 out of 17566 results.
Time to create page: 2.307 seconds
Powered by Kunena Forum