On 8/28/24 06:58, Viesturs Lācis wrote:
Hello!
I have lately been posting questions that arise as I am doing
retrofits of two Biesse cnc machines. Mesa card setup is identical -
5i24 boards accompanied with 7i48 for encoder reading and analog
voltage for Yaskawa servodrives (analog signal only for those that are
working, encoder reading for all of them) and 7i37 for i/o that is
inside control cabinet and 7i44 for 8i20 drives and 7i70/7i71 for i/o
that is on the machine frame.
This time the issue is with encoder signal reading. First machine was
all fine - I just connected to 7i48 the cable that was originally used
to feed encoder position from servo drives to cnc controls. Encoder
output from all 3 drives is correctly counted by 7i48.
I have a problem with second machine - encoder pulses from Y axis
drive do not reflect in encoder.01.rawcounts value. I have spent last
3 days trying to figure it out (X, Z and C axis encoder values are
read correctly and all is good). I was checking the voltages of servo
drive output pins and also cables. Somehow figured out that I should
swap cables between X and Y servo drives - problem moved with the
cable - so ok, servodrive output is good. Started testing all the
leads with multimeter for continuity and if they are shorted to any
other of the leads. No good. Resoldered all the connection points to
make sure that there are no cold joints, even soldered the cable right
onto servodrive connector pins. Nothing helped. This morning I somehow
thought of swapping the cables on 7i48 board and voilaaa - the same
cable on encoder.00 input is good, but on encoder.01 input does not
change rawcounts value. So I have ended up with this:
Moving the plug across all encoder inputs on 7i48 board shows that
encoder.00, encoder.02 and encoder.03 are good, while encoder.01,
encoder.04 and encoder.05 do not change rawcounts value as the motor
is moved (by hand).
What am I missing here?
I have CONFIG="num_encoders=6 num_pwmgens=6 num_stepgens=0" in INI file.
And for all encoder modules I have these lines:
setp hm2_[HOSTMOT2](BOARD).0.encoder.01.counter-mode 0
setp hm2_[HOSTMOT2](BOARD).0.encoder.01.filter 1
setp hm2_[HOSTMOT2](BOARD).0.encoder.01.index-invert 0
setp hm2_[HOSTMOT2](BOARD).0.encoder.01.index-mask 0
setp hm2_[HOSTMOT2](BOARD).0.encoder.01.index-mask-invert 0
I have attached INI and HAL files
Viesturs
Two possible scenarios Viesturs. 1, and quite common in my experience is
bad crimping on db25 cables. If its suspect recrimp it, if that fixes
it, make a new one, the recrimp might work a week, just long enough you
forget it.
2, glacially slow, deteriorated opto's in the breakout cards. I've had
to bypass those several times. They are slow anyway but some are really
slow. moisture from the environments humidity can really screw some
types of them up, 5 years after you built it.
There may be other problems, but those are the one I remember.
Take care & stay well.
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users