Author Topic: problem with Meter Expansion Pack 3.99y beta  (Read 694 times)

jazzplayermark

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
problem with Meter Expansion Pack 3.99y beta
« on: December 25, 2018, 08:15:05 AM »
I'm trying to use the LinearMeterH and LinearMeterV components and keep getting an error at runtime.

The component works fine and then posts the error 'Invalid Slc/Micro address - 30'. It's cyclic and repeats every few seconds.

I used the files from the root of the extracted folder.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: problem with Meter Expansion Pack 3.99y beta
« Reply #1 on: December 25, 2018, 08:21:23 AM »
What address are you using? Can you tried the same address in a BasicLabel to see if it is a driver problem or a meter problem?

jazzplayermark

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: problem with Meter Expansion Pack 3.99y beta
« Reply #2 on: December 25, 2018, 10:23:56 AM »
I'm using the same address in a basic label, panelmeter and pressure gauge and they all seem fine. This is not an emergency Archie. You can take the day off :).

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: problem with Meter Expansion Pack 3.99y beta
« Reply #3 on: December 25, 2018, 11:22:45 AM »
That message does come from the driver and the message should return the address following the dash. So that tells me the meter is trying to subscriber to address "30".

- In Solution Explorer, select the form that has the meter by clicking it once
- Click the icon at the top of Solution Explorer for Show All Files
- Now expand down the form's vb file so you can see the .designer.vb file
- Open that file
- Scroll down until you see the section with the comment that matches the name of the meter
- Post that block of code so I can use it to make sure I replicate all of the same property values you have

jazzplayermark

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: problem with Meter Expansion Pack 3.99y beta
« Reply #4 on: December 25, 2018, 11:53:00 AM »
Here is one of the meters.
Code: [Select]
  'LinearMeterV1
        '
        Me.LinearMeterV1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
        Me.LinearMeterV1.BorderColor = System.Drawing.Color.DimGray
        Me.LinearMeterV1.BorderWidth = 8
        Me.LinearMeterV1.CenterTargetValue = False
        Me.LinearMeterV1.CommComponent = Me.EthernetIPforSLCMicroCom1
        Me.LinearMeterV1.FillAreaBackcolor = System.Drawing.Color.LightGray
        Me.LinearMeterV1.FillColor = System.Drawing.Color.FromArgb(CType(CType(128, Byte), Integer), CType(CType(16, Byte), Integer), CType(CType(16, Byte), Integer))
        Me.LinearMeterV1.FillColorInRange = System.Drawing.Color.FromArgb(CType(CType(16, Byte), Integer), CType(CType(128, Byte), Integer), CType(CType(16, Byte), Integer))
        Me.LinearMeterV1.FillType = MfgControl.AdvancedHMI.Controls.LinearMeterBase.FillTypeOption.Fill
        Me.LinearMeterV1.ForeColor = System.Drawing.Color.Black
        Me.LinearMeterV1.KeypadFontColor = System.Drawing.Color.WhiteSmoke
        Me.LinearMeterV1.KeypadMaxValue = 0R
        Me.LinearMeterV1.KeypadMinValue = 0R
        Me.LinearMeterV1.KeypadScaleFactor = 1.0R
        Me.LinearMeterV1.KeypadText = Nothing
        Me.LinearMeterV1.KeypadWidth = 300
        Me.LinearMeterV1.Location = New System.Drawing.Point(803, 374)
        Me.LinearMeterV1.MajorDivisions = 2
        Me.LinearMeterV1.Maximum = 50.0R
        Me.LinearMeterV1.Minimum = 0R
        Me.LinearMeterV1.MinorDivisions = 5
        Me.LinearMeterV1.Name = "LinearMeterV1"
        Me.LinearMeterV1.NumericFormat = Nothing
        Me.LinearMeterV1.PLCAddressKeypad = ""
        Me.LinearMeterV1.PLCAddressTargetValue = "30"
        Me.LinearMeterV1.PLCAddressText = Nothing
        Me.LinearMeterV1.PLCAddressValue = "f8:0"
        Me.LinearMeterV1.PLCAddressVisible = Nothing
        Me.LinearMeterV1.ScaleTargetValue = True
        Me.LinearMeterV1.ShowValidRangeMarker = True
        Me.LinearMeterV1.ShowValue = True
        Me.LinearMeterV1.Size = New System.Drawing.Size(86, 175)
        Me.LinearMeterV1.TabIndex = 92
        Me.LinearMeterV1.TargetValue = 50.0R
        Me.LinearMeterV1.ToleranceMinus = 10.0R
        Me.LinearMeterV1.TolerancePlus = 10.0R
        Me.LinearMeterV1.Value = 0R
        Me.LinearMeterV1.ValueScaleFactor = 1.0R

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: problem with Meter Expansion Pack 3.99y beta
« Reply #5 on: December 25, 2018, 11:56:56 AM »
This is where the problem is coming from:

PLCAddressTargetValue = "30"


Did you mean to put that n TargetValue ?

jazzplayermark

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: problem with Meter Expansion Pack 3.99y beta
« Reply #6 on: December 25, 2018, 12:25:41 PM »
Oh guezz... I meant to put that in the property 'target value', not PlcAddressTargetValue...

thanks. that fixed it...