Need firmware for Chinese BoB on Mesa 7i92

  • Shu
  • Shu's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
05 Jul 2016 00:42 #77006 by Shu
Hello! The 7i92 arrived from Mesa, I have it wired up to the old Chinese 5 axis BoB that has been used for years with a software stepgen in LinuxCNC. I searched through the hostmot bit files to find a suitable firmware to no avail. Also, I couldn't find pin files for the 7i92, maybe there was a change in the code structure.
As I'm almost off-grid here, it would take me a couple days to download the Xilinx IDE to compile a custom bit file.

1. Can someone provide me with a suitable bit file? PCW :whistle: ?
Or did I miss a compatible one that has at least the stepgen at the right pins?

2. Is it possible to generate a 0-10kHz output for a VFD with the 7i92?
ParPortPin Function
1 Enable
2 xstep
3 ydir
4 SpindlePWMout (creating a 0-5V signal for the VFD with a buffer and low pass filter from this pin)
5 adir
6 astep
7 zstep
8 zdir
9 SpindleEnable
10 max-home-z
11 min-home-x-and-y
12 SpindleSensorIn (RPM sensor, 4 pulse per revolution)
13 probe-in
14 xdir
16 ystep
17 CoolantEnable

This is how I used it in a similar configuration (different machine) with stepgen:

net xenable => parport.0.pin-01-out
net xstep => parport.0.pin-02-out
setp parport.0.pin-02-out-reset 1
net ydir => parport.0.pin-03-out
setp parport.0.pin-04-out-invert 1
net spindle-pwm => parport.0.pin-04-out
net adir => parport.0.pin-05-out
net astep => parport.0.pin-06-out
setp parport.0.pin-06-out-reset 1
net zstep => parport.0.pin-07-out
setp parport.0.pin-07-out-reset 1
setp parport.0.pin-08-out-invert 1
net zdir => parport.0.pin-08-out
net spindle-on => parport.0.pin-09-out
net xdir => parport.0.pin-14-out
net ystep => parport.0.pin-16-out
setp parport.0.pin-16-out-reset 1
net coolant-flood => parport.0.pin-17-out
net max-home-z <= parport.0.pin-10-in-not
net min-home-y <= parport.0.pin-11-in-not
net min-home-x <= parport.0.pin-12-in-not
net probe-in <= parport.0.pin-13-in


Best,

Shu

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

More
05 Jul 2016 04:57 #77010 by PCW
I'll try to get to this sometime this week

Note, you can generate .pin files with mesaflash:

mesaflash --device 7I92 --addr 192.168.1.121 --readhmid
The following user(s) said Thank You: Shu

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

More
05 Jul 2016 08:44 #77013 by andypugh
Replied by andypugh on topic Need firmware for Chinese BoB on Mesa 7i92

Hello! The 7i92 arrived from Mesa, I have it wired up to the old Chinese 5 axis BoB that has been used for years with a software stepgen in LinuxCNC.


The step/dir wiring seems a little eccentric. Is there any reason why you can't just move wires about between the BoB and the drives to make the pinout match something that already exists?

When you say that you want a 0 to 10 kHz signal, is that a variable frequency signal that is needed? Does it need to be a true square-wave?

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

  • Shu
  • Shu's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
05 Jul 2016 13:48 - 05 Jul 2016 13:55 #77031 by Shu
Thank you for your fast responses! :)

I could rearrange all the wiring, but as there is a common output enable on pin 1 at the db25 BoB and the available G540, DMMBOB.. bitfiles have either a PWM for the spindle at that pin OR a 3pin quad input that makes it impossible to wire up the limit switch inputs. Ideally there will be a 1pin counter for the spindle sensor (I make use of the spindle at speed function especially with heavy tools).
As the preempt-rt kernel won't run a sufficient base thread on the laptop I have to use the Mesa 7i92 to count the sensor and generate the spindle PWM. I also want to upgrade the sensor to more than 4 counts per revolution to allow heavier rigid tapping, the encoder count was limited by the base thread.

I don't think the 10kHz would need to be square wave, I guess there is a schmitt trigger at the VFD inputs. I don't plan on using the 10kHz input for now, just curious if that's possible.

@PCW
Loading a firmware just to read the pinout with mesaflash --readhmid seems tedious. Just discovered the .vhd files contain pin declarations, do they represent the db25 pins? I could look at them and see if there's a suitable one to start with.

How about a small page at mesa.com listing all the pin configs for the firmwares? Many people must have gone through these steps and bother you with questions :lol:

all the best,

Shu
Last edit: 05 Jul 2016 13:55 by Shu.

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

  • Shu
  • Shu's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
05 Jul 2016 14:09 - 05 Jul 2016 14:37 #77032 by Shu
Can the following three pins of the G540 bit files be used as limit switch, probe input, and the 1pin spindle encoder? I understand if I add one encoder during boot, it automatically uses all three pins as encoder inputs. If I would declare zero encoders, all three are free to use as GPIOs. How to have a 1pin encoder? Custom bit file?
IOPortTag & x"00" & QCountTag & QCountQAPin,  -- I/O 13	PIN 10	Input 1 (Quad A)
IOPortTag & x"00" & QCountTag & QCountQBPin,  -- I/O 14	PIN 11	Input 2 (Quad B)
IOPortTag & x"00" & QCountTag & QCountIdxPin,   -- I/O 15	PIN 12	Input 3 (Quad Idx)
Last edit: 05 Jul 2016 14:37 by Shu. Reason: formatting

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

More
05 Jul 2016 14:40 - 05 Jul 2016 14:40 #77034 by PCW
Yes you would need custom firmware for a 1 pin encoder

The encoder inputs do not interfere in any way with using the GPIO except if you want to
use the encoder function

Note that a 1 pin encoder will not work for rigid tapping, normally 3 are needed
are needed (though 2 can work with some fancy hal work to simulate an index)
Last edit: 05 Jul 2016 14:40 by PCW.

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

  • Shu
  • Shu's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
05 Jul 2016 23:56 #77059 by Shu
Alright, thanks so far. I rewired the BoB to match the 7i92_MX3660x2D.bit, except the 1pin encoder. I will remove the spindle-at-speed snippets and run it open loop until I get a second connector for the 7i92 or a firmware with a 1pin encoder.
Now on to the PWM output config for the spindle..

I noticed that I have to lower the probing speed to have the same accuracy as with a base thread. I guess I could lower the servo thread interval. Any other suggestions?

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

More
06 Jul 2016 00:02 #77060 by andypugh
Replied by andypugh on topic Need firmware for Chinese BoB on Mesa 7i92

I noticed that I have to lower the probing speed to have the same accuracy as with a base thread. I guess I could lower the servo thread interval. Any other suggestions?


The stepgens don't offer a latch-enable pin (though to do so would be plausible) so you are right that the probing speed needs to be lower to get the same accuracy.
A way to maintain probing speed might be to probe fast to contact then slowly away from contact.

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

More
06 Jul 2016 00:16 #77061 by PCW
Actually both the encoders and the stepgen have a latch on probe option but its not supported in the driver yet
(its tricky since it requires changes to the motion module to do right)

Are you sure there's any difference in probing accuracy?
motion is run in the servo thread and the AFAIK feedback position is sampled by motion at the servo thread rate
to get the probe position

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

  • Shu
  • Shu's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
06 Jul 2016 00:29 #77063 by Shu
I didn't verify it, was just a quick test and my thinking as I had the probe input in the base thread. Will try again when I have the spindle PWM set up.

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

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