Advanced Search

Search Results (Searched for: )

  • rodw
  • rodw's Avatar
Today 01:15
Replied by rodw on topic Lichuan 4 axis stepper need help-

Lichuan 4 axis stepper need help-

Category: EtherCAT

I've totally rewritten it anyway. I was able to move the state machine into a seperate procedure which has substantially streamlined the code. Now I just have to get it to compile 

A lot of that does not need to be in the component because you are setting the pin externally. But we may need to scale or otherwise calculate data for them in which case they need to pass through the component. Get the basics first....

write all becomes something like
FUNCTION(writeall) {
    // Restart sequence on rising edge of enable
    if (enable && !data.prev_enable) data.control.raw = 0x0000;
    data.prev_enable = enable;

    if (enable) {
        int drive_ready = runCiA402StateMachine(&__comp_inst);

        if (drive_ready) {
            if (homing) {
                opmode_out = 6; // Homing Mode
                // Bit 4 starts homing; check for errors before commanding
                if (!data.status.bits.op_error) data.control.bits.op_specific = 1;
            } else {
                opmode_out = (s8)default_opmode;
                data.control.bits.op_specific = 0; // Clear Bit 4
                
                // Normal Motion
                drive_target_position = (s32)(target_position * pos_scale);
                drive_target_velocity = (s32)(target_velocity * vel_scale);
            }
        }
    } else {
        data.control.raw = 0x0006; // Shutdown / Disable Voltage
    }

    controlword_out = data.control.raw;
}
 
homing feedback is in the read command
  • tommylight
  • tommylight's Avatar
Today 23:47
Replied by tommylight on topic Custom PC build for my brothers company and more

Custom PC build for my brothers company and more

Category: Show Your Stuff

And here is the short video of the build process of that same PC above:
  • tommylight
  • tommylight's Avatar
Today 23:22

OMRON Yaskawa controllers, what I/O board would you choose

Category: Driver Boards

Sorry PCW, i keep advising boards that are usually in stock.
-
For this use case, Mesa 7i95T should also be considered as it is a step/dir board with encoders for all axis/joins, for if you ever want to also include LinuxCNC in the loop.
  • Marcos DC
  • Marcos DC's Avatar
Today 23:11

PLC + LinuxCNC for industrial machine with simple HMI (non-G-code operators)

Category: General LinuxCNC Questions

Thanks for the replies — I think it may help to clarify one architectural point.

We are not evaluating a PLC + LinuxCNC setup because LinuxCNC lacks sequencing, ladder logic, or HMI capabilities.
The decision is driven by industrial architecture requirements.

In our case, the PLC is not intended to replace motion control.
The process is trajectory/raster-based (laser cleaning and spray overlap), where motion quality, lookahead, and path execution are critical — this is why LinuxCNC remains responsible for motion.

The PLC acts as the machine controller:
• machine state and sequencing
• safety and interlocks
• operator workflow and recipes
• maintaining a safe and known state independently of the PC

This is similar to how many industrial robotic cells are structured, where a dedicated motion controller handles paths, and a PLC controls the cell logic and operator interaction.

So the question is not whether LinuxCNC can do everything, but how others have structured a clean responsibility boundary between a real PLC and LinuxCNC in production machines.

Any practical examples along those lines would be appreciated.
  • aDm1N
  • aDm1N's Avatar
Today 22:55 - Today 22:58

LatheEasyStep – experimental QtVCP macro for step-by-step lathe programming

Category: Qtvcp

The current state focuses on contour machining and the related LinuxCNC cycles.Contour (CONTOUR) is defined purely as geometry (lines, chamfers, radii, inner/outer).
Different operations can then be derived from this geometry, independent of their order in the workflow.Currently implemented:
  • Drilling using LinuxCNC cycles G81–G84 (including G82 with dwell, G83/G73 peck drilling, G84 tapping)
    • cycle-specific parameters are shown dynamically
    • internal correct switching to
      G17
      , followed by
      G80
      and back to
      G18
  • Roughing of contours
    • use of G71/G72 if the contour is monotonic
    • automatic fallback to move-based machining for non-suitable contours
  • Finishing of the same contour as a separate step
All operations reference the same contour geometry but are processed as logically separate steps.G-code generation (current logic):
  • Before every tool change, the machine always moves to a defined G53 tool change position
  • Definition of an explicit safe area (
    X_safe
    ,
    Z_safe
    ) derived from stock geometry and retract planes
  • After each cutting step:
    • retract in X first
    • then retract in Z (no combined retract moves)
  • Approach from the safe area may be diagonal
  • Coolant (
    M7/M8/M9
    ) is set explicitly per operation
  • Comments are sanitized (no nested parentheses)
The preview is directly based on the geometry:
  • true arcs for radii
  • separate visualization of contour, stock, toolpaths, retract planes, and safety limits
  • visual highlighting when machining or safety limits are exceeded
A reworked README describes the current feature set, safety logic, and G-code strategies in detail.
Screenshots will follow in the next few days.
The current state will also be published on GitHub in the coming days.Additionally, a test file (
Test.ngc
) is attached, reflecting the current state of the generated G-code.
  • RNZ
  • RNZ
  • RNZ
  • RNZ
Today 22:23

Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!

Category: Installing LinuxCNC

I haven't been on the Forum for ages but today I noticed that someone asked if I could post my RPi 5 ethernet settings on this thread.

I think they have been posted a few pages back by someone else, nevertheless the following wider context may be helpful.

