Advanced Search

Search Results (Searched for: )

  • reboots
  • reboots
04 Apr 2026 22:05
Replied by reboots on topic Spindle delay

Spindle delay

Category: Basic Configuration

I just wanted to register that this solved the same issue for me on 2.9.7. There are older solutions on the forum, for example " Automatic pause when spindle is started " from 2015, but they don't reflect current pin/signal names. Modified default spindle control HAL section below, two lines commented out and six more required.
# ---setup spindle control signals---

net spindle-vel-cmd-rps        <=  spindle.0.speed-out-rps
net spindle-vel-cmd-rps-abs    <=  spindle.0.speed-out-rps-abs
net spindle-vel-cmd-rpm        <=  spindle.0.speed-out
net spindle-vel-cmd-rpm-abs    <=  spindle.0.speed-out-abs
net spindle-enable             <=  spindle.0.on
net spindle-cw                 <=  spindle.0.forward
net spindle-ccw                <=  spindle.0.reverse
net spindle-brake              <=  spindle.0.brake
net spindle-revs               =>  spindle.0.revs
##net spindle-at-speed           =>  spindle.0.at-speed
net spindle-vel-fb-rps         =>  spindle.0.speed-in
net spindle-index-enable      <=>  spindle.0.index-enable

# ---Setup spindle at speed signals---

##sets spindle-at-speed true

# 5-second spindle ramp delay
loadrt timedelay count=1
addf timedelay.0 servo-thread
setp timedelay.0.on-delay 5
net spindle-enable => timedelay.0.in
net spindle-timer <= timedelay.0.out
net spindle-timer => spindle.0.at-speed

My spindle VFD is connected as follows for simple "run" operation with no feedback:
net spindle-enable  =>     hm2_5i25.0.7i77.0.0.output-00
  • backyardengineer
  • backyardengineer
04 Apr 2026 21:49
Replied by backyardengineer on topic Closed loop - encoder/position not updating while moving

Closed loop - encoder/position not updating while moving

Category: HAL

Hi, just wanted to give an update. The problem was annoyingly trivial: The chinese board was faulty.... They are of astonishingly poor quality. I ordered two to new ones, one came already dead, they soldered the diode (on the 24v input) in the wrong way. Anyway thank you for troubleshooting with me. All the best, Marc
  • rodw
  • rodw's Avatar
04 Apr 2026 21:48
Replied by rodw on topic LinuxCNC S-Curve Accelerations

LinuxCNC S-Curve Accelerations

Category: General LinuxCNC Questions

All this talk about exact stop mode and angles to me seems to be an academic exercise in mathematics. In the real world it can be solved by simply sacking the part designer. A few minutes at the design phase to account for the physical constraints of the manufacturing process can save many hours of work on the shop floor. This does not just apply to the machining world, there are many other work environments where this rule applies. In my case, it applied in the printing industry and I made sure wherever possible my graphic artists designed for our capabilities.

Reject the design, and send it back for rework would solve most issues when this hits the real world...
 
  • andypugh
  • andypugh's Avatar
04 Apr 2026 21:23
Replied by andypugh on topic Pico Systems Servo Controller

Pico Systems Servo Controller

Category: User Exchange

I have a need for some Pico hardware to validate some updates to the driver (github.com/LinuxCNC/linuxcnc/issues/2331)

Could I persuade you to send the cards to the UK (and maybe reduce the price even more, as this is for the project, not for me, and the project has exactly zero money)
  • spumco
  • spumco
04 Apr 2026 21:02
Replied by spumco on topic CSS/G96 for other than X-axis?

CSS/G96 for other than X-axis?

Category: Advanced Configuration

Sounds correct. Famous last words :)

Yea, that was backwards

Makes sense in hindsight: I want the V-DRO to move at twice the speed of the joint, not half.

But everything's working now: switchkins, subspindle synch to main with CSS and the parting slide programmed as "X".

I couldn't compress a GIF small enough to embed, but I've attached a short video as a ZIP file.

parting_slide.comp and the four M-codes are all commented pretty heavily for future reference.

I think this is nearly the last hurdle on the DIY lathe.  Only big challenge I can think of is mounting tools for subspindle work.

Thanks again @Aciera, couldn't have done it without you.
  • andypugh
  • andypugh's Avatar
04 Apr 2026 20:09
Replied by andypugh on topic New update on STMBL

New update on STMBL

Category: Driver Boards

I suspect that the problem is getting hold of the actual hardware?
  • tommylight
  • tommylight's Avatar
04 Apr 2026 20:04
Replied by tommylight on topic Ethercat random jitter fix

Ethercat random jitter fix

Category: EtherCAT

 
I saw at my own eyes synchronization of 120 seconds with beckhoff SoE AX5125 driver with older firmware ... its not odd behaviour 

beckhoff IPCs have sometime very similar behaviour with their own hardware from my close experiences...

