You are kind of out of the ethercat swamp now. It's now all linuxcnc and hal
to set up the spindle.
You will need to know what the spindle expects as input (read the manual)
and what input you need to give to the ethercat unit to produce that (read that manual).
The example here uses the pwmgen component, ethercat does that now so you won't need that.
linuxcnc.org/docs/html/examples/spindle.html
You have the speed in spindle.0.speed-out, you should connect that to the duty cycle but you almost certainly
need to scale the rpms to the duty cycle number. Check example 1 in the doc above how to use the scale component
for that. So you will have the spindle rpm going in to the scale component and the output from
the scale component going to the lcec.0.0.DUTY-OUT-0 pin.
Set the frequency to the spindle's preferred frequency like 1500 (don't know, check manual)
Code:
setp lcec.0.0.PWM-OUT-0 1500
if that pin is for the frequency.