I tried setting up a keypad with min, max values, but it keep saying the value I entered is not within the range(92, 125), eventhough it is . I tried to add CDbl or Cint, since they are real numbers from PLC, but with the same result.
It works fine without the min, max range
Private Sub EnterTipNumber()
Dim kpd As New MfgControl.AdvancedHMI.Controls.Keypad
kpd.Font = New Font("Arial", 12, FontStyle.Bold)
kpd.ForeColor = Color.AliceBlue
kpd.Text = "Enter Tip Number:"
kpd.MaxValue = CInt(PLC.Read("Sta0xPart.TipRange.HiLimit"))
kpd.MinValue = CInt(PLC.Read("Sta0xPart.TipRange.LoLimit"))
If kpd.ShowDialog = Windows.Forms.DialogResult.OK Then
PLC.Write("Sta0xPart.TipRange.Value", kpd.Value)
End If
End Sub