Re: [Emc-users] MESA 7i92H hiccup

2020-01-27 Thread Peter C. Wallace

On Mon, 27 Jan 2020, John Dammeyer wrote:


Date: Mon, 27 Jan 2020 14:02:12 -0800
From: John Dammeyer 
Reply-To: "Enhanced Machine Controller (EMC)"

To: "'Enhanced Machine Controller (EMC)'" 
Subject: Re: [Emc-users] MESA 7i92H hiccup


So I guess two questions.
1. If it happens again what type of diagnostics can I generate to see what

was happening under the covers.

2. Is there a way to clear it without opening up the cabinet and removing 5V

from the 7i92H (I guess a system power cycle would do that too without
opening the cabinet).


Thanks
John Dammeyer





My first guess would be a damaged I/O pin on the 7I92H (so marginal levels)



Peter Wallace
Mesa Electronics

Your suggesting mechanical?  Not some sort of odd glitch that might occur in 
firmware?


Yes, either electrical damage to the I/O or perhaps a mechanical 
(connector/wiring) issue


A firmware bug is unlikely since you are not getting a following error 
which means the hardware stepgen is getting the right commands and its position 
count is correct. The hardware past the stepgen position count to the 
step/dir outputs is pretty trivial so not much room for a bug there.




So if it happens again I'll put a scope on it.  It's also possible the cable 
from the 7i92H has issues and flexing it while cycling the power plug but 
things back.  But the cable into the 7i92H hasn't been removed for a while. 
It's always the DB-25 end into the BoB that's used.  But again could be cable.


In either case, is there a software way to reset it?


Yes, you can use mesaflash to do this:

mesaflash --device 7i92 --addr xx.xx.xx.xx --reset




I've got the bits and pieces to make a new cable that is the exact right length 
so I'll do that later this week.

Thanks
John Dammeyer



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] MESA 7i92H hiccup

2020-01-27 Thread John Dammeyer
> >>
> > Your suggesting mechanical?  Not some sort of odd glitch that might occur
> in
> > firmware?
> 
> Yes, either electrical damage to the I/O or perhaps a mechanical
> (connector/wiring) issue
> 
> A firmware bug is unlikely since you are not getting a following error
> which means the hardware stepgen is getting the right commands and its
> position
> count is correct. The hardware past the stepgen position count to the
> step/dir outputs is pretty trivial so not much room for a bug there.
> 
> >
> > So if it happens again I'll put a scope on it.  It's also possible the cable
> > from the 7i92H has issues and flexing it while cycling the power plug but
> > things back.  But the cable into the 7i92H hasn't been removed for a while.
> > It's always the DB-25 end into the BoB that's used.  But again could be
> cable.
> >
> > In either case, is there a software way to reset it?
> 
> Yes, you can use mesaflash to do this:
> 
> mesaflash --device 7i92 --addr xx.xx.xx.xx --reset
> 

Thanks.  I'll try that first if it happens again.  If it resets but doesn’t fix 
it we know it's mechanical/electrical.  But since pulling out of a pocket and 
then moving XY (but not actually moving) can break something I think I'll 
replace the cable anyway.  I'll check the input diodes too.  Likely not though. 
 I'd think they'd permanently cause problems.

I'll report back.
John Dammeyer






___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] MESA 7i92H hiccup

2020-01-27 Thread John Dammeyer
> > So I guess two questions.
> > 1. If it happens again what type of diagnostics can I generate to see what
> was happening under the covers.
> > 2. Is there a way to clear it without opening up the cabinet and removing 5V
> from the 7i92H (I guess a system power cycle would do that too without
> opening the cabinet).
> >
> > Thanks
> > John Dammeyer
> >
> 
> 
> 
> My first guess would be a damaged I/O pin on the 7I92H (so marginal levels)
> 
> 
> 
> Peter Wallace
> Mesa Electronics
> 
Your suggesting mechanical?  Not some sort of odd glitch that might occur in 
firmware?

So if it happens again I'll put a scope on it.  It's also possible the cable 
from the 7i92H has issues and flexing it while cycling the power plug but 
things back.  But the cable into the 7i92H hasn't been removed for a while.  
It's always the DB-25 end into the BoB that's used.  But again could be cable.

In either case, is there a software way to reset it?  

I've got the bits and pieces to make a new cable that is the exact right length 
so I'll do that later this week.

Thanks
John Dammeyer



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] MESA 7i92H hiccup

2020-01-27 Thread Peter C. Wallace



My first guess would be a damaged I/O pin on the 7I92H (so marginal levels)



BTW, a good way to check for I/O pin damage is to check the input protection 
diodes with an Ohmmeters diode check function (positive lead to ground, negative

lead  to I/O line)

All lines should show a consistent ~0.6V diode forward voltage drop

Most pin damage comes from mismatched ground levels which typically
overcurrent the input protection diodes.

Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] MESA 7i92H hiccup

2020-01-27 Thread Peter C. Wallace

On Mon, 27 Jan 2020, John Dammeyer wrote:


Date: Mon, 27 Jan 2020 12:27:31 -0800
From: John Dammeyer 
Reply-To: "Enhanced Machine Controller (EMC)"

To: "'Enhanced Machine Controller (EMC)'" 
Subject: [Emc-users] MESA 7i92H hiccup

Hi everyone,
Been working on my Spindle Control with the adaptor board to allow either PWM 
from PP DB25-14 and DB25-16 for Direction.  Or for MACH Step on DB25-14 instead 
of PWM by simply checking a different box.

I've had the PP version of LinuxCNC also running the step/dir out but it just 
can't step fast enough to give me the full 3000 RPM.

So today I disconnected the PP port cable.  Plugged power and Ethernet cable 
into the 7i92H and plugged it into the BoB DB-25.  Then ran the version of 
LinuxCNC config that used the 7i92H.

Homed.  No problem.  Spindle spins up/down and reverses with no problem.  Ran a 
small circle cutting G-Code program that lifts the tool about 1" out and then 
back down for the next level.  And suddenly half way through I lost Z motion.

Restarting LinuxCNC did nothing.  ESTOP OFF/ON did nothing and that removes all 
power from the motors.  The Z axis is a GECKO stepper motor run open loop and 
no fault signals to the system.  Truly move it and expect it to do it.  I did 
first suspect the GECKO but since the ESTOP removes power to it and then 
recovery puts power back it didn't appear to be the Gecko.

The final solution was to stop LinuxCNC, cycle power to the 7i92H by unplugging 
the external 5V and plugging it back in.  Wait a few seconds for Ethernet 
connectivity and then again run LinuxCNC with the MESA config folder.  The BoB 
power was never removed.

Now homing works.  Spindle works. Same G-Code made it all the way through.

I shouldn't have to cycle power to fix this.  Something as simple as an ESTOP 
should be able to generate a HAL command to the 7i92H driver that causes it to 
pretend a power cycle occurred.  Does this exist?

I've never had the Z axis vanish from the PP.  I think it's happened before 
with the 7i92H but I'm not sure.

So I guess two questions.
1. If it happens again what type of diagnostics can I generate to see what was 
happening under the covers.
2. Is there a way to clear it without opening up the cabinet and removing 5V 
from the 7i92H (I guess a system power cycle would do that too without opening 
the cabinet).

Thanks
John Dammeyer





My first guess would be a damaged I/O pin on the 7I92H (so marginal levels)



Peter Wallace
Mesa Electronics



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users