Mesa 5i25 and 7i76 and encoder
27 Sep 2016 12:31 #80989
by PCW
Replied by PCW on topic Mesa 5i25 and 7i76 and encoder
With your pncconf version, It looks like the encoder scale is set directly in the hal file
# ---Encoder feedback signals/setup---
Here is where the spindle encoder is set up:
setp hm2_5i25.0.encoder.00.counter-mode 1
setp hm2_5i25.0.encoder.00.filter 1
setp hm2_5i25.0.encoder.00.index-invert 0
setp hm2_5i25.0.encoder.00.index-mask 0
setp hm2_5i25.0.encoder.00.index-mask-invert 0
setp hm2_5i25.0.encoder.00.scale 100
Its setup up for a single (A only) 100 line encoder, is this correct?
(a 'A' only encoder can be used for threading but not rigid tapping)
(if you have both A and B you should set the encoder scale to 400 and counter mode to 0)
I just tested a current pncconf version and it does use an ini variable (encoder scale)
# ---Encoder feedback signals/setup---
setp hm2_5i25.0.encoder.00.counter-mode 0
setp hm2_5i25.0.encoder.00.filter 1
setp hm2_5i25.0.encoder.00.index-invert 0
setp hm2_5i25.0.encoder.00.index-mask 0
setp hm2_5i25.0.encoder.00.index-mask-invert 0
setp hm2_5i25.0.encoder.00.scale [SPINDLE_9]ENCODER_SCALE
INI file spindle section:
#********************
# Spindle
#********************
[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 = 2000.0
ENCODER_SCALE = 400.0
# ---Encoder feedback signals/setup---
Here is where the spindle encoder is set up:
setp hm2_5i25.0.encoder.00.counter-mode 1
setp hm2_5i25.0.encoder.00.filter 1
setp hm2_5i25.0.encoder.00.index-invert 0
setp hm2_5i25.0.encoder.00.index-mask 0
setp hm2_5i25.0.encoder.00.index-mask-invert 0
setp hm2_5i25.0.encoder.00.scale 100
Its setup up for a single (A only) 100 line encoder, is this correct?
(a 'A' only encoder can be used for threading but not rigid tapping)
(if you have both A and B you should set the encoder scale to 400 and counter mode to 0)
I just tested a current pncconf version and it does use an ini variable (encoder scale)
# ---Encoder feedback signals/setup---
setp hm2_5i25.0.encoder.00.counter-mode 0
setp hm2_5i25.0.encoder.00.filter 1
setp hm2_5i25.0.encoder.00.index-invert 0
setp hm2_5i25.0.encoder.00.index-mask 0
setp hm2_5i25.0.encoder.00.index-mask-invert 0
setp hm2_5i25.0.encoder.00.scale [SPINDLE_9]ENCODER_SCALE
INI file spindle section:
#********************
# Spindle
#********************
[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 = 2000.0
ENCODER_SCALE = 400.0
Please Log in or Create an account to join the conversation.
Time to create page: 0.085 seconds