Lapic error causing real time to stop.

More
20 Jan 2016 09:58 - 20 Jan 2016 09:59 #68803 by ArcEye
Now we know what we are dealing with, should be easier.

There are others far more knowledgeable on Mesa stuff than me, I'll leave them to discuss the merits of different boards.

The main thing is that a 5i25 is not a parport replacement in any literal sense, so it needs to be interfaced with your controller.
This could mean taking your controller apart and rewiring the DB25 IN socket, or keeping it intact and arranging interfacing in a non destructive way.
If you want to add extra hardware, this is the ideal time to do the whole lot in one go.

regards
Last edit: 20 Jan 2016 09:59 by ArcEye.

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

More
20 Jan 2016 10:22 #68804 by cncbasher
this is done , oz has the bit file , it is aligned to match the information i was given , re pinouts etc .
is the parallel port cable to the correct spec ?
or is there parts i'm not being told .

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

More
20 Jan 2016 10:50 - 20 Jan 2016 10:51 #68806 by andypugh

I think the problem is that you are connecting the 5i25 direct to the DB25 plug on the controller as if it was a parallel port.


With the right bitfile that is likely to be OK.



The only "special" pins are the stepgens and the spindle PWM (and potentially the watchdog, but I rather expect that that will work at 500Hz)

The DMM bitfiles are close, in that they have the step and dir pins the right way round.
If you don't already have it, you can download the files from:
www.mesanet.com/software/parallel/5i25.zip

If you extract the archive then you can look through the .pin files to find one that matches your driver.

5i25_dmmbob1x2.bit looks like this:
IO Connections for P3
Pin#  I/O   Pri. func    Sec. func       Chan      Pin func        Pin Dir

 1      0   IOPort       PWMGen           0        PWM             (Out)
14      1   IOPort       None
 2      2   IOPort       StepGen          0        Dir             (Out)
15      3   IOPort       None
 3      4   IOPort       StepGen          0        Step            (Out)
16      5   IOPort       None
 4      6   IOPort       StepGen          1        Dir             (Out)
17      7   IOPort       None
 5      8   IOPort       StepGen          1        Step            (Out)
 6      9   IOPort       StepGen          2        Dir             (Out)
 7     10   IOPort       StepGen          2        Step            (Out)
 8     11   IOPort       StepGen          3        Dir             (Out)
 9     12   IOPort       StepGen          3        Step            (Out)
10     13   IOPort       None
11     14   IOPort       QCount           0        Quad-A          (In)
12     15   IOPort       QCount           0        Quad-B          (In)
13     16   IOPort       QCount           0        Quad-IDX        (In)

It has spindle PWM on pin one and quadrature counters on pins 11/12/12 however if you set num_pwm to 0 and num_encoders to 0 then those pins become GPIO.

With a software-generated watchdog on pin 16 you should then be able to move the axes. Unfortunately you will almost certainly need a custom firmware to run the spindle as I have not been able to find a stepgen firmware with PWM on pin 17.
Attachments:
Last edit: 20 Jan 2016 10:51 by andypugh.

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

More
21 Jan 2016 10:20 #68871 by cncbasher
Things are becoming out of sync ? ,
also looking at the 5i25 file you appear to have removed the chargepump stepgen at some stage , so as the controller depends on this , it's not going to work , also after doing some digging Mach 3 appears to use a default 12.5Khz chargepump .
i say appear as i am unable to verify , so it's also possible as well as adding the chargepump back , the rate may need to be changed , as it was set at 1Khz . so a few more items in the pot to look into .

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

More
21 Jan 2016 11:04 #68874 by Ozcnc
The only other way of trouble shooting I could try is to somehow make up a different cable with the same configuration as a bit file that works.

It won't take to much time and I'll be able to do it on the weekend.

Its worth a try I just don't want to destroy my controller.

I didn't remove anything from the file, haven't figured out or attempted to compile custom firmware yet.

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

More
21 Jan 2016 12:37 #68876 by andypugh

haven't figured out or attempted to compile custom firmware yet.


I am completely confused now.

It sounds like Cncbasher has already sent you a bitfile with the right pinout. Is that correct or not?
Have you tried it?

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

More
21 Jan 2016 12:38 #68877 by cncbasher
i'm confused ?
you cant distroy the controller , but i do need to know what your trying to do .
you had so many problems to start with , but we sorted that , the last issue was the watchdog settings at 50% lower than what they should have been , causing the watchdog to bit , but that is not the chargepump for the controller , is this where you are becoming confused perhaps ?

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

More
21 Jan 2016 13:08 - 21 Jan 2016 13:10 #68878 by cncbasher
attached is the 5i25 config including the charge pump using stepgen 7 , and set for 10Khz
if anyone wants to check . along with the modified bit file to suit the controller

estop is looped for the time being
Attachments:
Last edit: 21 Jan 2016 13:10 by cncbasher.

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

More
21 Jan 2016 13:18 #68879 by andypugh
Does the bitfile have stepgen 7 on pin 16?
Which bitfile is being used?

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

More
21 Jan 2016 13:32 #68880 by cncbasher
yes stepgen 7 is on pin 16 Andy
custom bitfile is attached also , set up as per the controller inputs

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

Time to create page: 0.239 seconds
Powered by Kunena Forum