Advanced Search

Search Results (Searched for: )

  • atrex77
  • atrex77's Avatar
Yesterday 11:34

W5100S-EVB-PICO stepgenerator and encoder driver

Category: Driver Boards

i have some questions, please explain to me "low resolution encoder can produce velocity as 0,0,3 not 1,1,1", "digital signal sampling too quickly.", how do you mange the digital signal sampling too quickly problem if you using hardware encoder counter without external hardware? how do you manage data integrity problem of UDP communication, i dont see any code to check the sent and received data is valid. Do you tested my code in real hardware? If so, open an issue in the github page. My project is in development and i want to fix all bugs that come in the future, but i don't react to theories. If you want to participate, fork the project (test branch), make changes you like, test it  and make a pull request.
  • dredivan
  • dredivan
Yesterday 11:25 - Yesterday 11:39
Replied by dredivan on topic Touch off don`t work "file not open"

Touch off don`t work "file not open"

Category: AXIS

[RS274NGC]
PARAMETER_FILE = linuxcnc.var
 
I use clean configuration created by PNCCONF.
My linuxcnc version is 2.10

If I don't enter anything from the keyboard and just press the OK button in the window, the coordinates are reset.
but if I enter any number, the option to confirm with the OK button disappears.

After I click the OK button, I open the linuxcnc.var file and see that the values have been written
5221    37.000000
5222    0.000000
5223    -10.443750
 
But if I enter any number from the keyboard, the option to confirm disappears, and I see the inscription "File not open"

linuxcnc.var


Log of run configuration
  • Cysign
  • Cysign
Yesterday 11:19

Interfaces & linear scale for LinuxCNC

Category: General LinuxCNC Questions

Hi,
I originally wanted to run a cheap DIY cnc machine using an old Intel Atom dualcore computer which has an LPT connector. But meanwhile I start thinking about higher quality components.

Same specs:
-stepper motors (already exist)
-linear rails for a work area of 1000/600/200mm (already exist)
-spindle Kress FME800 (already exists)
-stepper driver board with 5x Toshiba TB6560 (already exists)
-USB connected hand controller/job wheel LHB04 (already exists)

Now I wonder if I'd better go for an network/USB controlled Mesa card to get rid of that old Intel Atom computer and be able to use any machine (probably a modern notebook).

Also I would like to bux linear scales for my build, but couldn't figure out how they would be connected to LinuxCNC.
Is there a lis with reliable (but not too expensive) supportet linear scales?

And would you rather ust the Toshiba stepper driver board listet above or get some modern alternative?

Since I didn't really start building it, I'm free to change components for the good :)

I'm going to weld the frame for my machine. So I wonder what's the best way to start? At the moment I think I'm going to build z-axis first and depending on it's dimensions I can design the x-axis, then Y-axis.
But for designing the z-axis I need to know which linear scale system I need to mount and what size it is.

Since this CNC machine is intended to build electrical guitars, I don't require the highest precision, but I'd like to have as small tollerances as possilbe for a reliable pricetag.
  • ihavenofish
  • ihavenofish
Yesterday 05:27
Replied by ihavenofish on topic Mini wannabe datron build

Mini wannabe datron build

Category: CNC Machines

Mo pichurs... for your enjoyment (or hate, you do you...)

 
 
 

The atc mounting arms are just pure brute force right now. I need to refine them be a little lighter and a lot less expensive.
  • Hakan
  • Hakan
Yesterday 05:09

System hangs repeatedly with certain combinations of operations

Category: General LinuxCNC Questions

I noticed the ENDSUB doesn't match the SUB in tool-length-reset.
  • ihavenofish
  • ihavenofish
01 Aug 2025 03:02
Replied by ihavenofish on topic Mini wannabe datron build

Mini wannabe datron build

Category: CNC Machines

Alllllmost there. :)

 
  • DauntlessA
  • DauntlessA
01 Aug 2025 02:56
Replied by DauntlessA on topic Probe tripped during non-probe move deadlock

Probe tripped during non-probe move deadlock

Category: General LinuxCNC Questions

Hi Andy,
I believe that the issue I'm describing is exactly the one here:
github.com/LinuxCNC/linuxcnc/issues/2926

