Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The PlcStringType type exposes the following members.
Specifies the maximum value that can be used for a PlcStringType.
C#
public const int MaxLength = 254
Field Value
Int32
Specifies the minimum value that can be used for a PlcStringType property.
C#
public const int MinLength = 0
Field Value
Int32
Gets the type dependent default value which can be assigned to an entity of the type represented.
C#
public override object DefaultValue { get; }
Property Value
The type dependent default value.
Creates a new IPlcEntity object which represents a concrete accessible entity of this PlcType.
C#
public override IPlcEntity CreateEntity()
Returns
An instance implementing the IPlcEntity interface its Type property does refer to this PlcType.
Exceptions
This pure PlcType instance can't create an entity, because it is an abstract type representation.
Retrieves the according PlcStringType which matches the supplied type metadata.
C#
public static PlcStringType Of(int length)
Parameters
length
Int32
The maximum length used to store a PlcStringType value.
Returns
The PlcStringType which matches with the characteristics supplied.
Exceptions
The length
is out of the bounds defined by MinLength and MaxLength.
Retrieves the according PlcStringType which matches the supplied type metadata.
C#
public static PlcStringType Of(PlcIdentity identity, int length)
Parameters
identity
PlcIdentity
The PlcIdentity to which the PlcStringType does refer.
length
Int32
The maximum length used to store a PlcStringType value.
Returns
The PlcStringType which matches with the characteristics supplied.
Exceptions
The identity
does not provide the necessary information required to address the type of data.
The identity
is a null reference (Nothing in Visual Basic).
The length
is out of the bounds defined by MinLength and MaxLength.
Retrieves the according PlcStringType which matches the supplied type metadata.
C#
public static PlcStringType Of(PlcIdentity identity, PlcName name, int length)
Parameters
identity
PlcIdentity
The PlcIdentity to which the PlcStringType does refer.
name
PlcName
length
Int32
The maximum length used to store a PlcStringType value.
Returns
The PlcStringType which matches with the characteristics supplied.
Exceptions
The identity
does not provide the necessary information required to address the type of data.
The identity
or name
is a null reference (Nothing in Visual Basic).
The length
is out of the bounds defined by MinLength and MaxLength.