adccommunitymod (AutomationDirect) asked a question.

L.E.Ds in function keys, C More Micro Touch

Created Date: February 04,2010

Created By: DetroitSound

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

I know this has been discussed before, but I'll be darned if I can find it...I was so new to this forum and programming the Click and the HMI (anyone remember all the stupid questions I asked then?), discussions of this were way beyond my understanding at the time. My 35 year old (or so) Kenmore clothes washer is working great, powered with a Click PLC and operated by a 3 " C More Micro Touch. I am thrilled and the other household members find it easy to use as well, it now has two additional cycles it did not have before, so everyone is happy (complete program attached). There are some items in the program that are no longer needed, perhaps I'll clean it up some day. There is one more thing that would be really nice if I could do it. I would like the LED on the F1 key to light when C112 is true; F2 to light when C212 is true, F3 to light when C312 is true, F4 to light when C412 is true, and F5 to light when C512 or C562 is true. That doesn't seem like it should be a big issue; I seem to recall from prior discussions that it involved hexadecimal addition/subtraction. I'm not afraid to work with hex or the math operators. This project is the first one where I 've controlled the alarm, screen colors and screen change by the PLC - pretty slick! I'm starting to really enjoy working with this little gem. I have plenty of program space left and it would be great to light the function keys to show that 1) it's running, and 2) what mode it is in. What do I need to change in my program to accomplish this?


  • adccommunitymod (AutomationDirect)

    Created Date: February 04,2010

    Created by: Tinker

    I know this has been discussed before, but I'll be darned if I can find it...

    After looking at the c-more micro software help file, I determined that "control word " would be a good search string. Which (among others) finds this: http://forum.automationdirect.com/showthread.php?p=30362#post30362

    Tubecut seems to have described it pretty well. Since I don't actualy have a c-moremicro, and the LEDs are not simulated in the simulate mode I don't think I can add too much else.

    Well, I'll add something, you do ask "what do i need to change in my program to accomplish this? ";

    In your click program try someting like:

    pick an integer register to be the LED controll word (I'll use DS100 here)

    set binary (value 1) of control word to light F1 LED

    --|C112|-----

    set bit 1 (value 2) to light F2

    --|C212|-----

    set bit 2 (value 4) for F3

    --|C212|-----

    and so on,

    then select your control word (in this case DS100) as the tag for the LED control word in the c-moremicro, it seems one has to have to have a "function object " to be able to control the LEDs, but I don't think it has to be visible (though one can't test that in the simulator)

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: February 04,2010

    Created by: DetroitSound

    Almost found it...

    I see in "alarm setup " on the Micro Touch where I can make them blink...so I have it and the Click set up accordingly (I'll upload the programs to the devices and try it out after work). I really would prefer a steady glow, but if all I can get is a blink, that would suffice.

    BTW, I am running the v2.31 software/firmware. If this is all I can do with it and it has not been changed in the 2.50 version, I would like to suggest this for a future upgrade. Under Alarm Control Setup / Actions there is a check box for "LED Blink " A choice of LED Blink or LED Steady would make it simple.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: February 04,2010

    Created by: DetroitSound

    I C - More now...

    I see the setup, I changed it (again) and I'll try it tonight...

  • adccommunitymod (AutomationDirect)

    Created Date: February 04,2010

    Created by: OpZed

    Take a look at: Object> System> Function

    This is a screen object, so it's only active while on the current screen, so you could have different purposes on each screen. Uncheck "Show Key " and drag it slightly off the bottom of your screen. Then switch to the LED tab and do your tag setup there. You'll have to combine your individual bits into a word.

  • adccommunitymod (AutomationDirect)

    Created Date: February 05,2010

    Created by: DetroitSound

    It's obviously a 5-bit binary word, it seems pretty simple now. I'm off to download it (or upload) it now.

  • adccommunitymod (AutomationDirect)

    Created Date: February 06,2010

    Created by: DetroitSound

    Learning more...

    The button LEDs work, but not as I wanted them to...

    Problems:

    1) The F5 button worked as intended (not flashing).

    2) The F1-F4 buttons flash, rather than staying lit continously.

    3) When the F2 function is selected, the light on the F3 button lights.

    4) F1, F3, F4 and F5 light the correct buttons

    5) (the bad part) - drum outputs seem that they no longer change, i.e. the drum advances to the next step but the outputs do not change.

    I'm going to go to my most recent version of the Click program that worked and add the math operators for the lights on DS4, with luck that should do it...

    I suspect I may have some operators crossed. One thing I DID find was that I had the math operators for DS4 = 1, 2, 4 and 8 (corresponding to the F1-F4 lights set up as "execute one time only ", as well as DS4 = 0, but DS4 = 16 is not addressed as one time only...hmm, interesting idea, if this is what I think it's supposed to do I can address the lights to flash or be on steady (or off for that matter) when different events happen.

    But one thing at a time...there is nothing like actually working with the hardware (and making programming errors :o ) to really understand it.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: February 04,2010

    Created by: DetroitSound

    I know this has been discussed before, but I'll be darned if I can find it...I was so new to this forum and programming the Click and the HMI (anyone remember all the stupid questions I asked then?), discussions of this were way beyond my understanding at the time.

    My 35 year old (or so) Kenmore clothes washer is working great, powered with a Click PLC and operated by a 3 " C More Micro Touch. I am thrilled and the other household members find it easy to use as well, it now has two additional cycles it did not have before, so everyone is happy (complete program attached). There are some items in the program that are no longer needed, perhaps I'll clean it up some day.

    There is one more thing that would be really nice if I could do it. I would like the LED on the F1 key to light when C112 is true; F2 to light when C212 is true, F3 to light when C312 is true, F4 to light when C412 is true, and F5 to light when C512 or C562 is true. That doesn't seem like it should be a big issue; I seem to recall from prior discussions that it involved hexadecimal addition/subtraction. I'm not afraid to work with hex or the math operators. This project is the first one where I 've controlled the alarm, screen colors and screen change by the PLC - pretty slick! I'm starting to really enjoy working with this little gem. I have plenty of program space left and it would be great to light the function keys to show that 1) it's running, and 2) what mode it is in.

    What do I need to change in my program to accomplish this?

    Expand Post