Page 1 of 3 123 LastLast
Results 1 to 12 of 34

Thread: Changing M5i20 Output signals

  1. #1
    Registered
    Join Date
    Mar 2007
    Location
    Canada
    Posts
    50
    Downloads
    0
    Uploads
    0

    Changing M5i20 Output signals

    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. #2
    Registered
    Join Date
    Oct 2008
    Location
    USA
    Posts
    78
    Downloads
    0
    Uploads
    0
    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. #3
    Registered
    Join Date
    Oct 2006
    Location
    USA
    Posts
    211
    Downloads
    0
    Uploads
    0

    I said STOP!

    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




  4. #4
    Registered
    Join Date
    Oct 2008
    Location
    USA
    Posts
    78
    Downloads
    0
    Uploads
    0

    Talking

    With Hostmot2 you have no choice on the watchdog, pet it or die.


  • #5
    Seb
    Seb is offline
    Registered
    Join Date
    Jan 2006
    Location
    USA
    Posts
    58
    Downloads
    0
    Uploads
    0
    It's a bummer that first example hostmot2 config had the watchdog commented out in the .hal file... I think that confused lots of folks.

    The new hostmot2 configs in 2.3 all have the watchdog working right.


  • #6
    Registered
    Join Date
    Oct 2006
    Location
    USA
    Posts
    211
    Downloads
    0
    Uploads
    0

    New dog?

    Quote Originally Posted by DonnieET View Post
    With Hostmot2 you have no choice on the watchdog, pet it or die.


    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.


  • #7
    Registered
    Join Date
    Oct 2008
    Location
    USA
    Posts
    78
    Downloads
    0
    Uploads
    0

    Talking

    123CNC

    The thing about that watch dog, he was one of the silent type never heard or saw him just felt the bite

    Donnie


  • #8
    Registered
    Join Date
    Mar 2007
    Location
    Canada
    Posts
    50
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    487
    Downloads
    0
    Uploads
    0


  • #10
    Registered
    Join Date
    Mar 2007
    Location
    Canada
    Posts
    50
    Downloads
    0
    Uploads
    0
    How do you set up the test panel correctly?


  • #11
    Registered
    Join Date
    Feb 2008
    Location
    USA
    Posts
    134
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by TZak View Post
    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

    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
    Registered
    Join Date
    Mar 2007
    Location
    Canada
    Posts
    50
    Downloads
    0
    Uploads
    0
    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.


  • Page 1 of 3 123 LastLast

    Similar Threads

    1. M5i20 & spindle control
      By albova in forum LinuxCNC (formerly EMC2)
      Replies: 2
      Last Post: 05-12-2008, 07:00 AM
    2. Help Changing VQC inout/output
      By Moparmatty in forum Haas Visual Quick Code
      Replies: 5
      Last Post: 03-12-2008, 12:36 PM
    3. Need Help!- Changing Arc Output?
      By Moparmatty in forum Mastercam
      Replies: 6
      Last Post: 01-30-2008, 09:34 AM
    4. parallel port settings/output signals
      By TMaster in forum Xylotex
      Replies: 6
      Last Post: 04-24-2006, 12:16 AM
    5. To convert Quadrature Encoder signals to Tachogenerator signals
      By Babar in forum General Electronics Discussion
      Replies: 4
      Last Post: 02-21-2006, 01:05 AM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.