![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Ok getting closer to getting this machine working however. Here is my situation. I have EstopWrite hooked up to a relay to my amps. So if there is a failure to the system power is stopped to the amps. At least that what the comments are on the mesa_io.hal file tell me. However I am getting no output signal on m5i20.0.out-07. Please if someone has an idea of how I can hook this up correctly it would be appreciated. Or should I connect this to a different output. Here is the current area of the code that I am trying to modify. # Connect e-stop write/sense to I/O controller. # # The estop from the opto module should be jumpered to one of the # m5i20 estop pins. This will notify the motion of the estop condition # and it will zero the DACs and turn off all output even if the PC # has crashed. # newsig EstopSense bit newsig EstopWrite bit # create a signal for the estop loopback -- remove for external #linkpp iocontrol.0.user-enable-out iocontrol.0.emc-enable-in # use this if you have an external estop switch #linksp EstopSense <= m5i20.0.estop-in-not linksp EstopSense <= m5i20.0.in-15-not linksp EstopSense => iocontrol.0.emc-enable-in linksp EstopWrite => m5i20.0.out-07 linksp EstopWrite <= iocontrol.0.user-enable-out Also does anyone know how to invert a output signal on the mesa. I also need to change the spindle output from 3.5v at startup which it is now, to 0v. And then when I run the program my relay can turn on the spindle. Here is that code from the mesa_io.hal # Connect spindle fwd/rev to I/O controller. newsig SpindleFwd bit linksp SpindleFwd => m5i20.0.out-00 linksp SpindleFwd <= motion.spindle-forward The current system is running emc2 2.2.8 on Ubuntu 8.04 I hope this makes sense and someone can help. |
|
#2
| |||
| |||
| Hi I'm fairly new at this too. Are you getting any outputs? I haved a problem with the watchdog not get set the file I started with had watchdog commented out. On inverting the output is something like this Setp m5i20.0.out-00.invert 1 Mine is a little different in that I use the 5i23 with a 7i33 and 7i37 card and the hostmot2 driver were you have the orginal hostmot witch I should have used. Donnie |
|
#3
| |||
| |||
Bringing back fond memories. I am not using HOSTMOT2, rather the default (older) EMC 5i20 configuration. To invert an input just add '-not' to the signal. Here are the modifications I made to make a functional e-stop. # Connect amp enables to motion controller. linksp Xenable => m5i20.0.out-03 linksp Yenable => m5i20.0.out-09 linksp Zenable => m5i20.0.out-04 # Connect amp enables to m5i20 dac enables linksp Xenable => m5i20.0.dac-00-enable linksp Yenable => m5i20.0.dac-01-enable linksp Zenable => m5i20.0.dac-02-enable # use this if you have an external estop switch linksp EstopSense <= m5i20.0.in-15-not linksp EstopWrite <= m5i20.0.in-15 linksp EstopSense => iocontrol.0.emc-enable-in linksp EstopSense => m5i20.0.out-07 I am not using the watchdog. The amp enables get tied into the internal e-stop logic. I also tie the amp's ac power to the m5i20.0.out-07 signal, physically. The enables only should cover you, but I like to kill power all the way down to life support on an e-stop, i.e. controller only thing alive. In my case, I don't believe the EstopWrite has any functionality. This part just didn't make any sense to me, linksp EstopWrite => m5i20.0.out-07 linksp EstopWrite <= iocontrol.0.user-enable-out |
|
#6
| |||
| |||
![]() How about, 'my watchdog doesn't bite...that's not MY watchdog.' The last post sounds like the 'watchdog' Donnie was referring to got hauled to the pound. I have a 5i23? board waiting in the wings for a future install on another machine, but want to allow others the golden oppurtunity to blaze a new trail. So PLEASE keep us updated with your journeys. |
|
#8
| |||
| |||
| Ok I have an update I figured out how to do the invert output setp m5i20.0.out-00-invert 0 or 1 thanks everyone for the help so I have all my safety signals working correctly and also the spindle. The problem now is I am not get a PID on the X and Z channels. I have checked and I am just getting a High signal on the X and Z. I know all my amps are working as I have switched the working y axis to the two other channels and it works. The only thing I can think of is the mesa 5i20 board has a problem. Mind you I am getting all the other outputs and inputs working on it? If someone knows how I can test the card to see if it is in working order. I know all my settings work as I have had this system working to cutting parts. Again help is always appreciated |
|
#9
| |||
| |||
| Here is a test panel: http://wiki.linuxcnc.org/cgi-bin/emc...vcp_Test_Panel |
|
#11
| |||
| |||
Our experience is that a failed (damaged by excessive I/O voltage) 5I20 card will almost always completely fail (will not even configure). Having just a few bad I/O bits is possible but really unlikely. If you can configure the card and the majority of I/O works, It is most likely your problem lies elsewhere. If you can boot DOS or Windows (requires driver installation) on your test computer, we can supply a GPIO or loop-back test program. Or you can send the card back to us for evaluation and repair/replacement if needed. Another way to check for open/damaged I/O pins is to use a Digital Volt Meter (DVM) that has a diode check function. Unplug the 5I20 card from the PC and remove all 50 pin cables, then with the DVM set to diode-check function, connect the positive DVM lead to 5I20 ground and check each of the I/O pins. They should all have similar voltage drops (~.5v), a bad pin will normally show open or shorted (higher or lower than a diode drop voltage) You are checking the I/O protection diodes in the FPGA |
|
#12
| |||
| |||
| if you could let me know how to get a test program that would be great. I have downloaded the support software on the mesa electronicssite, however Im not exactly sure how to test the board, I have a spare windows machine that I can check it on I just need to know how to configure the software to test it. If you could let me know what I need that would be great. thanks. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| M5i20 & spindle control | albova | LinuxCNC (formerly EMC2) | 2 | 05-12-2008 06:00 AM |
| Help Changing VQC inout/output | Moparmatty | Haas Visual Quick Code | 5 | 03-12-2008 11:36 AM |
| Need Help!- Changing Arc Output? | Moparmatty | Mastercam | 6 | 01-30-2008 08:34 AM |
| parallel port settings/output signals | TMaster | Xylotex | 6 | 04-23-2006 11:16 PM |
| To convert Quadrature Encoder signals to Tachogenerator signals | Babar | General Electronics Discussion | 4 | 02-21-2006 12:05 AM |