As an aside, my RPi 5 and Mesa setup has worked perfectly since the ethernet issue (below) was fixed.

================================================================
The following is copied from another thread.
================================================================

I ran my RPi 5 and 7i96s overnight and completed 40 million pings with zero errors.

sudo chrt 99 ping -i .001 10.10.10.10 -c 40000000

At the same time in the background, I ran Latency Histogram and two Glxgears. I have attached photos in case anybody is interested in seeing the results.

I’m not sure what to make of the maximum ping time of just over 10 ms.

It seems that "hardware-irq-coalesce-rx-usecs 0" has fixed the issues I was having (aside from the 10 ms issue) at least on RPi 5 * GB with LinuxCNC 2.9.2.

======================================

What is this "coalesce" thing?

Interrupt coalesce settings ( access.redhat.com/documentation/en-us/re...ing_networking/index )

"By using interrupt coalescing, the system collects network packets and generates a single interrupt for multiple packets. This increases the amount of data sent to the kernel with one hardware interrupt, which reduces the interrupt load, and maximizes the throughput."

=====================================
My /etc/network/interfaces looks like this:
=====================================

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.10.10.11
hardware-irq-coalesce-rx-usecs 0

=========================== 
  • NT4Boy
  • NT4Boy
Today 18:29 - Today 18:30
Replied by NT4Boy on topic HURCO KMB-1 Control Update

HURCO KMB-1 Control Update

Category: Milling Machines

I understand that for Orient to work, you need two PIDs and a MUX to switch the PID output from Velocity to Position.
I think some of it works for instance the Spindle will fire up with and M3 command and in HalShow the MUX2 light goes from red to yellow, and back to RED with M5.
However M19 R90 registers in the pid.so.angle but doesn't move the spindle. 

Could another pair of eyes look at the attached please.
Thanks

 

File Attachment:

File Name: Hurco_7i92...1-30.ini
File Size:4 KB

File Attachment:

File Name: spindlecontrol.hal
File Size:4 KB
  • MaHa
  • MaHa
Today 17:55
Replied by MaHa on topic Strange preview for circular arc (G2/G3)

Strange preview for circular arc (G2/G3)

Category: G&M Codes

This toolpath is at centerpoint, so don't forget cuttercompensation. If G41/ / G42 makes trouble, whats not unusual, it can be solved like that. Parameter #5410 is tooldiameter of loaded tool. 
G0 X-[52.5 - [#5410 / 2]] Y0 Z0
F1000
G2 I[52.5 - [#5410 / 2]] J0 Z-10 P5
 
  • Finngineering
  • Finngineering
Today 17:34 - Today 17:34
Replied by Finngineering on topic Strange preview for circular arc (G2/G3)

Strange preview for circular arc (G2/G3)

Category: G&M Codes

Yes, helix milling was the end goal. But I was trying to build the program as simple as possible to start with, because I have little experience with anything else than G0/G1. But I got stuck because the preview did not show what I expected for an in-plane (XY) circle.

Thank you for the explanation and test you provided!
  • meister
  • meister
Today 17:31
Remote - Camera - Touch - MPG was created by meister

Remote - Camera - Touch - MPG

Category: Other User Interfaces

Cam -> Raspberry PI3 -> 7Inch Touchscreen -> TCP -> WIFI -> LinuxCNC

www.youtube.com/shorts/sAEmJ-vLgHY
 
  • Hakan
  • Hakan
Today 17:28 - Today 17:29

Stepperonline Y series/ YAKO YKD2608PE configuration

Category: EtherCAT

The output of the command "lcec_configgen" is usually a good starting point.
  • MaHa
  • MaHa
Today 17:14
Replied by MaHa on topic Strange preview for circular arc (G2/G3)

Strange preview for circular arc (G2/G3)

Category: G&M Codes

Just in case you want helix milling, you need to set z value for start and end. P is the amount of turns, if z-10 P5, it could look like that, pitch 2
G0 X-52.5 Y0 Z0
F1000
G2 I52.5 J0 Z-10 P5


 


 
  • Finngineering
  • Finngineering
Today 16:27
Replied by Finngineering on topic Strange preview for circular arc (G2/G3)

Strange preview for circular arc (G2/G3)

Category: G&M Codes

The complete code was visible in the screenshot, but for clarity I include it here:
G17

F500
G2 I52.5 J0 P1

M2

I made a new test with the code you used, and for that the preview is working properly. But if I comment out the G0 move, then the preview is again strange. See the two situations below.
 
 

The complete code, with G0 commented out is below:
G17 G21 G40 G43H0 G54 G64P0.005 G80 G90 G94

(G0 X-52.5 Y0)
F1000
G2 I52.5 J0 P1

M2

Maybe this is expected behavior? It certainly wasn't what I expected, but that doesn't mean much. I use LinuxCNC 2.9.2 by the way.

Thank you for having a look. With that the issue is now pinpointed.
  • dcsilvias13
  • dcsilvias13
Today 15:22
Replied by dcsilvias13 on topic Ethercat Leadshine L6N Gantry XYYZ Config

Ethercat Leadshine L6N Gantry XYYZ Config

Category: EtherCAT

I am pretty sure I didn't make any changes to the .coreDC file.  What troubles are you running into? Ill post it anyway in case I did.

File Attachment:

File Name: coreDC.hal
File Size:2 KB
Displaying 1 - 15 out of 19786 results.
Time to create page: 0.248 seconds
Powered by Kunena Forum