Specifications
20 – Using PlantScape Data in Other Applications
450 R400
Anyone with full access to the OPCRead file will have read access to the
OPC Server.
Anyone with full access to the OPCWrite file will have write access to the
OPC Server.
In order to allow a particular account to have read access, but deny write
access to the OPC Server, the account must be given full access to the
OPCRead file and have no access to the OPCWrite file. It is not possible to
give an account write access to the OPC Server without also giving it read
access.
For example: If the file name specified in the string OPCRead was
MyReadFile:
– Right click MyReadFile file in Explorer and select Properties.
– Select the Security tab from the Properties window and click File
Permissions.
– Add or delete users from the access list to set up the desired security.
PlantScape OPC Server Error Codes and Qualities
If you are developing your own OPC Client you need to know the error codes
returned by the PlantScape OPC Server.
The following error codes and qualities are returned by the PlantScape OPC
Server read function.
The following error codes are returned by the PlantScape OPC Server write
function.
Function
HRESULT
Item
HRESULT
Quality Value Condition
S_FALSE 0xE00483FD
(for all items)
OPC_QUALITY_BAD |
OPC_QUALITY_OUT_OF_SERVICE
Host backup
S_FALSE 0xE00483FC
(for all items)
OPC_QUALITY_BAD |
OPC_QUALITY_LAST_KNOWN
Host not running
(but not backup)
S_FALSE 0xE0048231 OPC_QUALITY_BAD |
OPC_QUALITY_CONFIG_ERROR
Invalid point number
S_FALSE 0xE0048232 OPC_QUALITY_BAD |
OPC_QUALITY_CONFIG_ERROR
Invalid parameter
number
S_FALSE 0xE004xxxx
xxxx = status
0x0000 (non-specific) Any other error status
plscpcg.book Page 450 Monday, May 28, 2001 10:11 AM