Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll
Represents a TimeSpan value (in PLC a TIME_OF_DAY) its value defines an time interval.
C#
public class PlcTimeOfDay : PlcValue<TimeSpan>, IPlcValue<TimeSpan>, IPlcValue, IPlcSymbol, IPlcEntity, IPlcStatusProvider, IPlcRelocatable<IPlcValue>, IPlcRelocatable, ISupportInitialize
Inheritance Object › PlcValue<TimeSpan> › PlcTimeOfDay
Implements IPlcValue<TimeSpan>, IPlcValue, IPlcSymbol, IPlcEntity, IPlcStatusProvider, IPlcRelocatable<IPlcValue>, IPlcRelocatable, ISupportInitialize
While a PLC value of this type represents a TimeSpan value, all PLC operations performed using this class are done using the DWord. A PLC developer knows a value of this type as TIME_OF_DAY.
Name | Description |
---|---|
PlcTimeOfDay(PlcIdentity) | Initializes a new instance of the PlcTimeOfDay class using the specified identity |
PlcTimeOfDay(PlcIdentity, PlcName) | Initializes a new instance of the PlcTimeOfDay class using the specified identity and name . |
PlcTimeOfDay(PlcIdentity, PlcName, TimeSpan) | Initializes a new instance of the PlcTimeOfDay class using the specified identity , name and value . |
PlcTimeOfDay(PlcIdentity, TimeSpan) | Initializes a new instance of the PlcTimeOfDay class using the specified identity and value . |
PlcTimeOfDay(PlcTimeOfDayType) | Initializes a new instance of the PlcTimeOfDay class using the specified type |
PlcTimeOfDay(PlcTimeOfDayType, PlcName) | Initializes a new instance of the PlcTimeOfDay class using the specified type and name . |
PlcTimeOfDay(PlcTimeOfDayType, PlcName, TimeSpan) | Initializes a new instance of the PlcTimeOfDay class using the specified type , name and value . |
PlcTimeOfDay(PlcTimeOfDayType, TimeSpan) | Initializes a new instance of the PlcTimeOfDay class using the specified type and value . |
Name | Description |
---|---|
MaxValue | Represents the largest possible value of a PlcTimeOfDay. |
MinValue | Represents the smallest possible value of a PlcTimeOfDay. |
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, TimeSpan) | Stores the value in the IPlcDevice assigned to the connection specified. |