1
Additional Components / Re: BasicButton - Multi Address/Value Write
« on: July 08, 2021, 07:52:26 PM »
Hi,
The button's property PLCAddressClickItems holds PLCAddresses (it has replaced PLCAddressClick property but provides the same functionality if single address is used). Each item independently allows for ScaleFactor and ScaleOffset values.
-->
minFL As New AdvancedHMIControls.ClickItem
'Minimum flowrate
minFL.PLCAddress = "F40037"
minFL.ScaleFactor = 0
minFL.ScaleOffset = 1
rDbg.PLCAddressClickItems.Add(minFL) // rDbg is my button name
The button's property ValueToWrite holds values (which is array of strings). It represents NumberOfElements that will be written with the driver's BeginWrite function.
--->
Dim arrData(4) As String
arrData(0) = "2969" // Data for above address
rDbg.ValueToWrite = arrData
Could you advice which part i'm missing ? Looks like I already follow your notes on your 1st posting.
The button's property PLCAddressClickItems holds PLCAddresses (it has replaced PLCAddressClick property but provides the same functionality if single address is used). Each item independently allows for ScaleFactor and ScaleOffset values.
-->
minFL As New AdvancedHMIControls.ClickItem
'Minimum flowrate
minFL.PLCAddress = "F40037"
minFL.ScaleFactor = 0
minFL.ScaleOffset = 1
rDbg.PLCAddressClickItems.Add(minFL) // rDbg is my button name
The button's property ValueToWrite holds values (which is array of strings). It represents NumberOfElements that will be written with the driver's BeginWrite function.
--->
Dim arrData(4) As String
arrData(0) = "2969" // Data for above address
rDbg.ValueToWrite = arrData
Could you advice which part i'm missing ? Looks like I already follow your notes on your 1st posting.