Thank's for the answer.
I have used linuxcnx → by_interface→parport →stepper →stepper_mm
I have modified the file standard_pinout.hal with
# standard pinout config file for 3-axis steppers
# using a parport for I/O
#
# first load the parport driver
#loadrt hal_parport cfg="0x0378"
# Pour les GPIO
#loadrt hal_pi_gpio dir=67108751 exclude=0
loadrt hal_pi_gpio dir=35390224 exclude=31718639
# next connect the parport functions to threads
# read inputs first
#addf parport.0.read base-thread 1
# Je fais la même chose pour les GPIO
addf hal_pi_gpio.read base-thread
# write outputs last
#addf parport.0.write base-thread -1
addf hal_pi_gpio.write base-thread
#
# finally connect physical pins to the signals
#net Xstep => parport.0.pin-03-out
#net Xdir => parport.0.pin-02-out
#net Ystep => parport.0.pin-05-out
#net Ydir => parport.0.pin-04-out
#net Zstep => parport.0.pin-07-out
#net Zdir => parport.0.pin-06-out
net Xstep => hal_pi_gpio.pin-23-out
net Xdir => hal_pi_gpio.pin-19-out
net Ystep => hal_pi_gpio.pin-13-out
net Ydir => hal_pi_gpio.pin-15-out
net Zstep => hal_pi_gpio.pin-38-out
net Zdir => hal_pi_gpio.pin-40-out
# create a signal for the estop loopback
# ça ne change pas
net estop-loop iocontrol.0.user-enable-out iocontrol.0.emc-enable-in
It seams to be easy to understand, except the first line
loadrt hal_pi_gpio dir=35390224 exclude=31718639
for this i used
forum.linuxcnc.org/18-computer/43353-rpi...tion?start=10#226664
to load
rpi-gpio_1.0_arm64.deb
rpi--gpio -> the pins i used -> Get HAl -> loadrt hal_pi_gpio dir=35390224 exclude=31718639
That's all. Everything works as I need.
Thank's again.
For information, with a fresh install, I have always latency warnings. With halrun or linuxcnc
Unexpected realtime delay on task 0 with period 50000
I have tried to find something. It always appear at the very beginning of a task, never again...
Cordially