AdvancedHMI Software
General Category => Open Discussion => Topic started by: daakers on September 25, 2016, 05:49:18 PM
-
Liking this software so far. I have a simple question. What is the best way to read a SINGLE BIT in to a variable and not an object??
-
What driver are you using?
-
Modbus TCP
-
Dim MyValue as string
MyValue=ModbusTCPCom1.Read("10001")
-
Thanks. I'm too use to off the shelf HMIs and don't have very much time with VB, but I'm learning.
-
Within all of the controls you should be able to do just about all of the same things without having to write code.
-
I was having a hard time changing text on the Basic Button depending on On/Off status. This made it easy or more like I know?? I was trying to change the text if the HighLight bit was on or off.
Maybe even an easier way but this works. Thanks for all the hep. I have used everything from Wonderware, Infilink, CX Supervisor, Indusoft, NI Lookout, but I'm liking this. Working on a water control system for jail showers and toilets LOL.
-
The BasicButton has a PLCAddressSelectTextAlternate that is used to change the text based on a Boolean value. You can put the same address as you have in PLCAddressHighlight, then set the TextAlternate property to the text you want to show when the bit is true.
-
Thanks, I will try that. How to do a Write to a address? I'm slow but will pick up. I'm doing a shower water on between x time to y time, got that working but need to write a bit to the plc during this time. How do you put up with us newbies???
-
Several controls have a PLCAddressKeypad property. If a valid address is in that property, when the control is clicked, a keypad will popup to enter a value.
There is also a new control named KeypadInput. It is basically a TextBox that will write a value to the PLC when an enter key is pressed. This allows it to work with keyboard wedge barcode scanners.