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.


Topics - Darrell

Pages: 1 ... 3 4 [5]
61
built a new HMI from Scratch with ver 3.84  - getting  -  failed to get processor type -  on my buttons etc. .  could there be a bug in the   EthernetIPforPLCSLCMicroCom1 driver . connected to a MicroLogix 1400 switched back to ver 3.80 and its OK.

Darrell

62
what does this mean , i come up in the Immediate window when I test my HMI , is this a problem , and where do I start looking using ver 3.80

A first chance exception of type 'System.NullReferenceException' occurred in AdvancedHMIDrivers.dll
A first chance exception of type 'MfgControl.AdvancedHMI.Drivers.Common.PLCDriverException' occurred in MfgControl.AdvancedHMI.Drivers.dll

63
Support Questions / Enter IP Address into Masked Edit Control
« on: October 30, 2014, 03:10:07 PM »
Trying to get this to work , any help would be appreciated.


Want to enter IP Address into Masked Edit Control, check if entry is valid (0-255) and jump to the next section of the mask using the dot (.) as separator, if the section is shorter than 3 digits (such as : 192.168.24.1).


Private Sub MaskedTextBox1_MaskInputRejected(sender As System.Object, e As System.Windows.Forms.MaskInputRejectedEventArgs) Handles MaskedTextBox1.MaskInputRejected


        Dim myIPValue As String


    End Sub
    Private Sub Form_Load()
        MaskedTextBox1.Mask = "###.###.###.###"
        MaskedTextBox1.PromptChar = Chr(32) 'space character
    End Sub


    Private Sub MaskEdBox1_KeyPress(KeyAscii As Integer)
        Dim mySplit() As String, c As Integer, jumpC As Integer, tmpString As String, tmpSplit As String


        If KeyAscii = 46 Then
            mySplit = Split(MaskedTextBox1.Text, Chr(46), -1)


            For c = 0 To UBound(mySplit)
                If IsNumeric(mySplit(c)) Then jumpC = jumpC + 4
                If Len(Trim(mySplit(c))) < 3 Then mySplit(c) = Space(3 - Len(Trim(mySplit(c)))) & Trim(mySplit(c))
            Next (c)
            tmpString = mySplit(0) & "." & mySplit(1) & "." & mySplit(2) & "." & mySplit(3)
            MaskedTextBox1.Text = tmpString
            MaskedTextBox1.SelStart = jumpC
            KeyAscii = 0
        End If
    End Sub


    Private Sub MaskEdBox1_KeyUp(KeyCode As Integer, Shift As Integer)
        Dim validSplit() As String, v As Integer, validString As String
        validSplit = Split(MaskedTextBox1.Text, Chr(46), -1)


        For v = 1 To UBound(validSplit)


            If validSplit(v) = "" Or v = UBound(validSplit) Then


                If Val(Trim(validSplit(v - 1))) > 255 Or (v = UBound(validSplit) And Val(Trim(validSplit(v))) > 255) Then
                    MsgBox("Invalid value")
                    If Val(validSplit(3)) > 0 Then v = v + 1
                    validSplit(v - 1) = ""
                    validString = validSplit(0) & "." & validSplit(1) & "." & validSplit(2) & "." & validSplit(3)
                    MaskedTextBox1.Text = validString
                    MaskedTextBox1.SelStart = (v - 1) * 4
                    Exit For
                End If
            End If
        Next (v)
        myIPValue = Replace(MaskedTextBox1.Text, " ", "")
    End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles ChangeIPButton.Click
        EthernetIPforPLCSLCMicroCom1.IPAddress = MaskedTextBox1.Text
    End Sub


64
I built a HMI with more than one screen , when I open the 2nd screen I have it hide the 1st one. The hidden screen does it stop communicating with the PLC , If it does, is there a way to hide it and make it stop communicating or do  I just have to close it.

Also how many instructions can pole the PLC before some do not work ,

Darrell

65
Support Questions / Hover mouse over component to show PLCAddressValue
« on: October 27, 2014, 04:03:33 PM »
I would like Hover mouse over a component and have the  PLCAddressValue  show ,  in order to quickly verify what is being read on my HMI , I would like to do this for more than one component on the the screen ,  I've spent the better part of my day playing with this and and can seem to get something to work ,  If someone could point me in the right direction , it would be very much appreciated

Thanks Darrell

66
Support Questions / Testing HMI without being connected to a PLC
« on: October 24, 2014, 06:43:50 PM »
I there a way to test your HMI without being connected to a PLC and getting all the connection errors.

I would like to have all communication off until I click a button to connect. maybe this is not an easy thing to do.

67
how can I display a decimal without Changing PLC code for  a Basic label or NumericSevenSegment .
If i receive a value of 245 for example I need to display 24.5

thanks Darrell

68
Support Questions / Force a value from HMI into plc address
« on: October 18, 2014, 10:39:30 PM »
Great Program , started playing with this a week ago and can't leave it alone.

Very new to VB , not sure how I can force a value into a PLC address from HMI , I'm using a Micro logix 1400

I want to us a button to force a number into and integer file or anolog output for testing puposes.

thanks
Darrell

69
Support Questions / Build into a single exe file instead of a setup file
« on: October 14, 2014, 10:56:03 PM »
cant seem to figure out how to build my advance hmi project into a single exe

70
I want to use a HMI to monitor several different different machine that are all programed exactly the same but have different IP addresses and on different networks. All have Micrologix 1400 , i move my laptop around to different machines I don't want to have to build a new HMI with a different ip for each one. Is it possible to add a button and textbox to force a new IP into the driver from a form.


Pages: 1 ... 3 4 [5]