при запуск дает ошибка :
Код: Выделить всё
Print file information:
Debug file information:
.
./CT161Test.hal:460: parameter or pin 'scale.spindle.gain' not found
Код: Выделить всё
# Use ACTUAL spindle velocity from spindle encoder
# spindle-velocity bounces around so we filter it with lowpass
# spindle-velocity is signed so we use absolute component to remove sign
# ACTUAL velocity is in RPS not RPM so we scale it.
setp scale.spindle.gain 60
setp lowpass.spindle.gain 1.000000
net spindle-vel-fb-rps => scale.spindle.in
net spindle-fb-rpm scale.spindle.out => abs.spindle.in
net spindle-fb-rpm-abs abs.spindle.out => lowpass.spindle.in
net spindle-fb-rpm-abs-filtered lowpass.spindle.out Настройки шпинделя
Код: Выделить всё
[SPINDLE_9]
P = 0.0
I = 0.0
D = 0.0
FF0 = 1.0
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 3000.0
ENCODER_SCALE = 4096.0
OUTPUT_SCALE = 3000.0
OUTPUT_MIN_LIMIT = -3000.0
OUTPUT_MAX_LIMIT = 3000.0Код: Выделить всё
loadrt scale names=spindle
loadrt lowpass names=spindle
addf scale.spindle servo-thread
addf lowpass.spindle servo-thread
