Difference between revisions of "BasicButton"

From AdvancedHMI
Jump to: navigation, search
m (Basic Button)
m (Basic Button)
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
|-
 
|-
 
|PLCAddressHighlightX
 
|PLCAddressHighlightX
|If OutputType is set to WriteValue, then this should point to an integer register. When the register value matches the value in ValueToWrite, the button will change to the HighlightColor.
+
|If OutputType is set to WriteValue, then this should point to an integer register. When the register value matches the value in ValueToWrite, the button will change to the HighlightColor. Otherwise it should point to a Boolean register that is used to select when to change the color to that specified in HighlightColor
 
|-
 
|-
 
|PLCAddressClick
 
|PLCAddressClick
Line 26: Line 26:
 
Examples of usage:
 
Examples of usage:
  
1) A Start cycle button
+
1) A Start cycle button<br>
 
2) Using a group of buttons to select one of multiple states using PLCAddressHighlightX, OutputType=WriteValue, PLCAddressClick, and ValueToWrite.
 
2) Using a group of buttons to select one of multiple states using PLCAddressHighlightX, OutputType=WriteValue, PLCAddressClick, and ValueToWrite.

Latest revision as of 11:42, 13 February 2018

Basic Button

This control is a general purpose button with multiple functions.

Properties
ComComponent Points to the driver instance for reading its values through
PLCAddressHighlightX If OutputType is set to WriteValue, then this should point to an integer register. When the register value matches the value in ValueToWrite, the button will change to the HighlightColor. Otherwise it should point to a Boolean register that is used to select when to change the color to that specified in HighlightColor
PLCAddressClick A Boolean or integer register which is set True/False or to the value define in ValueToWrite property. If OutputType is set to WriteValue, then an integer is expected, otherwise a Boolean is expected.
PLCAddressSelectTextAlternate A Boolean register which when True will switch the button text to that defined in TextAlternate.
PLCAddressEnabled A Boolean register which will allow the button to be clicked when True.
PLCAddressText A String register to allow the PLC to set the button text.

Examples of usage:

1) A Start cycle button
2) Using a group of buttons to select one of multiple states using PLCAddressHighlightX, OutputType=WriteValue, PLCAddressClick, and ValueToWrite.