It has been 10-12 or so years since I had worked as an EE. I switched careers and became a Pilot I never really looked back except for the occasional simple home electronics repair! Nothing requiring to much knowledge or engineering most the stuff is throwaway now days so cheaper to replace then purchase a component.
I have to say being out of it for so long wow things have moved leaps and bounds over the years!
So what has me returning? Hobby Reasons!
Back Story,
I got a Second hand CNC lathe and it has a Microkinetics Controller that has a Failure on one of the inputs software says unexpected limit swith closure on M2- limit switch. Contacted the company!! Yep! The company wants $300.00 for a new board ouch or $150.00 to see if they can repair it. They have no real tech support or documents on the unit unless you want to give them $150.00 for engineering service Ouch! A schematic would be helpful but not really needed. So this brings me to where I am at right now dusting off my tools from years of storage!
To me it is not worth $150.00 to have it repaired or 300.00 for a new one! As a new breakout board that will allow me to run full featured software LinuxCNC or Mach3 is a fraction of the cost. Their software Turnmaster Pro is rather limited with functions would be nice if they allowed you to select what axis uses what motor just in case a controller has an issue you could switch it to talk to another move a cable and have the machine running in a matter of min vs having it down for weeks on end waiting for repair or replacement parts.
From the message the error seems to be on the M2- Limit Switch Input.
So I traced the M2- limit circuit down. The m2- limit pin goes from the HD50 thru RP5 on pin 15 out Pin 3 thru an opto coupler U21 pin 4 outputs pin 14 thru RP4 to the Xilinx XC95108.
The passive components RP4,5, and the Optocoupler seem to be working as they should. When power is on the pin on the XC95108 is at 5V high when I hook up a limit switch and trip it the pin goes Low to ground as it should. I cross checked it with a known working circuit M1- Limit. So next step I guess since I No longer have a scope or logic analyzers so I have to use the tools I have.
I May have to see if Tektronix's local to me still has an outlet store for some low cost used equipment.
I will hook up a jtag possibly this weekend and see if I can toggle the pin on the xilinx to active high or see if it is low or figure out if something else is not working on the board causing it to go active low state in another circuit.
The Modern Jtag debugging software looks wonderful and simple to use and I cannot wait to give it a try. My friend another EE has been using topjatag for debugging and also said to try gojtag which is an open source debugging software but he said he has had limited use of it but should have some useful functions.
Anyone use gojtag software? Or recommend another software?
Photo of the board I am diagnosing is attached.
Info on the board can be found at Microkinetics MN400
http://www.microkinetics.com/index.php?page=mn400Glad to be a member of the forum and enjoy reading and learning of the technology a wealth of information! I have missed out on a lot over the years!
This project for sure brush off the rust from my skills it will be fun and educational for sure!
Thanks.