AdvancedHMI Software
General Category => Open Discussion => Topic started by: mach62468 on January 11, 2018, 01:38:02 PM
-
I am currently trying to use some of the switchs and buttons to control bits on a controlLogix. I can read values but I am unable to write.Any help would be greatly appreciated.
-
Create Controller scope tag named MyButton of type BOOL
In AdvancedHMI add a BasicButton to the form
Set PLCAddressClick to MyButton
Create a controller scope tag named MyDint of type DINT
In AdvancedHMI, add a BasicLabel to the form
Set PLCAddressValue to MyDint
Set PLCAddressKeypad to MyDint
Run the application and click on either item
-
I believe that is what I have done but does not work. See photo below.
-
Set the OutputType of your button to Toggle so you can see it better in RSLogix
-
Ok so it works as long as I dont run my code. How would I set the value of the bit by using code instead of a button?
-
EthernetIPforCLXCom1.Write("MyTag", "1")
-
Thanks alot! Is there somewhere I can find source code like this?
-
Out of curiosity, what events did you want to trigger these writes?