587,446 active members*
3,215 visitors online*
Register for free
Login
Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2009
    Posts
    19

    How to see which inputs are active in emc2

    Hi all, just got EMC2 setup on Ubuntu, and most everything is working alright, except I can't tell if I've setup homing properly, and want to make sure I have the switches set up right.

    Is there any way to see which inputs are active at any point in EMC2? You know, like how mach3 has that screen showing lights for all in/outs -- I'm wondering where to start looking to achieve that same goal in EMC2.

    Any advice would be greatly appreciated!

    !c

  2. #2
    Join Date
    Dec 2003
    Posts
    128
    Have you tried playing around with the 'HAL Scope' under the Machine menu?

  3. #3
    Join Date
    Jan 2009
    Posts
    19
    Quote Originally Posted by margni74 View Post
    Have you tried playing around with the 'HAL Scope' under the Machine menu?

    Not yet! For some reason, it struck me like "oscilloscope" and probably not offering what I was looking for. I'll check that out - I take it that it allows me to monitor the HAL status, and since HAL handles that communication, it will be able to show me what variables/pin states are changing?

    Thx!

    !c

  4. #4
    Join Date
    Dec 2003
    Posts
    128
    I haven't even really experimented with it myself, but it looks like it may show you what you want... also, i don't have any inputs enabled yet from switches so i couldn't check even if wanted

  5. #5
    Join Date
    Nov 2005
    Posts
    496
    use halmeter to look at pins named like
    axis.N.home-sw-in (change N to axis letter)

    or use halshow to watch the same (pus more)

    Both are available under 'machine' heading when AXIS is loaded.

    Chris M

  6. #6
    Join Date
    Jan 2009
    Posts
    19
    Quote Originally Posted by chester88 View Post
    use halmeter to look at pins named like
    axis.N.home-sw-in (change N to axis letter)

    or use halshow to watch the same (pus more)

    Both are available under 'machine' heading when AXIS is loaded.

    Thanks! I'll check it out when I get home tonight - and hopefully finish my setup w/ emc2.

    !c

  7. #7
    Join Date
    Apr 2005
    Posts
    1778
    Another alternative (more work) would be to implement a pyvcp panel with LED widgets to show the state of the signals you're interested in monitoring.

    Alan

  8. #8
    Join Date
    Jan 2009
    Posts
    19
    the Hal meter and hal show were great helps. That did exactly what I needed (showed me that I had my switch pins mixed up! =) - and, in fact, hal show has that led display - you just click on which pins you want to monitor (SW or HW), and it has a red/green light for each.

    Now, I just have to figure out why I'm always getting a home switch error on the Z axis. I thought the switch might've been touchy, so I installed a debounce filter on it, but it doesn't seem to do any good. In fact, the hal show monitor doesn't show it passing anything through the debounce filter (when the error occurs), but Axis still claims that "... switch inactive before end of move" or something like the same. As if the switch went high while it was halfway down the axis, and then went back to low. The show monitor indicates this didn't occur, but maybe it doesn't show brief fluctuations.

    I'll try replacing the switch this weekend, unless anyone knows of something I might be missing, and especially why the Z would be different than X and Y.

    !c

Similar Threads

  1. VSD-E HOME INPUTS
    By polaraligned in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 13
    Last Post: 01-22-2009, 02:28 PM
  2. Active high vs. Active low
    By aaronkeit in forum Gecko Drives
    Replies: 0
    Last Post: 08-22-2007, 08:57 AM
  3. inputs outputs
    By sintratech in forum Machines running Mach Software
    Replies: 6
    Last Post: 04-01-2007, 08:17 PM
  4. Inputs/Outputs
    By UKRobotics in forum CNC Machine Related Electronics
    Replies: 13
    Last Post: 08-03-2006, 03:52 AM
  5. Active High/Active Low
    By Sanghera in forum CNC Machine Related Electronics
    Replies: 21
    Last Post: 11-07-2004, 03:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •