PlcDate Class

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

Represents a DateTime value (in PLC a DATE) its value defines an instant in time, where only the date of day is expressed.

C#

public class PlcDate : PlcValue<DateTime>, IPlcValue<DateTime>, IPlcValue, IPlcSymbol, IPlcEntity, IPlcStatusProvider, IPlcRelocatable<IPlcValue>, IPlcRelocatable, ISupportInitialize


Inheritance ObjectPlcValue<DateTime> › PlcDate


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

Remarks

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

Name Description
PlcDate(PlcDateType) Initializes a new instance of the PlcDate class using the specified type
PlcDate(PlcDateType, DateTime) Initializes a new instance of the PlcDate class using the specified type and value.
PlcDate(PlcDateType, PlcName) Initializes a new instance of the PlcDate class using the specified type and name.
PlcDate(PlcDateType, PlcName, DateTime) Initializes a new instance of the PlcDate class using the specified type, name and value.
PlcDate(PlcIdentity) Initializes a new instance of the PlcDate class using the specified identity
PlcDate(PlcIdentity, DateTime) Initializes a new instance of the PlcDate class using the specified identity and value.
PlcDate(PlcIdentity, PlcName) Initializes a new instance of the PlcDate class using the specified identity and name.
PlcDate(PlcIdentity, PlcName, DateTime) Initializes a new instance of the PlcDate class using the specified identity, name and value.
Name Description
MaxValue Represents the largest possible value of a PlcDate.
MinValue Represents the smallest possible value of a PlcDate.
Name Description
Value Gets or sets the value assigned to the PLC value.
Name Description
GetValueCore(PlcDeviceConnection) Retrieves the current value of the PLC value from a IPlcDevice using the connection specified.
IsValidValue(Object) Determines whether the provided value is accepted for the type of PLC value through basic type checking and also potentially if it is within the allowed range of value for that type.
RelocateCore(PlcAddress) Relocates the value to the address specified.
SetValueCore(PlcDeviceConnection, DateTime) Stores the value in the IPlcDevice assigned to the connection specified.