OpcUaSerializerMaxByteStringLength Property
General info
Label |
Max. Byte String Length |
Description |
The largest byte string accepted by the serializer. |
Data type |
Int32 |
Default value |
16777216 |
Min value |
1048576 |
Max value |
268435456 |
Type |
Regular |
Code |
1690 |
Symbolic name |
MODEL_PROP_OPCUASERIALIZERMAXBYTESTRINGLENGTH |
Lua access code |
syslib.model.properties.OpcUaSerializerMaxByteStringLength |
Available since |
1.6 |
- Parent properties
Attributes
| Name | Tooltip |
|---|---|
| PROP_CONFIGURABLE | The property is configurable and can be changed with DataStudio and the various inmation APIs. |
| PROP_VISIBLE | The property is visible in DataStudio and can be read by the inmation APIs. |
| PROP_HAS_DEFAULT | The property has a default value as standard. |
| PROP_HAS_LOLIMIT | The property has a low limit. |
| PROP_HAS_HILIMIT | The property has a high limit. |
Examples
Read from or write to the OpcUaSerializerMaxByteStringLength property.
-- Read from the OpcUaSerializerMaxByteStringLength
syslib.getvalue("<OBJECT FULL PATH>.OpcUaConnectorOptions.OpcUaSerializerOptions.OpcUaSerializerMaxByteStringLength")
-- Write to the OpcUaSerializerMaxByteStringLength
syslib.setvalue("<OBJECT FULL PATH>.OpcUaConnectorOptions.OpcUaSerializerOptions.OpcUaSerializerMaxByteStringLength", 16777216)
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);
// Read from the OpcUaSerializerMaxByteStringLength
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.OpcUaConnectorOptions.OpcUaSerializerOptions.OpcUaSerializerMaxByteStringLength"));
// Write to the OpcUaSerializerMaxByteStringLength
Result result = sli.WriteValue(sc, new WriteItem(16777216, "<OBJECT FULL PATH>.OpcUaConnectorOptions.OpcUaSerializerOptions.OpcUaSerializerMaxByteStringLength"));