PlcUInt16 Class

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

Represents a UInt16 value (in PLC a WORD) its value defines a 16-bit unsigned integer value.

C#

[CLSCompliant(false)]
public class PlcUInt16 : PlcValue<ushort>, IPlcValue<ushort>, IPlcValue, IPlcSymbol, IPlcEntity, IPlcStatusProvider, IPlcRelocatable<IPlcValue>, IPlcRelocatable, ISupportInitialize


Inheritance ObjectPlcValue<UInt16> › PlcUInt16


Attributes CLSCompliantAttribute


Implements IPlcValue<UInt16>, IPlcValue, IPlcSymbol, IPlcEntity, IPlcStatusProvider, IPlcRelocatable<IPlcValue>, IPlcRelocatable, ISupportInitialize

Remarks

While a PLC value of this type represents an UInt16 value, all PLC operations performed using this class are done using the Word. A PLC developer knows a value of this type as WORD.

Name Description
PlcUInt16(PlcIdentity) Initializes a new instance of the PlcUInt16 class using the specified identity
PlcUInt16(PlcIdentity, PlcName) Initializes a new instance of the PlcUInt16 class using the specified identity and name.
PlcUInt16(PlcIdentity, PlcName, UInt16) Initializes a new instance of the PlcUInt16 class using the specified identity, name and value.
PlcUInt16(PlcIdentity, UInt16) Initializes a new instance of the PlcUInt16 class using the specified identity and value.
PlcUInt16(PlcUInt16Type) Initializes a new instance of the PlcUInt16 class using the specified type
PlcUInt16(PlcUInt16Type, PlcName) Initializes a new instance of the PlcUInt16 class using the specified type and name.
PlcUInt16(PlcUInt16Type, PlcName, UInt16) Initializes a new instance of the PlcUInt16 class using the specified type, name and value.
PlcUInt16(PlcUInt16Type, UInt16) Initializes a new instance of the PlcUInt16 class using the specified type and value.
Name Description
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, UInt16) Stores the value in the IPlcDevice assigned to the connection specified.