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 - bachphi

Pages: 1 ... 4 5 [6]
76
Support Questions / ICommComponentInterface.pdf
« on: April 04, 2016, 01:09:20 PM »
In the Document folder, there is a PDF  file that mentioned some functions like ReadAny, WriteData ... Isn't it  applicable to the current project?
Thanks.

77
I have a local PC running RSLinx Gateway with 2 ethernet cards ( local & plant network). The local network connect to a compactlogix PLC.
I can run my RSLogix5000 program indirectly from plant network to local network via a path thru RSLinx gateway.
I can also run my AAHMI app. indirectly from plant network to local network via OPCDACom driver.

Now , I just wondering, by any chance if, possible to run it indirectly with ethernet driver?
Something like \10.10.10.22\DP_Sta03\192.168.1.30

Port forwarding may be another option? But that would defeat the RSLinx gateway.


78
Open Discussion / OPC-UA in the pipeline?
« on: December 13, 2015, 12:10:26 AM »
AAHMI has a driver for OPCDA, but I am curious to know if it will  work with OPC-UA as well? Like the one from Inductive Automation. TIA

79
Support Questions / ChartBySampling and display time
« on: November 24, 2015, 10:05:02 AM »
I am using 3.99a and wanted to use Time on X axis, so I changed XValueType to Time, but it only display 12:00AM  over and over. How do I fix this? Thanks in advance.

80
It works with TimeInterval. But when I change to DataChange type and change the value of my PLC tag, I dont see it record any value. TIA.


81
I tried the following without success:

Code: [Select]
Private Sub MessageDisplayByValue1_TextChanged(sender As Object, e As EventArgs) Handles MessageDisplayByValue1.TextChanged
        MessageDisplayByValue1.HighlightColor = Color.Yellow
    End Sub

82
Support Questions / DataSubscriber1 and BeginRead DINTArray
« on: September 09, 2015, 05:32:14 PM »
I have a DataSubscriber1 and I set a boolean triggerbit in its PLCAddressvalue. Then in DataChanged i set BeginRead of a DINTArray[10], but it only show the first value is being read. Nothing show up on label4 and 5. TIA.


Code: [Select]
    Private Sub DataSubscriber1_DataChanged(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles DataSubscriber1.DataChanged       

        EthernetIPforCLXCom1.BeginRead("TempDINTArray[0]", 3)

    End Sub

    Private MyValue As String
    Private Sub EthernetIPforCLXCom1_DataReceived(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles EthernetIPforCLXCom1.DataReceived
       
        If e.PlcAddress = "TempDINTArray[0]" Then
            MyValue = e.Values(0)
            Label3.Text = e.Values(0)
        End If
        If e.PlcAddress = "TempDINTArray[1]" Then
            Label4.Text = e.Values(0)
        End If
        If e.PlcAddress = "TempDINTArray[2]" Then
            Label5.Text = e.Values(0)
        End If
    End Sub

83
Support Questions / Barcode Scanner and FormChange button
« on: September 08, 2015, 05:27:31 PM »
In the past, I was using the RTA module from Real Time Automation to read barcode scanning directly into CompactLogix, but with ADHMI,  I can now read or type in the barcode from PC, then pass it on to PLC.
First, I set the KeyPreview in the MainForm_Load, then using KeyPress event to catch the content of barcode and check for valid expression using regular expression.
It works fine until I added a FormChange button to go Form2, since many scanners come with the default setting of sending CR key, now after scanning the barcode, it then open Form2. I like to avoid reprogramming the scanner not to send CR key since it is default setting.
Any ideas of avoiding this situation?  TIA.


Code: [Select]
Private Sub MainForm_KeyPress(sender As Object, e As KeyPressEventArgs)

        e.KeyChar = Convert.ToChar(e.KeyChar.ToString().ToUpper())
        Dim pattern As String = "[R]{1}[2]{1}[N]{1}[MPW]{1}[A-Z0-9]{4}"   '//R2NP1234

        Dim regex As Regex = New Regex(pattern)

        If ((e.KeyChar >= ChrW(48) And e.KeyChar <= ChrW(57)) Or (e.KeyChar >= ChrW(65) And e.KeyChar <= ChrW(90))) Then
            If ((barcodeSerial.Length = 0) And (e.KeyChar = "R")) Then
                barcodeSerial = barcodeSerial + e.KeyChar.ToString()
                Label2.Text = barcodeSerial.ToString()

            ElseIf ((barcodeSerial.Length > 0) And (barcodeSerial.Length < 8)) Then
                barcodeSerial = barcodeSerial + e.KeyChar.ToString()
                Label2.Text = barcodeSerial.ToString()
            End If
        End If
        If ((e.KeyChar = ChrW(8)) And (barcodeSerial.Length > 0)) Then           '//if mistake, use the backspace key
            barcodeSerial = barcodeSerial.Substring(0, barcodeSerial.Length - 1)
            Label2.Text = barcodeSerial.ToString()
        End If
        If (regex.IsMatch(barcodeSerial)) Then
            BasicLabel1.Text = barcodeSerial.ToString()
            EthernetIPforCLXCom1.Write("FromPC_Barcode", barcodeSerial)
        End If
       

    End Sub

84
Support Questions / VS2015 and .NET framework 4.6
« on: September 08, 2015, 10:02:06 AM »
Since I am just starting new with ADHMI, I downloaded VS2015 community edition, I checked out its feature and I thinks it pretty powerful package, not much different from the Pro edition and it also come with .NET 4.6 , I started to use 4.6 instead. In the past I have used  .NET  4.5 and 4.5.2 , they are pretty stable as well.
Just wondering when you are moving to 4.6 :)

85
Support Questions / Basic Button and "Tag" property
« on: September 06, 2015, 09:35:05 AM »
Below the TabStop , there is "Tag" property. What does this do?  TIA.

86
Support Questions / DO I have to add Ethernet driver for each new form?
« on: August 14, 2015, 09:52:23 AM »
For each new form that I created, it seemed like I have to add E-net driver for it to work. Do I have to really do this?

Pages: 1 ... 4 5 [6]