[/quote]
The more i read here about ethercat = the less i like it.
Thank you for pointing out the quirks, not only the good stuff.
  • andypugh
  • andypugh's Avatar
04 Apr 2026 19:46
Replied by andypugh on topic RRW Lab SPI with raspberry pi 5

RRW Lab SPI with raspberry pi 5

Category: Driver Boards

I tried Googling the RRW lab board and all found was this thread.

Can you link to a product page or give is more to go on?

Do you have a driver for it?
  • endian
  • endian's Avatar
04 Apr 2026 19:08
Replied by endian on topic Ethercat random jitter fix

Ethercat random jitter fix

Category: EtherCAT

Synchronization of slave clocks can sometimes take a long time at start.
There is a warning in syslog if it takes more than 5 seconds, or is it 30?
Don't know how to fix it, more than hope the slaves' clocks run more equal
when not being nudged by the master.
Add pll-err to the halscope plot. 
 

I saw at my own eyes synchronization of 120 seconds with beckhoff SoE AX5125 driver with older firmware ... its not odd behaviour 

beckhoff IPCs have sometime very similar behaviour with their own hardware from my close experiences...
  • endian
  • endian's Avatar
04 Apr 2026 18:52 - 04 Apr 2026 19:03
Replied by endian on topic AX5201 does not change to SAFEOP / OP

AX5201 does not change to SAFEOP / OP

Category: EtherCAT

hi there,

if you do not want to change timing in the TC3 to 1ms (easiest way and no play to errors) then change -
<EtherCATMailbox>
<script id="eppiocemhmnlbhjplcgkofciiegomcon"/>
<script/>
<script/>
<SoE>
<InitCmds>
<InitCmd>
<Transition>PS</Transition>
<Comment>
<![CDATA[ Tncyc - NC cycle time ]]>
</Comment>
<Timeout>0</Timeout>
<OpCode>3</OpCode>
<DriveNo>0</DriveNo>
<IDN>1</IDN>
<Elements>64</Elements>
<Attribute>0</Attribute>
<Data>d007</Data>                      to                  <Data>e803</Data>
</InitCmd>
<InitCmd>
<Transition>PS</Transition>
<Comment>
<![CDATA[ Tscyc - Comm cycle time ]]>
</Comment>
<Timeout>0</Timeout>
<OpCode>3</OpCode>
<DriveNo>0</DriveNo>
<IDN>2</IDN>
<Elements>64</Elements>
<Attribute>0</Attribute>
<Data>d007</Data>                      to                  <Data>e803</Data>
</InitCmd>

and in ethercat conf xml change -
<masters>
<script id="eppiocemhmnlbhjplcgkofciiegomcon"/>
<script/>
<script/>
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="-1">

and in .ini file change - 
[TASK]
TASK                    = milltask
#CYCLE_TIME              = 0.002
CYCLE_TIME = 0.001

[EMCMOT]
EMCMOT                  = motmod
COMM_TIMEOUT            = 1.0
BASE_PERIOD             = 0
#SERVO_PERIOD            = 2000000
SERVO_PERIOD = 1000000


check cabling CAT5e with shielding ... its pretty sensitive stuff

check if you have non generic driver ... it has to be native NIC driver at network card with EoE turned off => very important

set time of task in TC3 to 1ms and export it ... 

connect just and only AX5201 to ethercat master... export config and translate it (problem isolation)

change 0x0740 to 0x0730 ... timing have to be correct because it is direct timing extraction from beckhoff master and exported to our shape ... 
  • Aciera
  • Aciera's Avatar
04 Apr 2026 18:35
Replied by Aciera on topic CSS/G96 for other than X-axis?

CSS/G96 for other than X-axis?

Category: Advanced Configuration


Just so Im clear, the pos->v = 2*j[2];function results in the V-axis moving twice the distance of JOINT_2?

And the reverse forj[2] =0.5* pos->v;in the Inverse section?

yes, the dro readout for V will show the double of the joint_2 position or, in other words, joint_2 will move half the commanded V axis position.


Don't adjust the case 1 X-axis/joint_2 relationship, because X-axis will move at half-distance when in diameter mode.
DO adjust the case 1 V-axis/joint_0 relationship, because LCNC doesn't have a diameter mode for any axis other than X.

Sounds correct. Famous last words :)
  • spumco
  • spumco
04 Apr 2026 18:08
Replied by spumco on topic CSS/G96 for other than X-axis?

CSS/G96 for other than X-axis?

Category: Advanced Configuration

Well that's a clever idea.

Just so Im clear, the pos->v = 2*j[2];function results in the V-axis moving twice the distance of JOINT_2?

And the reverse forj[2] =0.5* pos->v;in the Inverse section?

Which means in case 1 I'd want to adjust the X-axis:pos->tran.x = 2*j[2];So the X-axis moves the correct distance when connected to the parting slide joint?


Which means I can adjust the INI stepgen position scale so it's not cut in half, and then adjust both case 0 and case 1 so the V-axis moves half the distance (diameter mode).

