Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
onStatusChange getCurrentTime & Status getCurrentTime and Rockwell FT Gateway OPC UA
November 27, 2018
15:44, EET
Avatar
Christv
Member
Members
Forum Posts: 9
Member Since:
August 9, 2016
sp_UserOfflineSmall Offline

Prosys OPC client sdk 3.1.8-580
I have a test setup with 2 opc ua servers that run follow line on the onStatusChange(UaClient uaClient, ServerStatusDataType status)
System.out.println(“>>>>” + deviceId + ” now=” + DateTime.currentTime() + ” Status getCurrentTime=” + status.getCurrentTime() + ” client=” + uaClient.getServerStatus().getCurrentTime() + ” getServerTimeDifference=” + client.getServerTimeDifference() + ” calc diff= ” + (DateTime.currentTime().getTimeInMillis() – status.getCurrentTime().getTimeInMillis()) + ” getStartTime=” + status.getStartTime());

BND cvcn is based on Unified Automation toolkit
DkFTUA2 is using the Rockwell FT Gateway OPC UA server

Example output:
>>>>BNDcvcn now=2018-11-27 13:25:14.1600000 Status getCurrentTime=2018-11-27 13:25:14.1586923 client=2018-11-27 13:25:14.1586923 getServerTimeDifference=-2 calc diff= 3 getStartTime=2018-11-22 10:46:00.4127100
>>>>DkFTUA2 now=2018-11-27 13:25:14.9890000 Status getCurrentTime=2018-11-13 12:24:48.8214507 client=2018-11-13 12:24:48.8214507 getServerTimeDifference=-1213226168 calc diff= 1213226168 getStartTime=2018-11-13 12:24:48.8214507

As you can see for DkFTUA2 the getServerTimeDifference is very big and the getCurrentTime is same as getStartTime!

But when I look to DkFTUA2 via OPCClients nodeid i=2258 (status current time) the value is matching current time.

Any idea what could case of these different value that are returned by onStatusChange event?

November 27, 2018
16:39, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 620
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

There are two possible sources for that value. The the server implementation must keep them in sync.

A) The ServerStatus node’s (i=2256) directly. The value is a ServerStatusDataType Structure which contains all the data in the subnodes of that node (a lot’s of Structure nodes behave like this).
B) CurrentTime node (i=2258) that is directly below the ServerStatus node.

The UaClient prefers A, if it cannot read that it will read the individual components instead, which includes B.

I recommend reporting this bug to the server vendor.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 267

Currently Online:
12 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 109

pramanj: 86

ibrahim: 71

kapsl: 57

gjevremovic: 49

TimK: 41

fred: 41

Fransua33: 39

Xavier: 34

Thomas Reuther: 33

Member Stats:

Guest Posters: 0

Members: 1221

Moderators: 15

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1089

Posts: 4591

Newest Members:

aravindj, Deniz.Turan, DenizT, igonzalez, lavonwinters963, felicapurdy9, shoshanastopford, UlrichFM, majaba, Yash_Joshi_Pratiti

Moderators: Jouni Aro: 865, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 620, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Teppo Uimonen: 21, Markus Johansson: 30, Matti Siponen: 92, Lusetti: 0

Administrators: admin: 1