Difference between revisions of "BasicButton"
m (→Basic Button) |
m (→Basic Button) |
||
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. |
Revision as of 11:41, 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. |
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.