Mesa 5i25 config for chinese BOB

More
28 Nov 2015 13:17 - 28 Nov 2015 13:17 #65936 by andypugh
Replied by andypugh on topic Mesa 5i25 config for chinese BOB
Looking at the options in the standard bitfiles (using grep on the .pin files actually)

5i25_dmmbob1x2.bit is close:
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 a quadrature encoder counter on pins 11.12.13 but you can set num_encoders to zero and then those are normal IO.
Also, the step and dir channels are reversed, but that may not be a problem if you are using the screw terminals, just swap the wires.

dmmbob1x2.bit does seem to be the only standard bitfile with a PWM on pin 1. Are you using the pwm to control spindle speed?
Last edit: 28 Nov 2015 13:17 by andypugh.

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

More
28 Nov 2015 16:08 #65953 by cncbasher
Replied by cncbasher on topic Mesa 5i25 config for chinese BOB
please check these pinouts
and do you need both 5i25 sockets setting the same or only the external db25
-- I/O 00 PIN 1 Spindle DAC PWM
-- I/O 01 PIN 14 Output 2 just GPIO
-- I/O 02 PIN 2 X Step
-- I/O 03 PIN 15 just GPIO
-- I/O 04 PIN 3 X Dir
-- I/O 05 PIN 16 B Step
-- I/O 06 PIN 4 Y Step
-- I/O 07 PIN 17 B Dir
-- I/O 08 PIN 5 Y Dir
-- I/O 09 PIN 6 Z Step
-- I/O 10 PIN 7 Z Dir
-- I/O 11 PIN 8 A Step
-- I/O 12 PIN 9 A Dir
-- I/O 13 PIN 10 Input 4 just GPIO
-- I/O 14 PIN 11 Input 2 (Quad A)
-- I/O 15 PIN 12 Input 3 (Quad B)
-- I/O 16 PIN 13 Input 4 (Quad Idx)

the quadrature pins are available for gpio if not used , so left that as an option

can anyone see a problem , before i make the file ?

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

More
09 Apr 2016 17:23 - 09 Apr 2016 17:25 #73006 by G0G53Z148
Replied by G0G53Z148 on topic Mesa 5i25 config for chinese BOB
Thank you all for help

a cute Forummember helps me to fit the 5i25 to Benezan bob and chinese bob too
THANK YOU Sarah

take a look

and here

i will come back sone to look for further help in an Kinematic Problem

Thank you and have a nice day
ROL
Last edit: 09 Apr 2016 17:25 by G0G53Z148.

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

More
11 Apr 2016 11:16 #73093 by cncbasher
Replied by cncbasher on topic Mesa 5i25 config for chinese BOB
your welcome !

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

More
16 Apr 2016 17:39 - 16 Apr 2016 17:54 #73414 by pacman13b
Replied by pacman13b on topic Mesa 5i25 config for chinese BOB
Hello to all, I have an identical chineese BOB board that I am running with linuxCNC for over a year now.
i just purchased a mesa 5i25 pci card so I can boost my system up a bit. I can't understand how to setup up the pci 5i25 for the correct
pinouts.

I flashed the 5i25 like this
# sudo mesaflash --device 5i25 --write 5i25_dmmbob1x2.bit
# sudo mesaflash --device 5i25 --readhmid > mypinout-bob.txt

so do I hook the bob with a 1-1 parallel port cable to the 5i25 and I am ready to go or do I need to do some more flashing or the HAL ini file to suite my needs. I am a little confused. Thank you ALL.
Attachments:
Last edit: 16 Apr 2016 17:54 by pacman13b. Reason: adding an extra file

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

More
16 Apr 2016 17:44 #73415 by andypugh
Replied by andypugh on topic Mesa 5i25 config for chinese BOB

so do I hook the bob with a 1-1 parallel port cable to the 5i25 and I am ready to go or do I need to do some more flashing or the HAL ini file to suite my needs.


You need to change the HAL a bit.

Mainly you need to change the references in the HAL from "stepgen,N.position-cmd" to "hm2_5i25.0.stepgen.N.position-cmd" and the same for the feedback equivalents.

Any mention of the parport has to go. You can probably get rid of the base-thread too.

It is actually probably best to start a new config using pncconf with all the settings the same as your stepconf parallel port config.
The following user(s) said Thank You: pacman13b

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

More
16 Apr 2016 18:00 #73416 by pacman13b
Replied by pacman13b on topic Mesa 5i25 config for chinese BOB
I'll give pncconf a try but I am still confused!! I give it a try and post back

Thanks...

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

More
16 Apr 2016 19:23 #73421 by pacman13b
Replied by pacman13b on topic Mesa 5i25 config for chinese BOB
No go. :( :( I tried almost everything with pncconf.

I need the following parallel port pins configured ...
pins 2,4,6,8 step - x,y,z,a
pins 3,5,7,9 dir - x,y,z,a
pin 10 estop
pin 11 probe input
pin 12 home x
pin 13 home y
pin 15 home z

pin 14 - enable drives
pin 16 collant on
pin 17 spindle on

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

More
16 Apr 2016 19:42 #73423 by andypugh
Replied by andypugh on topic Mesa 5i25 config for chinese BOB

No go. :( :( I tried almost everything with pncconf.


What fails to work?

I need the following parallel port pins configured ...
pins 2,4,6,8 step - x,y,z,a
pins 3,5,7,9 dir - x,y,z,a
pin 10 estop
pin 11 probe input
pin 12 home x
pin 13 home y
pin 15 home z
pin 14 - enable drives
pin 16 collant on
pin 17 spindle on


dmmbob.bit looks like this:

-- I/O 00 PIN 1 Spindle DAC PWM
-- I/O 02 PIN 2 X Dir
-- I/O 04 PIN 3 X Step
-- I/O 06 PIN 4 Y Dir
-- I/O 08 PIN 5 Y Step
-- I/O 09 PIN 6 Z Dir
-- I/O 10 PIN 7 Z Step
-- I/O 11 PIN 8 A Dir
-- I/O 12 PIN 9 A Step
-- I/O 13 PIN 10 Input 1 just GPIO
-- I/O 14 PIN 11 Input 2 (Quad A)
-- I/O 15 PIN 12 Input 3 (Quad B)
-- I/O 16 PIN 13 Input 4 (Quad Idx)
-- I/O 01 PIN 14 just GPIO
-- I/O 03 PIN 15 just GPIO
-- I/O 05 PIN 16 just GPIO
-- I/O 07 PIN 17 just GPIO

So if you can't swap the step and dir wires (as a minimum) then you will need to find a different bit file to flash the 5i25 with.

Why did you choose dmmbob.bit?

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

More
16 Apr 2016 19:59 #73425 by pacman13b
Replied by pacman13b on topic Mesa 5i25 config for chinese BOB
what other file can I flash to get close to what I need for the above setup??

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

Moderators: PCWjmelson
Time to create page: 0.152 seconds
Powered by Kunena Forum