15:44, EET
August 9, 2016
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?
16:39, EET
April 3, 2012
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.
Most Users Ever Online: 518
Currently Online:
18 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
hbrackel: 135
pramanj: 86
Francesco Zambon: 81
rocket science: 77
ibrahim: 75
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
fred: 41
Member Stats:
Guest Posters: 0
Members: 681
Moderators: 16
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1467
Posts: 6259
Newest Members:
DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule, rashadbrownrigg, christi10l, ahamad1, Flores FrederickModerators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5
Administrators: admin: 1