PlcString Class

Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll

Represents a String value (in PLC a STRING) its value defines a series of characters.

C#

public class PlcString : PlcValue<string>, IPlcValue<string>, IPlcValue, IPlcSymbol, IPlcEntity, IPlcStatusProvider, IPlcRelocatable<IPlcValue>, IPlcRelocatable, ISupportInitialize, IEnumerable<char>, IEnumerable


Inheritance ObjectPlcValue<String> › PlcString


Implements IPlcValue<String>, IPlcValue, IPlcSymbol, IPlcEntity, IPlcStatusProvider, IPlcRelocatable<IPlcValue>, IPlcRelocatable, ISupportInitialize, IEnumerable<Char>, IEnumerable

Remarks

While a PLC value of this type represents a String value, all PLC operations performed using this class are done using the Byte. A PLC developer knows a value of this type as STRING.

Name Description
PlcString(PlcIdentity, Int32) Initializes a new instance of the PlcString class using the specified identity and length.
PlcString(PlcIdentity, PlcName, Int32) Initializes a new instance of the PlcString class using the specified identity, name and length.
PlcString(PlcIdentity, PlcName, String) Initializes a new instance of the PlcString class using the specified identity, name and value.
PlcString(PlcIdentity, PlcName, String, Int32) Initializes a new instance of the PlcString class using the specified identity, name, value and length.
PlcString(PlcIdentity, String) Initializes a new instance of the PlcString class using the specified identity and value.
PlcString(PlcIdentity, String, Int32) Initializes a new instance of the PlcString class using the specified identity, value and length.
PlcString(PlcStringType) Initializes a new instance of the PlcString class using the specified type.
PlcString(PlcStringType, PlcName) Initializes a new instance of the PlcString class using the specified type and name.
PlcString(PlcStringType, PlcName, String) Initializes a new instance of the PlcString class using the specified type, name and value.
PlcString(PlcStringType, String) Initializes a new instance of the PlcString class using the specified type and value.
Name Description
MaxLength Specifies the maximum value that can be used for the Length property.
MinLength Specifies the minimum value that can be used for the Length property.
Name Description
Item(Int32) Gets the element at the specified index.
Length Gets a 32-bit integer that represents the maximum number of characters that can be stored.
Value Gets or sets the value assigned to the PLC value.
Name Description
GetEnumerator Returns an enumerator that iterates through the array.
GetValueCore(PlcDeviceConnection) Retrieves the current value of the PLC value from a IPlcDevice using the connection specified.
RelocateCore(PlcAddress) Relocates the value to the address specified.
SetValueCore(PlcDeviceConnection, String) Stores the value in the IPlcDevice assigned to the connection specified.
ToString Retrieves the string representation of the PlcString.