MaxNC T2 lathe

More
03 Nov 2010 19:28 #5064 by yugami
Replied by yugami on topic Re:MaxNC T2 lathe
I don't currently have a photo, but that will be easy enough to get tonight.

It has 3 or 4 PIC 16F84A chips as the brains.

The Steppers have encoders on the back and the encoders plug into the drive next to the motor plug.

Please Log in or Create an account to join the conversation.

More
03 Nov 2010 21:13 #5067 by andypugh
Replied by andypugh on topic Re:MaxNC T2 lathe
yugami wrote:

It has 3 or 4 PIC 16F84A chips as the brains.
The Steppers have encoders on the back and the encoders plug into the drive next to the motor plug.

I have to say, that doesn't sound all that promising.

Do you have the original software ?
You could, possibly, watch what comes out of the parallel port when running that. You would need to use an oscilloscope, but Halscope (built in to EMC2) is perfect for scoping parallel port pins. I think with the EMC2 PC parallel port set to "input" mode you will even be able to scope them all at the same time.

Halscope is described here. You can start it from the halrun prompt as described in the link, or from the Machine menu in EMC2/Axis:
linuxcnc.org/docs/html/hal_tutorial.html...orial%20-%20Halscope
Parport in Input mode:
www.linuxcnc.org/docview/html/hal_drivers.html

EMC2 can definitely drive your lathe, but I can only be confident about that because EMC2 allows you to write your own hardware drivers. There is a definite question about how hard it will be.

Please Log in or Create an account to join the conversation.

More
04 Nov 2010 00:10 - 04 Nov 2010 00:15 #5070 by yugami
Replied by yugami on topic Re:MaxNC T2 lathe
Attached are the hal, ini and a pic of the driver circuit

I haven't touched the ini at all, and the hal is a little hacked in my attempts to apply some examples and google searches to it.

File Attachment:

File Name: maxnc_t2.hal
File Size:3 KB


The 3 longer chips are the PIC 16F84A's and the 4 near the top are SN7400N
Attachments:
Last edit: 04 Nov 2010 00:15 by yugami.

Please Log in or Create an account to join the conversation.

More
04 Nov 2010 00:12 - 04 Nov 2010 00:13 #5071 by yugami
Replied by yugami on topic Re:MaxNC T2 lathe
Ok, image and ini

File Attachment:

File Name: maxnc_t2.ini
File Size:2 KB
Attachments:
Last edit: 04 Nov 2010 00:13 by yugami. Reason: image file too large, edited

Please Log in or Create an account to join the conversation.

More
04 Nov 2010 00:52 #5072 by andypugh
Replied by andypugh on topic Re:MaxNC T2 lathe
yugami wrote:

the hal is a little hacked in my attempts to apply some examples and google searches to it.

. The hal looks OK, though I think your Google searches must have turned up some very out of date docs.

The sequence:
newsig xA bit
linkps stepgen.0.phase-A xA
newsig xB bit
linkps stepgen.0.phase-B xB

linksp xA parport.0.pin-08-out
linksp xB parport.0.pin-09-out

net xA <= stepgen.0.phase-A
net xB <= stepgen.0.phase-B

could be shrunk to:
net xA stepgen.0.phase-A => parport.0.pin-08-out
net xB stepgen.0.phase-B => parport.0.pin-09-out

As "net" automatically creates a signal of the right sort and links it to all the other items on the same line.

Are you sure that pin 17 needs to be held low?

The 3 longer chips are the PIC 16F84A's and the 4 near the top are SN7400N


I guess the nands are just buffers, but could be wrong.

Please Log in or Create an account to join the conversation.

More
04 Nov 2010 10:54 #5075 by yugami
Replied by yugami on topic Re:MaxNC T2 lathe
I'm not really sure of anything really. I read the intigrators manual a bit more last night and tried turning the pin on and on inverted. For some reason now the whine I was getting is gone, but i'm getting less response now.

I don't hav the original software, but do have an older o-scope I'll haul out and see what I can see coming out of the pics.

Please Log in or Create an account to join the conversation.

More
04 Nov 2010 11:23 #5076 by andypugh
Replied by andypugh on topic Re:MaxNC T2 lathe
I wonder how the power electronics is driven?
It is just possible that you might be able to pull out the PICs and take one of the 4-wire config stepgen outputs direct to the power stage.
(possibly a lot of work though).

It is entirely possible that the closed-loop MaxNC machines communicate position information with a serial protocol. Have you tried contacting them to see if they are willing to help?

Looking at the web site, it seems that a preconfigured laptop to drive the machines adds $300 to the price of a system. Depending on your priorities that might not be the worst option.

Please Log in or Create an account to join the conversation.

More
04 Nov 2010 15:06 - 04 Nov 2010 15:17 #5080 by yugami
Replied by yugami on topic Re:MaxNC T2 lathe
It just dawned on me but I have a pic programmer around here someplace. I may be able to pull the software if someone else knows how to read it.

The high pitch whine comes from hooking xenable to pin 17. If I turn pin 17 on manually or on inverted manually the motors make a little jerk then remain unresponsive to controls.

If the whine in happening I can feel small attempts at movement when I manually move the axis.

I should add I have removed the leadscrew from the motor so it doesn't have any load to worry about just now.

correct me if I'm wrong but HALScope will show me what is being output to the pin itself. Would it be useful for me to pull out my o-scope and look at whats going into the motor and or encoder wires themselves?

My scope has 2 inputs, and runs at 20 MHZ old green tube thing.
Last edit: 04 Nov 2010 15:17 by yugami. Reason: More Info

Please Log in or Create an account to join the conversation.

More
04 Nov 2010 21:56 - 04 Nov 2010 22:08 #5088 by yugami
Replied by yugami on topic Re:MaxNC T2 lathe
Looking at the circuit I found it was labeled MAXNC CL 10108B

Googling that gives this word document I'm now poking through for clues

ftp://machsupport.com/XMLs/Mach%203%20an...10%20Open%20Loop.doc

If you don't have Word google docs seems to open it fine.

This shows that pin 10 has to be "enabled" which I thought mean to peg the output high. However looking at hal_drivers documentation I see that it is an input pin.

Would hooking this up to a signal do what is required?
Last edit: 04 Nov 2010 22:08 by yugami. Reason: Little more info/question

Please Log in or Create an account to join the conversation.

More
04 Nov 2010 22:32 #5089 by andypugh
Replied by andypugh on topic Re:MaxNC T2 lathe
yugami wrote:

ftp://machsupport.com/XMLs/Mach%203%20an...10%20Open%20Loop.doc


That all looks quite promising.

This shows that pin 10 has to be "enabled" which I thought mean to peg the output high. However looking at hal_drivers documentation I see that it is an input pin. Would hooking this up to a signal do what is required?


No. it might be required for Mach to work (possibly) but the motor driver won't know. It might be interesting to watch that pin though.

In fact, have you tried manually toggling pins with the Parallel Port Tester?
wiki.linuxcnc.org/emcinfo.pl?Parallel_Port_Tester

it might be instructive.

Please Log in or Create an account to join the conversation.

Time to create page: 0.106 seconds
Powered by Kunena Forum