Hello Guest it is April 25, 2024, 10:16:51 AM

Author Topic: UserLed 2055  (Read 4611 times)

0 Members and 1 Guest are viewing this topic.

UserLed 2055
« on: August 08, 2011, 07:33:26 AM »
Hi again,

as a workaround for the auxiliary bus problems mentioned earlier, I set up my Pokeys55 without the ExtBus.

everything works ok, but I ran into some minor problems again.

1.

I just have digital inputs and outputs + LCD

Configured it to ULED range starting from 2001
Input range 1: 1 to 27
Input range 2: 35 to 45

Output range 1: 46 to 55

everything works fine, except that I can't use SetUserLED(2055,1) in macros, that won't do anything.
all other output LEDs work as expected. (Yet it works in Pokeys config software)

Did I miss something or is there indeed some strange behavior of the Plugin (10.6.4, btw)?




Sidenote: initially I had defined the unused ExtBus (35-37) pins as Outputs, too, so that the settings were

Input range 1: 1 to 27
Input range 2: 38 to 48

Output range 1: 35 to 37
Output range 2: 49 to 55

but then I couldn't set UserLeds 35 to 37. After switching wires and setting to the setup above, that was no longer a problem.


Would appreciate any hints regarding that LED 2055 thing  ;)

Regards,
Mike

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: UserLed 2055
« Reply #1 on: August 08, 2011, 07:36:50 PM »
because your Uleds are tied to your I/O,  since you defined total IO from 1-55, then ULEDs are ranged 2001-2055.

scott
fun times
Re: UserLed 2055
« Reply #2 on: August 08, 2011, 08:24:30 PM »
Hi Scott,

 
sorry, but does that really explain why SetUserLED(2055,1)  wouldn't work?  ;)

Regards,
Mike

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: UserLed 2055
« Reply #3 on: August 09, 2011, 11:21:57 PM »
yes, it does, since the plug-in is always writing each scan to that range, the plug-in will always write to 2001-2055..... a 0, or 1 depending on that pins state, that is tied to that ULED.
fun times
Re: UserLed 2055
« Reply #4 on: August 10, 2011, 03:13:45 AM »
Thanks, Scott,

I still don't see the point, but I'm afraid my description wasn't clear enough - sorry.
I tried to say that neither setting 0 or 1 for that pin wouldn't work. I can't address that pin or switch its state at all, from within mach3.
So, of course SetUserLED(2055,0) doesn't show any reaction, too.

I can however, switch it in the Pokeys soft. The other 54 pins work OK, so I think I got the principle.

Now is there something wrong with my config or do I still misunderstand what you're telling me?

Thanks again,
Mike

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: UserLed 2055
« Reply #5 on: August 10, 2011, 07:02:17 PM »
you got something wrong in your config.
fun times
Re: UserLed 2055
« Reply #6 on: August 11, 2011, 04:06:44 AM »
Hi, Scott,
sorry again, if I'm grating on your nerves, but please tell me if you see any problem with the setup in my first post?

The Logic is all in the macropump. no brains activated or other macros involved. The same procedure that is used for Uled 2055 works fine for every other output pin, and there is definitely no other call to 2055 from somewhere else.

If I disable the macropump and try to access 2055 from a single macro, there is no reaction either. So where else could I look for a solution?

Thanks and regards,

Mike

BTW: Pokeys55 is used for my new control panel, and it's completely functional now, after I freed some pin from the rotary switch, but I could still make good use of pin55, that's why I'm so stubborn in this case  ;D

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: UserLed 2055
« Reply #7 on: August 12, 2011, 09:29:27 PM »
Hey Mike,

     I am not frustrated, it just appears that I don't have the writing skills necessary to explain it to you, and that is MY failing not yours.

I will try again to make it clear to you, if you still don't get it, please DO say something, some of this stuff can get a little crazy.

When you pick a ULED BASE range, i.e. 2001, internally in the plug-in, I set aside the range 2001-2055  ( base number plus 54 = total range of 55 ULEDs).
what ever you pick for the base, that one plus the next 54 of them, are "Locked in" for the plug-ins use.  so, internally, the plugin writes to that range, no matter if you use it or not, i.e.  if your total range 1-44, and your "Not" using pin 55  even though your not using it, when the plugin loops around, it puts a "0" in that
place so your 2055 ULED would always be "0".

Nice Pendant by the way.

scott




fun times