Forum Replies Created
-
AuthorPosts
-
September 9, 2024 at 12:35 pm in reply to: Communicator error “unable to read data packet header” #15340
OPCUser
ParticipantHi there,
you were right, i had added influxDB as a datasource to grafana on the machine thats running RapidSCADA and Grafana.
I changed the port of Server and Communicator to 10003 (10001 and 10002 wasnt working for me) and then it was fine again.Thank you,
David
OPCUser
ParticipantOnce again, also that worked perfectly. You are really really great.
Thank you again, thanks for your work and constant and quick help and
response. Is there any way one can support you?OPCUser
ParticipantThat was the problem, indeed. Its working now, thanks a million times.
Is there a way to restart the OPC UA server after adding new variables
to the subscription group? I always have to reboot the entire pc
to make it work.OPCUser
ParticipantHi Mikhail,
stopping the service and starting the worker did the trick
and i do receive values now.Here is the ScadaComm.log:
——————————————————————————–
2024-07-29 13:30:50 [OPC-WINCC][OPC-WINCC$][ACT] Communicator 6.2.0.0 started
2024-07-29 13:30:50 [OPC-WINCC][OPC-WINCC$][ACT] Storage FileStorage 6.2.0.0 loaded from file C:\Program Files\SCADA\ScadaComm\FileStorage.dll
2024-07-29 13:30:50 [OPC-WINCC][OPC-WINCC$][ACT] Start logic processing
2024-07-29 13:30:50 [OPC-WINCC][OPC-WINCC$][ACT] Driver DrvDsOpcUaServer 6.0.0.2 loaded from file C:\Program Files\SCADA\ScadaComm\Drv\DrvDsOpcUaServer.Logic.dll
2024-07-29 13:30:50 [OPC-WINCC][OPC-WINCC$][ACT] Driver DrvDsScadaServer 6.0.1.1 loaded from file C:\Program Files\SCADA\ScadaComm\Drv\DrvDsScadaServer.Logic.dll
2024-07-29 13:30:50 [OPC-WINCC][OPC-WINCC$][ACT] Driver DrvOpcClassic 6.0.1.2 loaded from file C:\Program Files\SCADA\ScadaComm\Drv\DrvOpcClassic.Logic.dll
2024-07-29 13:30:50 [OPC-WINCC][OPC-WINCC$][ACT] Data source ScadaServer initialized successfully
2024-07-29 13:30:50 [OPC-WINCC][OPC-WINCC$][ACT] Data source OpcUaServer initialized successfully
2024-07-29 13:30:51 [OPC-WINCC][OPC-WINCC$][ACT] Data source ScadaServer: Receive the configuration database
2024-07-29 13:30:53 [OPC-WINCC][OPCSrv][ACT] Data source ScadaServer: Connection state is Logged In
2024-07-29 13:30:54 [OPC-WINCC][OPC-WINCC$][ACT] Data source ScadaServer: The configuration database has been received successfully
2024-07-29 13:30:54 [OPC-WINCC][OPC-WINCC$][ACT] Start communication lines
2024-07-29 13:30:54 [OPC-WINCC][OPC-WINCC$][ERR] Error calling the Start method of the OpcUaServer data source:
System.AggregateException: One or more errors occurred. (Failed to establish tcp listener sockets for Ipv4 and IPv6.)
—> Opc.Ua.ServiceResultException: Failed to establish tcp listener sockets for Ipv4 and IPv6.
at Opc.Ua.Bindings.TcpTransportListener.Start()
at Opc.Ua.Bindings.TcpTransportListener.Open(Uri baseAddress, TransportListenerSettings settings, ITransportListenerCallback callback)
at Opc.Ua.ServerBase.CreateServiceHostEndpoint(Uri endpointUri, EndpointDescriptionCollection endpoints, EndpointConfiguration endpointConfiguration, ITransportListener listener, ICertificateValidator certificateValidator)
at Opc.Ua.Bindings.TcpServiceHost.CreateServiceHost(ServerBase serverBase, IDictionary2 hosts, ApplicationConfiguration configuration, IList
1 baseAddresses, ApplicationDescription serverDescription, List`1 securityPolicies, X509Certificate2 instanceCertificate, X509Certificate2Collection instanceCertificateChain)
at Opc.Ua.Server.StandardServer.InitializeServiceHosts(ApplicationConfiguration configuration, TransportListenerBindings bindingFactory, ApplicationDescription& serverDescription, EndpointDescriptionCollection& endpoints)
at Opc.Ua.ServerBase.Start(ApplicationConfiguration configuration)
at Opc.Ua.Configuration.ApplicationInstance.Start(ServerBase server)
at Scada.Comm.Drivers.DrvDsOpcUaServer.Logic.OpcUaServerDSL.StartOpcServer()
— End of inner exception stack trace —
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at Scada.Comm.Drivers.DrvDsOpcUaServer.Logic.OpcUaServerDSL.Start()
at Scada.Comm.Engine.DataSourceHolder.Start()
2024-07-29 13:30:54 [OPC-WINCC][OPC-WINCC$][ACT] Start reading commands from files
2024-07-29 13:30:56 [OPC-WINCC][OPC-WINCC$][ACT] Data source ScadaServer: Connection state is Logged In
2024-07-29 13:31:15 [OPC-WINCC][OPCSrv][ACT] Application command App.Comm.RestartLine with ID 7397018915087741326 from C:\Program Files\SCADA\ScadaComm\Cmd\cmd_7397018915087741326.dat
2024-07-29 13:31:15 [OPC-WINCC][OPCSrv][ACT] Stop communication line [1] DA Line
2024-07-29 13:31:16 [OPC-WINCC][OPCSrv][ACT] Communication line [1] DA Line is stopped
2024-07-29 13:31:16 [OPC-WINCC][OPCSrv][ACT] Start communication line [1] DA Line
2024-07-29 13:31:16 [OPC-WINCC][OPCSrv][ACT] Data source ScadaServer: Receive the configuration database
2024-07-29 13:31:18 [OPC-WINCC][OPCSrv][ACT] Data source ScadaServer: The configuration database has been received successfullyHere is the communication line log:
2024-07-29 13:46:00 Device [1] DA Device. Process new data. Subscription: Grp1
Receive Linie_1.PID_Regulator_Extr1_1.Actual_S = 701 (good)2024-07-29 13:46:01 Device [1] DA Device. Process new data. Subscription: Grp1
Receive Linie_1.PID_Regulator_Extr1_1.Actual_S = 700 (good)2024-07-29 13:46:02 Device [1] DA Device. Process new data. Subscription: Grp1
Receive Linie_1.PID_Regulator_Extr1_1.Actual_S = 701 (good)
Receive Linie_1.PID_Regulator_Extr1_2.Actual_S = 1300 (good)2024-07-29 13:46:04 Device [1] DA Device. Process new data. Subscription: Grp1
Receive Linie_1.PID_Regulator_Extr1_2.Actual_S = 1302 (good)2024-07-29 13:46:07 Device [1] DA Device. Process new data. Subscription: Grp1
Receive Linie_1.PID_Regulator_Extr1_2.Actual_S = 1304 (good)This seems to be working.
The OPC UA server is having troubles though. As you can see there are some problems regarding opening listener sockets.
I am able to connect to to UA Server with UA Expert but i dont have access to
the variables. I can browse the tree up to the device folder but thats it.Thank you very much for your help so far.
Greetings.OPCUser
ParticipantSure. This is what i can gather with the IntegrationObjets DA Client:
<SETTING>
<SOFTWARENAME>OPC Data Access Explorer::Item Properties</SOFTWARENAME>
<TagInfo>
<AccessPath/>
<AccessRight>rw</AccessRight>
<DataType>VT_I4 </DataType>
<GroupName>Group_1</GroupName>
<ItemID>Linie_1.PID_Regulator_Extr1_1.Actual_S</ItemID>
<ServerAddress>OPC-WINCC</ServerAddress>
<ServerName>Sigmatek.OPCServer.1</ServerName>
<State>Active</State>
<Propertie0>
<PropertieDescription>Item Canonical DataType</PropertieDescription>
<PropertieType>VT_I2</PropertieType>
<PropertieValue>3</PropertieValue>
</Propertie0>
<Propertie1>
<PropertieDescription>Item Value</PropertieDescription>
<PropertieType>VT_I4 </PropertieType>
<PropertieValue>749</PropertieValue>
</Propertie1>
<Propertie2>
<PropertieDescription>Item Quality</PropertieDescription>
<PropertieType>VT_I2</PropertieType>
<PropertieValue>192</PropertieValue>
</Propertie2>
<Propertie3>
<PropertieDescription>Item Timestamp</PropertieDescription>
<PropertieType>VT_DATE</PropertieType>
<PropertieValue>25.07.2024 15:28:36</PropertieValue>
</Propertie3>
<Propertie4>
<PropertieDescription>Item Access Rights</PropertieDescription>
<PropertieType>VT_I4 </PropertieType>
<PropertieValue>3</PropertieValue>
</Propertie4>
<Propertie5>
<PropertieDescription>Server Scan Rate</PropertieDescription>
<PropertieType>VT_R4</PropertieType>
<PropertieValue>10.000000 </PropertieValue>
</Propertie5>
<Propertie6>
<PropertieDescription>Item Description</PropertieDescription>
<PropertieType>VT_BSTR</PropertieType>
<PropertieValue> </PropertieValue>
</Propertie6>
</TagInfo>
</SETTING>OPCUser
ParticipantSorry, my bad. Once again:
2024-07-24 11:09:41 Device [1] OPC DA Client. Process new data. Subscription: dude
Receive Linie_1.PID_Regulator_Extr1_1.Actual_S = (unspecified)2024-07-24 11:09:42 Device [1] OPC DA Client. Process new data. Subscription: dude
Receive Linie_1.PID_Regulator_Extr1_1.Actual_S = (unspecified)2024-07-24 11:09:42 Device [1] OPC DA Client. Process new data. Subscription: dude
Receive Linie_1.PID_Regulator_Extr1_1.Actual_S = (unspecified)2024-07-24 11:09:42 Device [1] OPC DA Client. Process new data. Subscription: dude
Receive Linie_1.PID_Regulator_Extr1_1.Actual_S = (unspecified)2024-07-24 11:09:43 Device [1] OPC DA Client. Process new data. Subscription: dude
Receive Linie_1.PID_Regulator_Extr1_1.Actual_S = (unspecified)2024-07-24 11:09:43 Device [1] OPC DA Client. Process new data. Subscription: dude
Receive Linie_1.PID_Regulator_Extr1_1.Actual_S = (unspecified)2024-07-24 11:09:43 Device [1] OPC DA Client. Process new data. Subscription: dude
Receive Linie_1.PID_Regulator_Extr1_1.Actual_S = (unspecified)OPCUser
Participantsure thing, here we go:
——————————————————————————–
2024-07-16 16:35:27 [OPC-WINCC][OPC-WINCC$][ACT] Communicator 6.2.0.0 started
2024-07-16 16:35:27 [OPC-WINCC][OPC-WINCC$][ACT] Storage FileStorage 6.2.0.0 loaded from file C:\Program Files\SCADA\ScadaComm\FileStorage.dll
2024-07-16 16:35:27 [OPC-WINCC][OPC-WINCC$][ACT] Start logic processing
2024-07-16 16:35:27 [OPC-WINCC][OPC-WINCC$][ACT] Driver DrvDsScadaServer 6.0.1.1 loaded from file C:\Program Files\SCADA\ScadaComm\Drv\DrvDsScadaServer.Logic.dll
2024-07-16 16:35:27 [OPC-WINCC][OPC-WINCC$][ACT] Driver DrvOpcClassic 6.0.1.2 loaded from file C:\Program Files\SCADA\ScadaComm\Drv\DrvOpcClassic.Logic.dll
2024-07-16 16:35:27 [OPC-WINCC][OPC-WINCC$][ACT] Data source ScadaServer initialized successfully
2024-07-16 16:35:27 [OPC-WINCC][OPC-WINCC$][ACT] Data source ScadaServer: Receive the configuration database
2024-07-16 16:35:31 [OPC-WINCC][OPC-WINCC$][ERR] Data source ScadaServer: Error checking server connection:
Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte. [::ffff:127.0.0.1]:10000
2024-07-16 16:35:31 [OPC-WINCC][OPC-WINCC$][ERR] Unable to start communication lines because the configuration database is not received
2024-07-16 16:35:37 [OPC-WINCC][OPC-WINCC$][ACT] Data source ScadaServer: Receive the configuration database
2024-07-16 16:35:40 [OPC-WINCC][OPC-WINCC$][ACT] Data source ScadaServer: The configuration database has been received successfully
2024-07-16 16:35:40 [OPC-WINCC][OPC-WINCC$][ACT] Start communication lines
2024-07-16 16:35:40 [OPC-WINCC][OPC-WINCC$][ACT] Start reading commands from files
2024-07-16 16:35:42 [OPC-WINCC][OPC-WINCC$][ACT] Data source ScadaServer: Connection state is Logged In
2024-07-23 13:24:40 [OPC-WINCC][OPC-WINCC$][ACT] Stop communication lines
2024-07-23 13:24:40 [OPC-WINCC][OPC-WINCC$][ACT] Data source ScadaServer: Connection state is Error
2024-07-23 13:24:40 [OPC-WINCC][OPC-WINCC$][ERR] Data source ScadaServer: Error receiving telecontrol commands:
Unable to read data from the transport connection: Eine bestehende Verbindung wurde softwaregesteuert
durch den Hostcomputer abgebrochen..
2024-07-23 13:24:40 [OPC-WINCC][OPC-WINCC$][ACT] All communication lines are stopped
2024-07-23 13:24:44 [OPC-WINCC][OPC-WINCC$][ERR] Data source ScadaServer: Error receiving telecontrol commands:
Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte. [::ffff:127.0.0.1]:10000
2024-07-23 13:24:44 [OPC-WINCC][OPC-WINCC$][ACT] Logic processing is stopped
2024-07-23 13:24:44 [OPC-WINCC][OPC-WINCC$][ACT] Communicator is stopped
——————————————————————————–
——————————————————————————–
2024-07-23 13:25:09 [OPC-WINCC][OPC-WINCC$][ACT] Communicator 6.2.0.0 started
2024-07-23 13:25:09 [OPC-WINCC][OPC-WINCC$][ACT] Storage FileStorage 6.2.0.0 loaded from file C:\Program Files\SCADA\ScadaComm\FileStorage.dll
2024-07-23 13:25:09 [OPC-WINCC][OPC-WINCC$][ACT] Start logic processing
2024-07-23 13:25:09 [OPC-WINCC][OPC-WINCC$][ACT] Driver DrvDsScadaServer 6.0.1.1 loaded from file C:\Program Files\SCADA\ScadaComm\Drv\DrvDsScadaServer.Logic.dll
2024-07-23 13:25:09 [OPC-WINCC][OPC-WINCC$][ACT] Driver DrvOpcClassic 6.0.1.2 loaded from file C:\Program Files\SCADA\ScadaComm\Drv\DrvOpcClassic.Logic.dll
2024-07-23 13:25:09 [OPC-WINCC][OPC-WINCC$][ACT] Data source ScadaServer initialized successfully
2024-07-23 13:25:09 [OPC-WINCC][OPC-WINCC$][ACT] Data source ScadaServer: Receive the configuration database
2024-07-23 13:25:14 [OPC-WINCC][OPC-WINCC$][ERR] Data source ScadaServer: Error checking server connection:
Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte. [::ffff:127.0.0.1]:10000
2024-07-23 13:25:14 [OPC-WINCC][OPC-WINCC$][ERR] Unable to start communication lines because the configuration database is not received
2024-07-23 13:25:20 [OPC-WINCC][OPC-WINCC$][ACT] Data source ScadaServer: Receive the configuration database
2024-07-23 13:25:23 [OPC-WINCC][OPC-WINCC$][ACT] Data source ScadaServer: The configuration database has been received successfully
2024-07-23 13:25:23 [OPC-WINCC][OPC-WINCC$][ACT] Start communication lines
2024-07-23 13:25:23 [OPC-WINCC][OPC-WINCC$][ACT] Start reading commands from files
2024-07-23 13:25:25 [OPC-WINCC][OPC-WINCC$][ACT] Data source ScadaServer: Connection state is Logged In -
AuthorPosts