Author Topic: 3.99y - BasicButton Toggle no longer working  (Read 3119 times)

PLCHorse

  • Newbie
  • *
  • Posts: 22
    • View Profile
3.99y - BasicButton Toggle no longer working
« on: September 12, 2024, 12:24:42 PM »
Sorry for all the questions today.

After changing to 3.99y from 3.99x - by basicButtons that were using the "Toggle" feature have ceased to work.

I tried to remake the buttons - but they still do not seem to toggle the bit in the PLC. I searched for this but didn't find any results. I have trouble imagining this would be broken: is there something new I'm missing?

I'm using MicroLogix.

PLCHorse

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: 3.99y - BasicButton Toggle no longer working
« Reply #1 on: September 12, 2024, 03:40:33 PM »
Update:
BasicButton does NOT work however
SquareIlluminatedButton Does.

Same bit, same settings.

PLCHorse

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: 3.99y - BasicButton Toggle no longer working
« Reply #2 on: September 13, 2024, 10:07:31 AM »
I have confirmed with someone else that this IS a problem!!!

bachphi

  • Hero Member
  • *****
  • Posts: 671
    • View Profile
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

PLCHorse

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: 3.99y - BasicButton Toggle no longer working
« Reply #4 on: September 13, 2024, 11:01:48 AM »
Try this:

https://www.advancedhmi.com/forum/index.php?topic=3118.0

thats a cool workaround: though I think the dev might want to be aware of this feature having broken.

bachphi

  • Hero Member
  • *****
  • Posts: 671
    • View Profile
Re: 3.99y - BasicButton Toggle no longer working
« Reply #5 on: November 06, 2024, 11:49:01 AM »
There is a bug in the Basic Button component. When setting its type to "Toggle", it doesn't function as expected.

Solution:
The issue is caused by duplicate lines of code in the BasicButton.vb file. Removing one of these duplicate lines will resolve the problem.
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

BlackPoison357

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: 3.99y - BasicButton Toggle no longer working
« Reply #6 on: Today at 12:39:29 PM »
There is a bug in the Basic Button component. When setting its type to "Toggle", it doesn't function as expected.

Solution:
The issue is caused by duplicate lines of code in the BasicButton.vb file. Removing one of these duplicate lines will resolve the problem.

Thank you!

For anybody else that runs into this issue before its fixed. Duplicate code in question:
Code: [Select]
Case MfgControl.AdvancedHMI.Controls.OutputType.Toggle