Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll
Represents a TimeSpan value (in PLC a TIME) its value defines an time interval.
C#
public class PlcTime : PlcValue<TimeSpan>, IPlcValue<TimeSpan>, IPlcValue, IPlcSymbol, IPlcEntity, IPlcStatusProvider, IPlcRelocatable<IPlcValue>, IPlcRelocatable, ISupportInitialize
Inheritance Object › PlcValue<TimeSpan> › PlcTime
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. The time interval of this type typically supports a negative number of days, but because of TimeSpan does not support a negative number of days a negative number will be changed into a positive one by this implementation.
Name | Description |
---|---|
PlcTime(PlcIdentity) | Initializes a new instance of the PlcTime class using the specified identity |
PlcTime(PlcIdentity, PlcName) | Initializes a new instance of the PlcTime class using the specified identity and name . |
PlcTime(PlcIdentity, PlcName, TimeSpan) | Initializes a new instance of the PlcTime class using the specified identity , name and value . |
PlcTime(PlcIdentity, TimeSpan) | Initializes a new instance of the PlcTime class using the specified identity and value . |
PlcTime(PlcTimeType) | Initializes a new instance of the PlcTime class using the specified type |
PlcTime(PlcTimeType, PlcName) | Initializes a new instance of the PlcTime class using the specified type and name . |
PlcTime(PlcTimeType, PlcName, TimeSpan) | Initializes a new instance of the PlcTime class using the specified type , name and value . |
PlcTime(PlcTimeType, TimeSpan) | Initializes a new instance of the PlcTime class using the specified type and value . |
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. |