> Hi Anders, > Thanks for the quick reply, sorry to be a pain but > if I am understanding it correctly > your Feed Rate Override implementation just looks like on or off to me > or have I misunderstood > it? When I see people who operate CNC machines on a regular basis i.e. > not me , the control that > they use most often is the FRO, especially when they are running a > program for the first time. Your > handwheel implementation is quite easy to understand so I will use that > bit of the HAL file.
As you've already figured out, the feed-override is controlled by the jogwheel whenever the 6-position rotary switch is in the "FO" position. That sets the scale for changing feed-override to 0.01, so every click of the jogwheel will increase or decrease FO by 1% > You also > mentioned if I had the "old" m5i20 firmware, I thought that the firmware > was downloaded to the > Mesa board when the driver was loaded in HAL or am I wrong about that > too? If I am correct > about the firmware issue, has this been corrected in the latest release > of EMC2 ? As far as I know, the current situation is as follows: - The m5i20 hardware driver with 2.1 and TRUNK knows about only one firmware for the m5i20, this is what I called the 'old' firmware. It's a HOSTMOT-4 configuration (4 axes of motion from one 50-pin connector, and two 50-pin connectors for IO) (HOSTM54E.BIT and HOSTM54E.PIN). It has a PWM clock frequency of 33 MHz, and with the 10-bit pwm scheme that means the maximum pwm frequency is around 32 kHz. It has faulty pinouts for the secondary encoders (I documented these in the manual) which means that probably only one or two of the secondary encoders are usable simultaneously. - Since I wanted 50 kHz PWM frequency, Peter Wallace made some new firmware versions, which I committed to CVS. These are in separate directories at http://cvs.linuxcnc.org/cvs/emc2/src/hal/drivers/m5i20/ They have the pinout problem fixed, and either the standard 33 MHz PWM clock for max 32 kHz PWM, or the "eh" versions have a 100 MHz PWM clock for max ca 100 kHz PWM. There are two versions: 4-axis and 8-axis. Right now the driver does not support any of these. I've tested the 4-axis 33 and 100 MHz versions. If you load the firmware onto the m5i20 manually, the current driver works OK with these firmwares (and the 50 kHz PWM rate works very well - thanks Peter!). So you can use the fixed version of the firmware, but you have to load it onto the m5i20 yourself. (I've forgotten the exact steps, but it's not hard...) So, for EMC 2.2 a modification to the m5i20 driver should be made that allows loading of different firmwares onto the fpga. The driver should also autodetect which firmware is currently loaded. Based on the firmware, the driver should then create the appropriate HAL pins (4-axis or 8-axis config) and scale timing values from the user (33 or 100 MHz timebase). regards, Anders ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
