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.


Messages - baguinn

Pages: [1] 2 3
1
I have the same problem, the only thing I have come up with is an OPC server. If using TIA, the datablocks have to be unoptimized so that they use absolute addressing to be able to read them. If using Classic (v5.x) they pull right in. It does add cost, then you have to get around DCOM issues if you use one remote server to host all your applications which you can do.

Hope this helps put you on a useful track.

2
Your problem sounds like the one I had. It looks like you are using a remote OPC server. If this is the case,  you are having DCOM issues. I'd like to say I know all about it,  but what I do know is that these are security measures inside of Windows. I got some help from some folks much smarter than me, they created me another OPC driver with all the security stuff. Not exactly sure what all that involves and if it fixes every case.

3
Open Discussion / Re: Siemens Protocols
« on: November 28, 2015, 12:03:50 PM »
I found that one also. It was based on ver 3.21 if I remember correctly. Many of the functions had been removed. I was able to get some help and get around my DCOM issues with our OPC server. I will probably just stick with that until there is a native driver available. Besides, from what I am learning about Siemens, the number of connections is critical. It may be advantageous to use the OPC server since it is already in place for shop floor applications. Thanks for the suggestion.

4
Open Discussion / Re: User Group
« on: November 10, 2015, 09:09:48 PM »
Very possible I could make it.

5
Support Questions / Re: 399a and Remote OPC Server
« on: November 05, 2015, 07:53:04 PM »
It is not a problem with Kepware connecting to the PLC, it is a problem with the server that kepware is on allowing to be read from.

6
Support Questions / Re: 399a and Remote OPC Server
« on: November 04, 2015, 10:55:29 PM »
That is what I have.

Actually,  KepServer is talking to several plc's,  I them use the OPC driver to connect to the OPC server.

7
Support Questions / Re: 399a and Remote OPC Server
« on: November 02, 2015, 10:12:00 PM »
Thanks guys, I will look into DCOM issues.

8
Support Questions / Re: 399a and Remote OPC Server
« on: November 02, 2015, 08:59:38 PM »
After further testing, the slow loading only occurs when using a remote OPC server. The real problem is when using the remote OPC server, OPC driver only updates on loading. It never seems to update again. Writing is almost instantaneous and will continue to write values even though a read never seems to occur.

When using a localhost OPC server everything works as it is suppose to. Is there a time value on read that I am missing that needs extending when working with a remote server that I am missing?

I would appreciate any help you could lend. I am only using OPC due to the lack of a Siemens driver. I am really hoping not to have to buy a local Siemens OPC server for each installation. This would also increase the number of connections on the plc which I would probably run out of fairly quickly.

9
Support Questions / Re: 399a and Remote OPC Server
« on: November 01, 2015, 09:47:46 AM »
Trying to do some troubleshooting myself by using breakpoints, I have found that the slow connection comes in at line 423

        SubscriptionOPC = DirectCast(DLL.CreateSubscription(SubscriptionState), Opc.Da.Subscription)
                AddHandler SubscriptionOPC.DataChanged, AddressOf DataChangedCallBack
            Catch ex As Exception
                Dim dbg = 0
            End Try
        End If

After getting through this, a value will appear.

The update problem I can't figure out.  The local opc server and remote opc server both go through the DataChangedCallBack at line 520.

Private Sub DataChangedCallBack(ByVal clientHandle As Object, ByVal requestHandle As Object, ByVal values() As Opc.Da.ItemValueResult)
        For i = 0 To values.Length - 1
            Dim ReturnedValues() As String = {Convert.ToString(values(i).Value)}
            Dim PolledAddress As PolledAddressInfo = DirectCast(values(i).ClientHandle, PolledAddressInfo)

            'For j = 0 To Subscription.Items.Count - 1
            'If PolledAddress.OPCItem.ItemName = DirectCast(Subscription.Items(j).ClientHandle, PolledAddressInfo).OPCItem.ItemName Then

            Dim PLCAddress As String = values(i).ItemName
            '* If there is a Topic, strip it back off before sending back to subscriber
            If m_OPCTopic IsNot Nothing AndAlso Not String.IsNullOrEmpty(m_OPCTopic) Then
                PLCAddress = PLCAddress.Substring(m_OPCTopic.Length + 2)
            End If

            Dim x As New MfgControl.AdvancedHMI.Drivers.Common.PlcComEventArgs(ReturnedValues, PLCAddress, 0)
            x.SubscriptionID = PolledAddress.ID
                Dim z() As Object = {Me, x}
                m_SynchronizingObject.BeginInvoke(PolledAddress.dlgCallBack, z)
            'End If
            'Next
        Next

  The local seems to update the display here, but the remote does not.  What am I missing?

10
Support Questions / 399a and Remote OPC Server
« on: October 31, 2015, 11:02:49 AM »
I am developing an application using Kepware as my Remote OPC Server.

I am having a problem with very slow reads.  When opening the application, it takes 1 minute or more to populate the screen with values.  If I write a value, it changes in the PLC immediately but never seems to update on my application unless I restart the application.

If I run a localhost OPC server, it reads and writes immediately.

Is there anything that might be able to help my read times?

11
Siemens MPI or ethernet driver. Preferably ethernet.

12
Open Discussion / Re: Siemens Protocols
« on: September 03, 2015, 10:26:23 PM »
Thanks for the quick reply, I'll keep checking back. As much as I would like to know how to develop this myself,  it is outside my capabilities at this time. I'll check into Snap7 to see if I might be able to figure out how to use it.

13
Open Discussion / Re: Siemens Protocols
« on: September 03, 2015, 09:42:16 PM »
Just checking in again to see if there has been any consideration for a Siemens ethernet driver?  Or if anyone has any examples or advice on how to use Libnodave with Advanced HMI.

14
Support Questions / Re: Who has run applications long term?
« on: February 28, 2015, 08:14:45 PM »
I have a chemical batching application that has been running for about 3 1/2 years now (ver 3.23). It runs 24/7.  It has had an occasional crash,  but not sure if it was software or hardware related, as this application is running on a standard Dell desktop PC.

I have other applications that have been running for about 2 years,  also ver. 3.23. I have not heard of any problems with them. They are running on dedicated industrial PC's.

15
Open Discussion / Re: Siemens Protocols
« on: October 22, 2014, 01:10:05 PM »
Thanks Archie.

My new position is 100% Siemens so right now the only way to use Advanced HMI is with an OPC Server.  Which is not bad, I just know there can be other ways.

Thanks Again,

Pages: [1] 2 3