Forum Home › Forums › Communicating with Devices › OPC › OPC DA no values received
Tagged: OPC DA no values received
- This topic has 23 replies, 3 voices, and was last updated 9 months, 1 week ago by
Mikhail.
-
AuthorPosts
-
July 23, 2024 at 10:23 am #15010
OPCUser
ParticipantHello everyone,
i am trying to set up a DA to UA Gateway.
However i do have problems receiving values from my DA Server.
I am able to browse the server variables, can add variables to a channel,
but i dont get any values displayed.Rapidscada and the OPC DA Server are running on the same machine.
In the Line log it says, that the value to be received is “(unspecified)”
[1] OPC DA Comm --------------- Status : Normal Communication channel : Undefined Shared Data (1) --------------- OpcClassicLineData = <Object> Devices (1) ----------- [1] OPC DA Client : Normal [1] OPC DA Client ----------------- Driver : DrvOpcClassic 6.0.1.2 Status : Normal Session time : 23/07/2024 12:16:22 Command time : Undefined Sessions (total / errors) : 2137038 / 0 Commands (total / errors) : 0 / 0 Requests (total / errors) : 2137038 / 0 Current Data +---+----------------------------------------+----------------------------------------+-------+---------+ | # | Code | Name | Value | Channel | +---+----------------------------------------+----------------------------------------+-------+---------+ | *********************************************** dude ************************************************ | +---+----------------------------------------+----------------------------------------+-------+---------+ | 1 | Linie_1.PID_Regulator_Extr1_1.Actual_S | Linie_1.PID_Regulator_Extr1_1.Actual_S | --- | | +---+----------------------------------------+----------------------------------------+-------+---------+
Sorry for the editing, i dont know how to post a logfile properly.
Any help is greatly appreciated, in need of further data please let me know.
Thank you very much in advance.
David
-
This topic was modified 11 months ago by
Mikhail.
July 23, 2024 at 11:41 am #15013Mikhail
ModeratorHello,
Could copy a part of communication line log?July 23, 2024 at 2:56 pm #15014OPCUser
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 InJuly 24, 2024 at 8:59 am #15021Mikhail
ModeratorThe above is ScadaComm.log
But we need lineXXX.logJuly 24, 2024 at 9:11 am #15022OPCUser
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)July 25, 2024 at 11:17 am #15023Mikhail
ModeratorCan you compare the received data (unspecified) with data collected by any other OPC client? For example, Prosys OPC UA Browser.
July 25, 2024 at 11:32 am #15024OPCUser
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>July 26, 2024 at 9:05 am #15032Mikhail
ModeratorCommunicator works as a service with the system account, while most of OPC clients work as an application.
Try the following:
1. Stop the ScadaComm6 service.
2. Open command line and execute ScadaCommWkr.exe
What will you get in ScadaComm.log and communication line log?July 29, 2024 at 11:51 am #15068OPCUser
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.July 30, 2024 at 9:49 am #15069Mikhail
Moderator2024-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
Looks like the ScadaComm6 service is not stopped. Users OPC-WINCC$ and OPCSrv are mixed in the log file.
July 31, 2024 at 5:05 pm #15076OPCUser
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.August 1, 2024 at 11:19 am #15081Mikhail
ModeratorYou should try the setup the ScadaComm6 service to work as the OPCSrv user. See this.
It’s enough to restart Communicator that works as a service or application.August 1, 2024 at 11:38 am #15085OPCUser
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?August 2, 2024 at 12:01 pm #15086Mikhail
Moderator> Is there any way one can support you?
Purchase of any additional modules is appreciated.September 11, 2024 at 7:34 am #15380leibiao
ParticipantSorry to interrupt, but please forgive me for interrupting. I’m new to using rapidscada and now I’m having a similar issue, I’m able to explore server variables, I am able to browse the server variables, can add variables to a channel,but i dont get any values displayed.
This is the content of the device page,there is no value:
[1] nodered ----------- Driver : DrvOpcClassic 6.0.1.2 Status : Undefined Session time : Undefined Command time : Undefined Sessions (total / errors) : 0 / 0 Commands (total / errors) : 0 / 0 Requests (total / errors) : 0 / 0 Current Data +---+------------------------------------------+------------------------------------------+-------+---------+ | # | Code | Name | Value | Channel | +---+------------------------------------------+------------------------------------------+-------+---------+ | ************************************************* test ************************************************** | +---+------------------------------------------+------------------------------------------+-------+---------+ | 1 | Device1.MoldInfoString.Data | Device1.MoldInfoString.Data | --- | | +---+------------------------------------------+------------------------------------------+-------+---------+ | 2 | Device1.Parameter_Online.Back_Pressure | Device1.Parameter_Online.Back_Pressure | --- | | +---+------------------------------------------+------------------------------------------+-------+---------+ | 3 | Device1.Parameter_Online.Back_pressure_1 | Device1.Parameter_Online.Back_pressure_1 | --- | | +---+------------------------------------------+------------------------------------------+-------+---------+
Here is the ScadaComm.log:
2024-09-11 14:19:51 [LAPTOP-QATS2QI7][LAPTOP-QATS2QI7$][ACT] Communicator 6.2.0.1 started 2024-09-11 14:19:51 [LAPTOP-QATS2QI7][LAPTOP-QATS2QI7$][ACT] Storage FileStorage 6.2.0.0 loaded from file C:\Apply\rapidscada\rapidscada_6.3.0\RapidScadaInstall\ScadaComm\FileStorage.dll 2024-09-11 14:19:51 [LAPTOP-QATS2QI7][LAPTOP-QATS2QI7$][ACT] Start logic processing 2024-09-11 14:19:51 [LAPTOP-QATS2QI7][LAPTOP-QATS2QI7$][ACT] Driver DrvDsOpcUaServer 6.1.0.0 loaded from file C:\Apply\rapidscada\rapidscada_6.3.0\RapidScadaInstall\ScadaComm\Drv\DrvDsOpcUaServer.Logic.dll 2024-09-11 14:19:51 [LAPTOP-QATS2QI7][LAPTOP-QATS2QI7$][ACT] Driver DrvDsScadaServer 6.0.1.1 loaded from file C:\Apply\rapidscada\rapidscada_6.3.0\RapidScadaInstall\ScadaComm\Drv\DrvDsScadaServer.Logic.dll 2024-09-11 14:19:51 [LAPTOP-QATS2QI7][LAPTOP-QATS2QI7$][ACT] Driver DrvOpcClassic 6.0.1.2 loaded from file C:\Apply\rapidscada\rapidscada_6.3.0\RapidScadaInstall\ScadaComm\Drv\DrvOpcClassic.Logic.dll 2024-09-11 14:19:51 [LAPTOP-QATS2QI7][LAPTOP-QATS2QI7$][ACT] Data source ScadaServer initialized successfully 2024-09-11 14:19:51 [LAPTOP-QATS2QI7][LAPTOP-QATS2QI7$][ACT] Data source OpcUaServer initialized successfully 2024-09-11 14:19:51 [LAPTOP-QATS2QI7][LAPTOP-QATS2QI7$][ACT] Data source ScadaServer: Receive the configuration database 2024-09-11 14:19:54 [LAPTOP-QATS2QI7][LAPTOP-QATS2QI7$][ACT] Data source ScadaServer: The configuration database has been received successfully 2024-09-11 14:19:54 [LAPTOP-QATS2QI7][LAPTOP-QATS2QI7$][ACT] Start communication lines 2024-09-11 14:19:55 [LAPTOP-QATS2QI7][LAPTOP-QATS2QI7$][ACT] Start reading commands from files 2024-09-11 14:19:56 [LAPTOP-QATS2QI7][LAPTOP-QATS2QI7$][ACT] Data source ScadaServer: Connection state is Logged In
Here is the Line.log:
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- 2024-09-11 14:19:54 Start communication line [1] opcda 2024-09-11 14:19:54 Connect to Sigmatek.OPCServer/{585ac720-c50c-11d3-9b53-00902771f2c1} Connection to the OPC DA server has been established 2024-09-11 14:19:56 Create subscriptions Create subscription "test" for the device [1] nodered (async)
Any help is greatly appreciated, thank you very much in advance.
-
This reply was modified 9 months, 1 week ago by
Mikhail.
-
This topic was modified 11 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.