case 0:
            pos->tran.x = j[0];
            pos->tran.z = j[1];
            pos->v        = 0.5*j[2];
            break;
        case 1:
            pos->tran.x = j[2];
            pos->tran.z = j[1];
            pos->v        = 0.5*j[0];
            break;
  • Don't adjust the case 1 X-axis/joint_2 relationship, because X-axis will move at half-distance when in diameter mode.
  • DO adjust the case 1 V-axis/joint_0 relationship, because LCNC doesn't have a diameter mode for any axis other than X.

Make sense, or have I got something wrong?
  • Aciera
  • Aciera's Avatar
04 Apr 2026 17:38 - 04 Apr 2026 17:41
Replied by Aciera on topic CSS/G96 for other than X-axis?

CSS/G96 for other than X-axis?

Category: Advanced Configuration

You could also try to create V-axis/joint3 diameter mode in the kinematics component.
Using the initial example with V-axis/joint2:

Forward:
case 0:
pos->tran.x = j[0];
pos->tran.z = j[1];
pos->v = 2*j[2];
break;
case 1:
pos->tran.x = j[2];
pos->tran.z = j[1];
pos->v = 2*j[0];
break;

Inverse:
switch (switchkins_type) {
case 0:
j[0] = pos->tran.x;
j[1] = pos->tran.z;
j[2] = 0.5* pos->v;
break;
case 1:
j[2] = pos->tran.x;
j[1] = pos->tran.z;
j[0] = 0.5*pos->v;
break;
}
  • endian
  • endian's Avatar
04 Apr 2026 17:32 - 04 Apr 2026 17:34
Replied by endian on topic LinuxCNC S-Curve Accelerations

LinuxCNC S-Curve Accelerations

Category: General LinuxCNC Questions

@PCW
Agreed that an ideal TP should always obey constraints, and the full stop fallback is the correct mechanism to achieve that. No argument there.
The question is whether strict enforcement should be mandatory or an integrator choice. A 20% jerk overshoot on a 1ms grid at a G1 corner is not an unknown uncontrolled violation, it is small, bounded, and predictable, and on drives with internal interpolation the mechanical system never sees it. That is a different situation from the uncontrolled external factors you are rightly warning about.
The practical concern is cycle time. On a complex CAM toolpath with many short segments, mandatory stops at every corner that fails the jerk test could multiply execution time significantly. That is a real regression for integrators who have matched their drive capabilities to their application.
So the proposal is: implement the jerk-aware full stop as an option, off by default to preserve existing behavior, and let integrators who need provably clean command streams or are running drives without internal interpolation opt in. That gives you the mathematically correct behavior when it is needed, without penalizing everyone else.
 

non budget drives always have more step filtering to suppress these behaviour... I think from differential calculus it is exactly that we need count with some limits of movememt caused by curving, jerk implementation fundamentally ...

it should be switchable from Gcode directly by user, who knows whats is doing... if the trajecotry tolerance is too high and velocity in that moment is non sensing plus path is small segmenting... some overlimit during small amount of time are acceptable(timing tolerance and spiking toleracne should be controlled by the user)

bending(trajectory) the tolerance - to handle this situation is non sense 
  • spumco
  • spumco
04 Apr 2026 17:08
Replied by spumco on topic CSS/G96 for other than X-axis?

CSS/G96 for other than X-axis?

Category: Advanced Configuration

So here's an interesting problem for anyone following along...

I cut the parting slide stepgen scale by half (JOINT_3) so the V-axis can be programmed in diameter mode.  When set like this jogging/MDI/g-code is just like X in diameter mode - very intuitive.

Getting ready to test G96 CSS and double-checking everything - set G54 offsets, etc.  I enable switchkins and everything's fine...

But now the virtual X parting slide is only moving half the distance it should.  DRO is following the movement - it's moving at half the distance it should as well.

Ok, got it - I've got the scale cut in half, and LCNC is cutting that in half again when I switch the kinematics and am commanding an X move.

Easy solution: change the JOINT_3 scale back to full-distance value when switchkins is active.  But...

LCNC instantly throws a JOINT_3 following error when the scale switches.  Bugger.

I can double the V-axis/JOINT_3 scale and fiddle with the jog values, but that will still leave the V-axis G54 offset wonky.  I write the V-axis offset to the X-axis when switchkins is enabled (along with max/min limits) so the parting slide tool-tip at centerline can be set to "X0" for CSS.

How can I have my cake and eat it, too?
  • V-axis/JOINT_3 to be in diameter mode when switchkins is not enabled, and
  • X-axis/JOINT_3 to be in diameter mode when switchkins is enabled
  • No following error when enabling switchkins
  • All programming in G7 mode - switching back and forth between G7/G8 is going to cause my brain to hurt and a crash.
Displaying 76 - 90 out of 17386 results.
Time to create page: 0.301 seconds
Powered by Kunena Forum