Page 1 of 2 12 LastLast
Results 1 to 12 of 15

Thread: button acting as a led

  1. #1
    Registered ataxy's Avatar
    Join Date
    Jul 2005
    Location
    canada
    Posts
    969
    Downloads
    0
    Uploads
    0

    button acting as a led

    i was wondering if it was possible to get the button to act as a led at the same time as a button, so that lets say you push the reset button the button start blincking
    The opinions expressed in this post are my own. -Les opinions exprimé dans ce messages sont les mienne


  2. #2
    Registered
    Join Date
    May 2006
    Location
    Australia
    Posts
    1,365
    Downloads
    0
    Uploads
    0
    Yes that is fairly straight forward to do.

    You need to make a two state LED graphic. For example of what I mean look in the bitmaps / millBitMaps folder and look at "BlueLED.png" or "conditions.png"

    When you have made your button graphic then you can assign it in Screen4 as the image to use for your LED. Set it as "Red/Green Flashing"

    Now to make that LED appear and work as a button on screen you place an "Image Button" over the top of it.

    And here is the trick.....make yourself a transparent png image and use that as the image for the button.

    If you don't do the last bit the flashing LED won't work. Don't ask me why. I don't know. It is one of Screen4's many little quirks.

    Greg


  3. #3
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,283
    Downloads
    0
    Uploads
    0
    You're LED should look something like this.
    Another new screen - Mach Aqua
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  4. #4
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,283
    Downloads
    0
    Uploads
    0
    The way I do it, is to first place the LED, and lock it in place, and place the image button next to it for testing. Do NOT attach the transparent image yet. Once I know that it's working, I then move the button image in place, and lock it in place. Only then do I add the transparent image. The reason for this is that once you add the transparent image, you can't see it anymore, and it gets tricky.

    Also, here's the transparent image I use.
    Attached Files Attached Files
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  • #5
    Registered ataxy's Avatar
    Join Date
    Jul 2005
    Location
    canada
    Posts
    969
    Downloads
    0
    Uploads
    0
    ok i made a led button but it wont stop flashing when i click it i based it on the setting of the led and button of the reset button of the 1024.set but like i have just said the led wont stop flashing when i click the real button, the first box is my translucide png and, well as you can see its transparent
    Attached Thumbnails Attached Thumbnails button acting as a led-cycle_start_led_button.bmp   button acting as a led-button_clear_led.png  
    The opinions expressed in this post are my own. -Les opinions exprimé dans ce messages sont les mienne


  • #6
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,283
    Downloads
    0
    Uploads
    0
    Is the transparent button set to "System Function", "Reset" ?
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  • #7
    Registered ataxy's Avatar
    Join Date
    Jul 2005
    Location
    canada
    Posts
    969
    Downloads
    0
    Uploads
    0
    yep it is and the led is set to oem code 800
    The opinions expressed in this post are my own. -Les opinions exprimé dans ce messages sont les mienne


  • #8
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,283
    Downloads
    0
    Uploads
    0
    Try the system function for the reset LED. If you can't get it to work, if you post it I'll check it for you.
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  • #9
    Registered ataxy's Avatar
    Join Date
    Jul 2005
    Location
    canada
    Posts
    969
    Downloads
    0
    Uploads
    0
    ok ill try it and post back the result
    The opinions expressed in this post are my own. -Les opinions exprimé dans ce messages sont les mienne


  • #10
    Registered ataxy's Avatar
    Join Date
    Jul 2005
    Location
    canada
    Posts
    969
    Downloads
    0
    Uploads
    0
    unfortunatly there is no option for reset in the system function of led here is the set and image folder i use to try it
    ps: the archive is a rar file so switch back the extension to .rar
    Attached Files Attached Files
    The opinions expressed in this post are my own. -Les opinions exprimé dans ce messages sont les mienne


  • #11
    Registered
    Join Date
    May 2006
    Location
    Australia
    Posts
    1,365
    Downloads
    0
    Uploads
    0
    The system function for the LED is called "EStop"

    OEM code 800 works anyway, so either will do.

    You did not have the LED set to "Red/Green Flashing" as explained in post 2.

    When that is set, it flashes as you wanted.

    Greg


  • #12
    Registered ataxy's Avatar
    Join Date
    Jul 2005
    Location
    canada
    Posts
    969
    Downloads
    0
    Uploads
    0
    yes maybe it wasnt in the set file i posted but when i set it to red/green flashing it just keep blinking when i push the button.... unless the problem is because i have no offline button setup
    The opinions expressed in this post are my own. -Les opinions exprimé dans ce messages sont les mienne


  • Page 1 of 2 12 LastLast

    Similar Threads

    1. Problem- PlasmaCam acting squirrely
      By kymike in forum General Waterjet
      Replies: 2
      Last Post: 12-15-2008, 07:04 AM
    2. G-251 acting loony tunes!!
      By jhowelb in forum Gecko Drives
      Replies: 9
      Last Post: 12-07-2008, 10:46 AM
    3. THC acting up
      By Alex S.A in forum General Waterjet
      Replies: 1
      Last Post: 09-24-2007, 09:31 AM
    4. Maxnc acting up!
      By abomb55076 in forum Servo Motors and Drives
      Replies: 0
      Last Post: 07-31-2006, 06:04 PM
    5. Stepper acting funny.
      By Smackre in forum General Electronics Discussion
      Replies: 1
      Last Post: 07-13-2006, 09:59 PM

    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.