I am using AHMI Version 3.99n which I believe is the latest. I started with adding a ModbusTCPCom driver to the form.
Then I added a DigitalPanelMeter and set its PLCAddress value to 40001. Then I added a MomentaryButton and set its PLCAddressClick to 40001.0.
When I run this program, clicking on the button makes no change to the value in 40001 when it is zero.
If I set it to 1, then clicking the button has no effect until it is released and then the value goes to zero. Using ModRSsim2 I can see the following debug information.
Original Value of zero at beginning:
Button Press: In=0000 And=FFFF Or=0001 Out=0000
Button Release: In=0000 And=FFFE Or=0000 Out=0000
Original Value of one at beginning:
Button Press: In=0001 And=FFFF Or=0001 Out=0001
Button Release: In=0001 And=FFFE Or=0000 Out=0000
It seems that in the case of the Button Press, the And value should be FFFE like it is in the Button Release.
Also, I noticed that if I delete the DigitalPanelMeter and run the program there is no polling or communications at all.
Nothing is sent to the server (ModRSsim2) at all when the button is pressed or released.
Thanks for any help that you can provide.