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
TimeStamp= NOW+3
March 23, 2015
9:26, EET
Avatar
jura
Member
Members
Forum Posts: 16
Member Since:
March 14, 2014
sp_UserOfflineSmall Offline

HI.
When you add a tag I get the time to 3 hours more than computer time.How to fix it

March 23, 2015
10:30, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1010
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

You must provide the timestamps in UTC timezone. Current time is available with PsUtils.UTCNow.

March 23, 2015
10:52, EET
Avatar
jura
Member
Members
Forum Posts: 16
Member Since:
March 14, 2014
sp_UserOfflineSmall Offline

Sorry I didn’t understand how it can be used in these program code

name:=TPsString.Create(nil);
name.Value:= Info.softSettings.linkSettings.name ;
idx:= OPCserver.AddressSpace.AddVariable(ctrlIdx, name, ‘Name’);

and

var
arr: TPsFloatArray ;
HistoryData : array[0..POINT_COUNT-1] of double;

HistoryData:= ….
arr.AssignArray(HistoryData) ;

March 23, 2015
12:08, EET
Avatar
jura
Member
Members
Forum Posts: 16
Member Since:
March 14, 2014
sp_UserOfflineSmall Offline

Current time is 14:59
stro:=TPsString.Create(nil);
stro.SetPropValueAt(vpValue, ‘tst’, vpqGood, UTCNow ) ;
in browser time is 17:59 ???

stro:=TPsString.Create(nil);
stro.SetPropValueAt(vpValue, ‘tst’, vpqGood, Now ) ;
in browser timestamp is 20:59 ???

and UTC now is 11:59 .

March 23, 2015
12:26, EET
Avatar
jura
Member
Members
Forum Posts: 16
Member Since:
March 14, 2014
sp_UserOfflineSmall Offline

correct time is

arr.SetPropValueAt(vpValue, mas, vpqGood, UTCNow – Abs(Now-UTCNow )); Confused

March 23, 2015
14:42, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1010
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Which client application are you using? What is the TimeBias used?

March 24, 2015
6:09, EET
Avatar
jura
Member
Members
Forum Posts: 16
Member Since:
March 14, 2014
sp_UserOfflineSmall Offline

MatriconOPC Explorer

March 24, 2015
8:09, EET
Avatar
jura
Member
Members
Forum Posts: 16
Member Since:
March 14, 2014
sp_UserOfflineSmall Offline

In your Prosys OPC Test Server also time for 3 hours ahead of local time.Confused

March 24, 2015
8:37, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1010
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

And what does our Prosys OPC Client show? The TimeBias parameter is the problematic one, which is not always interpreted or used correctly. If you check the LocalTimeBias option in Prosys OPC Client, the server will convert to the local time. This will make the client use NULL for the parameter. If the server is not supposed to convert, the client should use 0 for the TimeBias.

It feels like the client is requesting local time, but still converting the timestamps itself, too.

March 24, 2015
11:09, EET
Avatar
jura
Member
Members
Forum Posts: 16
Member Since:
March 14, 2014
sp_UserOfflineSmall Offline

Thanks, I understood.Laugh

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

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: 6261

Newest Members:

graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com

Moderators: Jouni Aro: 1010, 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