Good morning Andy!
I added the enable signal to my "3rd axis" and now the 4th axis is alive:
Code:
setp stepgen.3.position-scale [AXIS_3]SCALE
setp stepgen.3.steplen 1
setp stepgen.3.stepspace 1
setp stepgen.3.dirhold 27000
setp stepgen.3.dirsetup 27000
setp stepgen.3.maxaccel [AXIS_3]STEPGEN_MAXACCEL
net apos-cmd axis.3.motor-pos-cmd => stepgen.3.position-cmd
net apos-fb stepgen.3.position-fb => axis.3.motor-pos-fb
######################################################################
net aenable axis.3.amp-enable-out => stepgen.3.enable stepgen.4.enable
######################################################################
###########################################
setp stepgen.4.position-scale [AXIS_4]SCALE
setp stepgen.4.steplen 1
setp stepgen.4.stepspace 1
setp stepgen.4.dirhold 27000
setp stepgen.4.dirsetup 27000
setp stepgen.4.maxaccel [AXIS_4]STEPGEN_MAXACCEL
net a-vel-cmd motion.analog-out-00 => stepgen.4.velocity-cmd
############################################################
I have another one problem to resolve,
I type the following command in the MDI windows:
1- M64 P0, active the speed mode
2- M68 E0 Q2000,command the speed value to the axis
3- M65 P0, I turn off the axis and switch to the position mode
4- M64 P0, I active again the speed mode, and the stepping motor suddenly and always stall
5- Anytime I type (debug, #5399) the answer is 0
6- At this point any other Q value of M68 I write on the MDI does not change the speed of the motor that remains blocked, to restore all this I have to restart my Linuxcnc