PlcDateTime Class

Represents a DateTime value (in PLC a DATE_AND_TIME) its value defines an instant in time, typically expressed as a date and time of day.

System.Object
IPS7Lnk.Advanced.PlcValue<DateTime>
IPS7Lnk.Advanced.PlcDateTime

Namespace:  IPS7Lnk.Advanced
Assembly:  IPS7LnkNet.Advanced (in IPS7LnkNet.Advanced.dll) Version: 1.0.0.0 (1.7.2.0)

C#

public class PlcDateTime : PlcValue<DateTime>


The PlcDateTime type exposes the following members.

—– Name Description
PlcDateTime(PlcAddress) Initializes a new instance of the PlcDateTime class using the specified address.
PlcDateTime(PlcAddress, DateTime) Initializes a new instance of the PlcDateTime class using the specified address and value.

Top

—– Name Description
BeginInitCore When implemented in a derived class; signals the PlcValue<T> that initialization is started.
(Inherited from PlcValue<T>.)
EndInitCore When implemented in a derived class; signals the PlcValue<T> that initialization is completed.
(Inherited from PlcValue<T>.)
Equals Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
GetBytes Returns the specified DateTime value as an array of BCD Byte values.
GetDateTime Returns the specified BCD values (bcdValues) as a DateTime.
GetHashCode Serves as a hash function for a particular type.
(Inherited from Object.)
GetInstanceValue Retrieves the value assigned to the PLC value.
(Inherited from PlcValue<T>.)
GetType Gets the Type of the current instance.
(Inherited from Object.)
GetValue(IPlcDevice) Retrieves the current value of the PLC value from the device specified.
(Inherited from PlcValue<T>.)
GetValue(PlcDeviceConnection) Retrieves the current value of the PLC value from a IPlcDevice using the connection specified.
(Inherited from PlcValue<T>.)
GetValueCore Retrieves the current value of the PLC value from a IPlcDevice using the connection specified.
(Overrides PlcValue<T>.GetValueCore(PlcDeviceConnection).)
IsValidType Determines whether a specified value is acceptable for this PlcValue<T>.
(Inherited from PlcValue<T>.)
IsValidValue 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.
(Overrides PlcValue<T>.IsValidValue(Object).)
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object.)
OnChanged(ValueChangedEventArgs) Raises the Changed event.
(Inherited from PlcValue<T>.)
OnChanged(ValueChangedEventArgs<UTT>) (Inherited from PlcValue<T>.)
RaiseChanged (Inherited from PlcValue<T>.)
Relocate(Int32) Relocates the PlcValue<T> using the specified offset. The original PlcValue<T> remains unmodified.
(Inherited from PlcValue<T>.)
Relocate(PlcAddress) Relocates the PlcValue<T> using the specified address. The original PlcValue<T> remains unmodified.
(Inherited from PlcValue<T>.)
Relocate(Int32, Int32) Relocates the PlcValue<T> using the specified offset. The original PlcValue<T> remains unmodified.
(Inherited from PlcValue<T>.)
Relocate(Int32, Int32, Int32) Relocates the PlcValue<T> using the specified offset. The original PlcValue<T> remains unmodified.
(Inherited from PlcValue<T>.)
RelocateCore Relocates the value to the address specified.
(Overrides PlcValue<T>.RelocateCore(PlcAddress).)
SetInstanceValue (Inherited from PlcValue<T>.)
SetValue(IPlcDevice) Stores the Value in the device specified.
(Inherited from PlcValue<T>.)
SetValue(PlcDeviceConnection) Stores the Value in the IPlcDevice assigned to the connection specified.
(Inherited from PlcValue<T>.)
SetValue(IPlcDevice, UTT) (Inherited from PlcValue<T>.)
SetValue(PlcDeviceConnection, UTT) (Inherited from PlcValue<T>.)
SetValueCore Stores the value in the IPlcDevice assigned to the connection specified.
(Overrides PlcValue<T>.SetValueCore(PlcDeviceConnection, UTT).)
ToString Converts the value to its string representation.
(Inherited from PlcValue<T>.)
ValidateValue Validates the specified value whether it can be assigned to this PlcValue<T>.
(Inherited from PlcValue<T>.)

Top

—– Name Description
MaxValue Represents the largest possible value of a PlcDateTime.
MinValue Represents the smallest possible value of PlcDateTime.

Top

—– Name Description
IsInitializing Gets a value indicating whether the instance is in initializing mode.
(Inherited from PlcValue<T>.)
Status Gets the status information provided by the software driver related to the value.
(Inherited from PlcValue<T>.)
Tag Gets or sets the object that contains additional user data about the value.
(Inherited from PlcValue<T>.)
Type Gets the type of value represented by the PLC value.
(Inherited from PlcValue<T>.)
Value Gets or sets the value assigned to the PLC value.
(Overrides PlcValue<T>.Value.)

Top

—– Name Description
Changed (Inherited from PlcValue<T>.)

Top

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

Reference