This error comes from the DigitalPanelMeter. at line 356 in this code:
Try
'* V3.99y Beta 19 - added writing through subscriptionHandler for Tag Alias purposes
If KeypadScaleFactor = 1 Or KeypadScaleFactor = 0 Then
m_ComComponent.Write(m_PLCAddressKeypad, KeypadPopUp.Value)
Else
m_ComComponent.Write(m_PLCAddressKeypad, Convert.ToString(CDbl(KeypadPopUp.Value) / m_KeypadScaleFactor))
End If
Catch ex As Exception
System.Windows.Forms.MessageBox.Show("Failed to write value. " & ex.Message)
End Try
- In Solution Explorer, expand down the AdvancedHMIControls project
- Expand down the Controls folder
- Right Click DigitalPanelMeter.vb and select View Code
- Scroll down to line 361, which should be this "m_ComComponent.Write(m_PLCAddressKeypad, Convert.ToString(CDbl(KeypadPopUp.Value) / m_KeypadScaleFactor))"
- Click to the left of it to add a break point. It will show up as a red circle
- Run the code and enter a value
- The program will stop at the break point
- Hover over KeypadPopUp.Value and KeypadPopUp.Value to see their current values. Post those values here