The last comment from that issue was you asking about the motion.motion-type following motion.probe-input going high.
I've looked in the halscope and it does seem that motion.motion-type remains at a value of 5 (Probing) until deceleration is completed, at which point the motion-type goes directly to 0 (Idle). So the issue isn't that the motion type resets immediately when the probe input triggers.
I was probing using just the X axis/joint 0 when I tested this.


I'll try and find out a bit more if I can.
  • DauntlessA
  • DauntlessA
01 Aug 2025 01:05

Possible to access a HAL OUT pin for jog count backlog

Category: HAL

Andy,
Thanks so much!
I had a dig through some of the motion planner, and it seems when an incremental jog is commanded by the GUI using NML, then this is the associated case in
motion/command.c
:
github.com/LinuxCNC/linuxcnc/blob/master...otion/command.c#L841

If the incremental jog is accepted, if it is a joint jog (free mode), it seems to handle all of the logic there, with the target position assigned as follows:
            /* set target position for jog */
            if (emcmotCommand->vel > 0.0) {
            tmp1 = joint->free_tp.pos_cmd + emcmotCommand->offset;
            } else {
            tmp1 = joint->free_tp.pos_cmd - emcmotCommand->offset;
            }

Whereas, if it is an axis jog (teleop mode), it will call the function
void axis_jog_incr(int axis_num, double offset, double vel, long servo_period) {}
in
axis.c
:
github.com/LinuxCNC/linuxcnc/blob/master...c/motion/axis.c#L279
    if (vel > 0.0) {
        tmp1 = axis->teleop_tp.pos_cmd + offset;
    } else {
        tmp1 = axis->teleop_tp.pos_cmd - offset;
    }

So, for both joint and axis, the way the position is assigned is essentially the same, it modifies either the value of 
free_tp.pos_cmd
 or 
teleop_tp.pos_cmd
 by the value of the jog incremental offset.
These would be the hal pins... which actually already exist as 
joint.N.free-pos-cmd
 and 
axis.L.teleop-pos-cmd
!

I thought I'd tried the axis ones already but I must've forgotten to home the sim and since I had the joint jogging pins connected as well I didn't realise I wasn't using teleop 

But yeah, the 'backlog' of incremental jog-counts is just converted into a teleop or free mode motion planner position (which explains why a backlog acts just like a continuous jog).


And, yes, I did sort of avoid saying why I was looking into this (sorry!), wanted to see if this way would work first!
I was looking at meister 's camjog widget
github.com/multigcs/riocore/blob/main/ri...ons/camjog/camjog.py
It jogs via jog-counts (which is definitely the best way to do this), but the only drawback is that it can move in a dogleg if one joint or axis takes longer than the other to reach the destination.

But, if you compare the 'jog DTG' (my test assumes both have the same max velocity) for x/y (or the joint equivalent), you can scale down the velocity of the joint/axis which has the smaller DTG according to its proportion against the joint/axis which has the larger DTG, and then use that to scale the milltask joints/axis max_vel pins.
And the other required logic is that if at least one of the joints/axes is within positional tolerance of the target position, the velocities of both the joints/axes need to be set back to 100%.

Anyway, this is sort of trying to force free or teleop mode to act like coordinated mode. It's quite similar to anglejog, actually, 
but it acts later by calculating the 'Jogging DTG' from existing counts with the same scale (from camjog) and modifying the velocities to follow the resultant instead of calculating the counts itself.
I'll try and flesh out the component a bit more now I know it works.
Also, I still can't figure out why joint jogging is still doglegging   It's not a big deal for me as long as axis jogging works but I want to know why it's not working 

 
  • PCW
  • PCW's Avatar
01 Aug 2025 00:20

System hangs repeatedly with certain combinations of operations

Category: General LinuxCNC Questions

Running (in a terminal window when LinuxCNC is running)

halcmd show all > good.txt

(when running OK) and:

halcmd show all > bad.txt

when hung

( and posting good.txt and bad.txt here )

_May_  help find the reason it's hung.
  • Jonathan_H
  • Jonathan_H
31 Jul 2025 23:48

System hangs repeatedly with certain combinations of operations

Category: General LinuxCNC Questions

