OpcComSVCParams Property
General info
Label |
Service Parameters |
Description |
The OPC Server service parameters. |
Data type |
String |
Type |
Regular |
Code |
469 |
Symbolic name |
MODEL_PROP_OPCCOMSVCPARAMS |
Lua access code |
syslib.model.properties.OpcComSVCParams |
Available since |
1.0 |
- Parent properties
Attributes
| Name | Tooltip |
|---|---|
| PROP_VISIBLE | The property is visible in DataStudio and can be read by the inmation APIs. |
Examples
Read from or write to the OpcComSVCParams property.
-- Read from the OpcComSVCParams
syslib.getvalue("<OBJECT FULL PATH>.OpcComCServerInfo.OpcComCCharacteristics.OpcComSVCParams")
-- Write to the OpcComSVCParams
syslib.setvalue("<OBJECT FULL PATH>.OpcComCServerInfo.OpcComCCharacteristics.OpcComSVCParams", "new value")
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);
// Read from the OpcComSVCParams
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.OpcComCServerInfo.OpcComCCharacteristics.OpcComSVCParams"));
// Write to the OpcComSVCParams
Result result = sli.WriteValue(sc, new WriteItem("new value", "<OBJECT FULL PATH>.OpcComCServerInfo.OpcComCCharacteristics.OpcComSVCParams"));