On Sun, 23 Jun 2019, John Dammeyer wrote:
Date: Sun, 23 Jun 2019 14:17:21 -0700
From: John Dammeyer <[email protected]>
Reply-To: "Enhanced Machine Controller (EMC)"
<[email protected]>
To: "'Enhanced Machine Controller (EMC)'" <[email protected]>
Subject: Re: [Emc-users] Dual boot for WIN-XP and LinuxCNC
Not sure why pncconf doesnt have a 7I92 config for a basic breakout, but in
the
absence of one, you could create a 5i25 configuration for prob_rfx2 or
G540x2
and then globally change "5i25" to "7i92" in the hal file and then steal the
driver load line from any 7i92 config (possibly removing any sserial related
tokens in the driver load line). That should be pretty close.
Peter Wallace
Mesa Electronics
Peter,
These are the lines in the parallel port hal file that connect the step and
direction signals to the physical pins on the DB-25.
=========================================================================
net xenable => parport.0.pin-01-out
net xstep => parport.0.pin-02-out
setp parport.0.pin-02-out-reset 1
net xdir => parport.0.pin-03-out
net ystep => parport.0.pin-04-out
setp parport.0.pin-04-out-reset 1
net ydir => parport.0.pin-05-out
setp parport.0.pin-05-out-invert 1
net spindle-on => parport.0.pin-14-out
net charge-pump => parport.0.pin-17-out
setp parport.0.pin-17-out-invert 1
net estop-ext <= parport.0.pin-10-in-not
=========================================================================
I can't find anything similar to that in the hal file created for the MESA
board.
OTOH, the hal file for something like the Xylotex and BeagleBone MachineKit
looks something like this. And notice that Xstep is still tied to a parport
with a pin number that matches the DB-25.
=========================================================================
Since the 7I92s step/dir and PWM pins are hardware connections, they are
not available in hal
Hostmot2 firmware has fixed assignments of these pins that changes depending on
the firmware used. That is, in a particular firmware, stepgen 0's step and dir
pins will be hardwired to specific pins. You can list these pins (of the
current firmware) with the mesaflash utility. Also in the 7I92 support image
there are .pin files in the configs/hostmot2 subdirectory that list the pinouts
of the supplied configurations
If you have the default 192.168.1.121 address selected on the 7I92 you can read
the current configuration with:
mesaflash --device 7i92 --readhmid
or
mesaflash --device 7i92 --readhmid > current_pinout.txt
if you want the result saved in a file
I've attached a screen shot. No where can I find anything that links DB-25
pins (or even the 26 pin header #'s I think). But then as the screen shot
shows, I can't even assign step/dir although they are tagged.
The .pin files in the distribution (or generated by mesaflash) list the GPIO
numbers and the DB25 pin number of each I/O pin
So that begs the question. Am I the first to try using a 7i92H to replace two
parallel ports for LinuxCNC? If it has been done is there not a simple
template for even just one of the DB-25 with simple step/dir, limit, estop,
machine enable?
No, but it does require some hal knowledge and understanding that the card is
electrically compatible with parallel port breakouts but the hal file setup is
compleley different due to the fact that the fast I/O is done in hardware
and therefore pins cannot be piped through hal like software generated signals.
This means that you need to chose a pinout/firmware that matches your breakout
or current parallel port connections and then all hal wiring just references
the stepgen or pwmgen number, not the hardware pin.
Thanks
John
Peter Wallace
Mesa Electronics
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users