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
Sentrol673B666DC6Std doesn't support type QWord
September 2, 2020
9:00, EEST
Avatar
konstantin.konnov
Member
Members
Forum Posts: 4
Member Since:
May 20, 2020
sp_UserOfflineSmall Offline

Hello!
I have a Keepware server that contains the type QWord (0x21) but I can’t find this type among var* constants. My try to subscribe to update of such fields becomes all updates freeze. What is my opportunity to solve this?

September 2, 2020
11:08, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1019
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

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.

September 2, 2020
11:33, EEST
Avatar
konstantin.konnov
Member
Members
Forum Posts: 4
Member Since:
May 20, 2020
sp_UserOfflineSmall Offline

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.

September 2, 2020
15:30, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1019
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

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.

September 2, 2020
18:06, EEST
Avatar
konstantin.konnov
Member
Members
Forum Posts: 4
Member Since:
May 20, 2020
sp_UserOfflineSmall Offline

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

September 3, 2020
10:17, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1019
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

OK, thanks. I see the Invalid transactions in the log which is an indication that something is wrong.

Have you tried both synchronous and asynchronous communication? Does it indeed work fine with Prosys OPC Client? What does the log look in there?

Forum Timezone: Europe/Helsinki

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, HaroldaDob

Moderators: Jouni Aro: 1019, Pyry: 1, Petri: 0, Bjarne Boström: 1016, Jimmy Ni: 26, Matti Siponen: 340, Lusetti: 0

Administrators: admin: 1