Hi,
I have a xyz machine with a single spindle. The machine uses Beckhoff AX5000 drives (no cia402).
@db1981 provided this solution using stepgen in the halfile:
loadrt stepgen step_type=0 ctrl_type=v
...
addf stepgen.capture-position servo-thread
addf stepgen.make-pulses servo-thread
addf stepgen.update-freq servo-thread
...
net spindle-enable spindle.0.on => lcec.0.17_AX5203.ch0.srv-enable => stepgen.0.enable
setp stepgen.0.position-scale 1 //adjust to your needs....
net spindle-speed-cmd spindle.0.speed-cmd-rps => stepgen.0.velocity-cmd
net spindle-freq stepgen.0.position-fb => lcec.0.17_AX5203.ch0.srv-pos-cmd
The common M3/M4/M5 commands work, but I'm struggling setting up spindle orientation/M19.
I've not figured out which pins have to be connected to get this up an running. Attached all "my" available pins....