PlcS5Time Class

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

Represents a TimeSpan value (in PLC a S5TIME) its value defines an time interval.

C#

public class PlcS5Time : PlcValue<TimeSpan>, IPlcValue<TimeSpan>, IPlcValue, IPlcSymbol, IPlcEntity, IPlcStatusProvider, IPlcRelocatable<IPlcValue>, IPlcRelocatable, ISupportInitialize


Inheritance ObjectPlcValue<TimeSpan> › PlcS5Time


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

Remarks

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

Name Description
PlcS5Time(PlcIdentity) Initializes a new instance of the PlcS5Time class using the specified identity
PlcS5Time(PlcIdentity, PlcName) Initializes a new instance of the PlcS5Time class using the specified identity and name.
PlcS5Time(PlcIdentity, PlcName, TimeSpan) Initializes a new instance of the PlcS5Time class using the specified identity, name and value.
PlcS5Time(PlcIdentity, TimeSpan) Initializes a new instance of the PlcS5Time class using the specified identity and value.
PlcS5Time(PlcS5TimeType) Initializes a new instance of the PlcS5Time class using the specified type
PlcS5Time(PlcS5TimeType, PlcName) Initializes a new instance of the PlcS5Time class using the specified type and name.
PlcS5Time(PlcS5TimeType, PlcName, TimeSpan) Initializes a new instance of the PlcS5Time class using the specified type, name and value.
PlcS5Time(PlcS5TimeType, TimeSpan) Initializes a new instance of the PlcS5Time class using the specified type and value.
Name Description
MaxValue Represents the largest possible value of a PlcS5Time.
MinValue Represents the smallest possible value of a PlcS5Time.
Name Description
Origin Gets a value of the PlcS5TimeOrigin enumeration which indicate which origin the PlcS5Time does use to represent the TimeSpan which is provided by the Value property.
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.