I raised this issue a couple of years ago, but then the hackspace closed for a while to move location, so looking into it had to be put on hold. I was hoping that updating linuxcnc would fix it, but if anything it got worse.

Denford 2600 Pro, linuxcnc conversion using Mesa board

So, I have two scripts which are linked to UI buttons.
The first does a spindle warmup. This consists of moving the spindle to the middle of the bed (location is arbitrary) and then running the spindle for a few minutes at an increasing speed.
The second is a tool change script, it moves the spindle front and centre, prompts the operator to change the tool and then click "continue", then moves to the front left and probes the length of the tool with a switch fixed to the bed, then moves carriage back to front centre.

So on a freshly started linuxcnc, I can run the tool change repeatedly, does exactly what is expected.

Now I run the spindle warmup, does what is expected.

But now I run a tool change again... it hangs

Toggle power off and on again from the UI, and try tool change again. It moves front and centre, prompts and waits for tool change, then moves to the front left to probe the tool length... and hangs

Also if I run a job with tool changes when it gets to the tool change the carriage moves front and centre, tool change prompt, moves front left... and hangs. Now this is actually worse than pre update, I used to be able to get through a full multi tool job without it hanging.

Configuration and script files are in this repository

github.com/londonhackspace/Denford-2600-Pro

I'm really rather stuck as to what to do next. I'm a software engineer so debugging software and systems is something I am used to, but linuxcnc is currently a bit of a black box to me. It seems that running the spindle warmup script must leave linuxcnc in a different state to when it is started, one that is somehow incompatible with the tool change script (whether this is correct functionality and the issue is my script or it is a bug in linuxcnc I don't know), but I don't know how to ascertain what is changing. How can I get useful diagnostic information?

Any pointers to how to proceed would be greatly appreciated
  • ihavenofish
  • ihavenofish
31 Jul 2025 17:35
Replied by ihavenofish on topic Mini wannabe datron build

Mini wannabe datron build

Category: CNC Machines

ATC being worked out. Its gonna be fun haha. it wont be fast like a brother cause the spindle itself is slow to clamp, but 2-3 second tool changes should be viable.

 

 
  • PCW
  • PCW's Avatar
31 Jul 2025 17:31
Replied by PCW on topic Glasmaßstab EIA-422 an Mesa 7i85 (S)

Glasmaßstab EIA-422 an Mesa 7i85 (S)

Category: Deutsch

The RS-422 interfaces on the 7I85 are most commonly used
for SmartSerial I/O expansion but can be used for other RS-422
uses like absolute encoders (SSI or BISS)
  • my1987toyota
  • my1987toyota's Avatar
31 Jul 2025 17:17
Replied by my1987toyota on topic ARE YOU KIDDING ME YOUTUBE !!!

ARE YOU KIDDING ME YOUTUBE !!!

Category: Off Topic and Test Posts

Fortunately the AI stuff is so far easy to spot. There are some that I swear are paid by the word. LOL
  • Asymmetrisch
  • Asymmetrisch
31 Jul 2025 17:09
Replied by Asymmetrisch on topic Glasmaßstab EIA-422 an Mesa 7i85 (S)

Glasmaßstab EIA-422 an Mesa 7i85 (S)

Category: Deutsch

Thank you very much for your quick reply.
The 5 serial connectors on the 7i85 (without "S") are outputs for drives with RS-422 interface, correct?
  • tuxcnc
  • tuxcnc
31 Jul 2025 17:08

W5100S-EVB-PICO stepgenerator and encoder driver

Category: Driver Boards

Unfortunately, your encoder code is good for MPG, but totally useless for spindle.
You have not taken into account many factors, such as a variable overflow, or a digital signal sampling too quickly.
For example, 2500 P/R encoder at 3000 rpm overflows int32_t after 72 minutes...
At the other side, low resolution encoder can produce velocity as 0,0,3 not 1,1,1...
One encoder dedicated only for spindle is a very good idea.
I know, because I wrote working and widely tested code, only for spindle control.
Read the code at github.com/tuxcnc/SpindleETH
This is for STM32 with hardware encoder support, but this is not important.
Displaying 46 - 60 out of 24577 results.
Time to create page: 0.490 seconds
Powered by Kunena Forum