Topic RSS17:33, EET
January 6, 2015
OfflineHello
How can i create an new item, that is requested from a OPC-Client. Is there a event that are triggered?
My idea are, the client give me the item-name, and my OPC-Server should add the new item with this name!
For an Exampel:
the OPC-Client are requesting the follow OPC-Item: “KSA.DB200.DBW0”
Now the OPC-Server should add this to the variable list
May somebody can give me a hint!
Thanks
Gregor
9:26, EET
December 21, 2011
Offline14:21, EET
December 21, 2011
Offlinegkobler said
How can i create a OPC-Item, that are has the datatyp SmallIntWhen i use TPsInteger, it will create a “Long Integer” at the client side.
And i also want to create a Array of SmallInt. There is a Object called TPsByteArray, but this will create not that what i want!
Prosys Central only uses “major” data types in the variables, so it is not possible to create SmallInt items. There is no real requirement to save memory with alternative data types. The client can, however, request data as SmallInt (using OPC Item DataType/RequestedDataType) and the OPCProvider will do the required conversions. I am not sure how the arrays will convert, though.
8:09, EET
January 6, 2015
OfflineJouni Aro said
gkobler said
How can i create a OPC-Item, that are has the datatyp SmallIntWhen i use TPsInteger, it will create a “Long Integer” at the client side.
And i also want to create a Array of SmallInt. There is a Object called TPsByteArray, but this will create not that what i want!
Prosys Central only uses “major” data types in the variables, so it is not possible to create SmallInt items. There is no real requirement to save memory with alternative data types. The client can, however, request data as SmallInt (using OPC Item DataType/RequestedDataType) and the OPCProvider will do the required conversions. I am not sure how the arrays will convert, though.
Hello Jouni
Thanks for it, i think i got what i want. It’s not in matter to save space. But the Siemens-OPC-Server makes thes Datatypes, when he creates his OPC-Items.
I have made a heredity of the type TPsInteger and changed the datatype to SmallInt, and i did it also with TPsByteArray.
Regards
Gregor
1 Guest(s)

Log In
Register