Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ibah

Pages: [1]
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.


2
Additional Components / Re: BasicButton - Multi Address/Value Write
« on: June 16, 2021, 03:44:56 AM »
Hi Godra,

Is it true that I cant assign the plc address list & value to be sent to PLC programmatically ?

I tried the following code but I keep getting error something like 'the address & value not match'. It works if I set from the properties.

Dim minFL As New AdvancedHMIControls.ClickItem, maxFL As New AdvancedHMIControls.ClickItem, volFlow As New AdvancedHMIControls.ClickItem
        Dim freqVal As New AdvancedHMIControls.ClickItem
        Dim arrData(4) As String

        'Minimum flowrate
        minFL.PLCAddress = "F40037"
        minFL.ScaleFactor = 0
        minFL.ScaleOffset = 1

        'Max flowrate
        maxFL.PLCAddress = "F40035"
        maxFL.ScaleFactor = 0
        maxFL.ScaleOffset = 1

        'Freq value
        freqVal.PLCAddress = "F40082"
        freqVal.ScaleFactor = 0
        freqVal.ScaleOffset = 1

        'Volume flow
        volFlow.PLCAddress = "40131"
        volFlow.ScaleFactor = 0
        volFlow.ScaleOffset = 1



        rDbg.PLCAddressClickItems.Add(minFL)
        rDbg.PLCAddressClickItems.Add(maxFL)
        rDbg.PLCAddressClickItems.Add(freqVal)
        rDbg.PLCAddressClickItems.Add(volFlow)


        arrData(0) = "2969"
        arrData(1) = "3125"
        arrData(2) = "100"
        arrData(3) = "43.8"

        rDbg.ValueToWrite = arrData
        rDbg.ValueToWriteType = AdvancedHMIControls.BasicButtonMulti.ValType.NumericType

3
Application Showcase / Re: Custom Trending with SQLite
« on: June 03, 2021, 09:57:45 PM »
Hi Justin,

Is it possible to share your code / component ?

Pages: [1]