9:00, EEST
May 20, 2020
11:08, EEST
December 21, 2011
The Delphi name for this type is varUInt64. By default, I would expect all variant values to be supported in the communication, but depends also on how you are using it in the application level. Are you maybe trying to connect it to a TPsInteger with TPsOPCConnector? That one only holds 32-bit integers. Please, try TPsVariant instead.
11:33, EEST
May 20, 2020
Jouni Aro said
The Delphi name for this type is varUInt64. By default, I would expect all variant values to be supported in the communication, but depends also on how you are using it in the application level. Are you maybe trying to connect it to a TPsInteger with TPsOPCConnector? That one only holds 32-bit integers. Please, try TPsVariant instead.
I use the next way.
TPsVariant *vv = new TPsVariant (0);
vv->Caption = name;
vv->OnChange = onDataChanged;
TPsVarLink *v = connector_->AddItem (name, vv, vpValue);
But I get into onDataChanged method only few times.
15:30, EEST
December 21, 2011
Well, are you sure that it should change more often? Have you checked with other clients, for example Prosys OPC Client to see what changes the server is actually sending?
You can also enable the Log in TPsOPCServer to see all communication that is happening between the server and your application.
18:06, EEST
May 20, 2020
Jouni Aro said
Well, are you sure that it should change more often? Have you checked with other clients, for example Prosys OPC Client to see what changes the server is actually sending?You can also enable the Log in TPsOPCServer to see all communication that is happening between the server and your application.
It works with other clients. The problem exactly with this field type because if I select all field except this one I get updates but with this field selected I don’t have updates for all fields.
—————————-
The log file:
2020/09/02 22:33:14.628 Connected to Server ‘{7BC0CC8E-482C-47CA-ABDC-0FE7F9C6E729}’ {7BC0CC8E-482C-47CA-ABDC-0FE7F9C6E729}
2020/09/02 22:33:14.650 IConnectionPointContainer.FindConnectionPoint: Result=0x0 (OK)
2020/09/02 22:33:14.665 IConnectionPoint.Advise: Result=0x0 (OK)
2020/09/02 22:33:14.678 IOPCServer.GetStatus: Result=0x0 (OK)
2020/09/02 22:33:14.690 Status changed from ‘No connection!’ to ‘Running’
2020/09/02 22:33:14.704 IOPCServer.AddGroup: Result=0x0 (OK)
2020/09/02 22:33:14.718 IConnectionPointContainer.FindConnectionPoint: Result=0x0 (OK)
2020/09/02 22:33:14.731 IConnectionPoint.Advise: Result=0x0 (OK)
2020/09/02 22:33:14.743 IOPCServer.AddGroup: Result=0x0 (OK)
2020/09/02 22:33:14.757 IOPCItemMgt.AddItems: Result=0x0 (OK)
2020/09/02 22:33:14.772 IConnectionPointContainer.FindConnectionPoint: Result=0x0 (OK)
2020/09/02 22:33:14.785 IConnectionPoint.Advise: Result=0x0 (OK)
2020/09/02 22:33:14.799 Invalid transaction
2020/09/02 22:33:16.836 Invalid transaction
Most Users Ever Online: 1919
Currently Online:
14 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 86
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 732
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1508
Posts: 6396
Newest Members:
elainesever, powhephenry, mamiecaldwell5, Lamasom, scsneed, berrybulcock, icerdraizomma, athenasummy5, vtaletbhcx, HaroldaDobModerators: Jouni Aro: 1019, Pyry: 1, Petri: 0, Bjarne Boström: 1016, Jimmy Ni: 26, Matti Siponen: 340, Lusetti: 0
Administrators: admin: 1