PlcTimeInfo Class

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

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

C#

public class PlcTimeInfo : PlcValueInfo<TimeSpan>, IPlcValueInfo, IPlcMemberInfo, IPlcRelocatable<IPlcMemberInfo>, IPlcRelocatable


Inheritance ObjectPlcMemberInfoPlcValueInfo<TimeSpan> › PlcTimeInfo


Implements IPlcValueInfo, IPlcMemberInfo, IPlcRelocatable<IPlcMemberInfo>, IPlcRelocatable

Remarks

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
PlcTimeInfo(PlcIdentity, PlcName) Initializes a new instance of the PlcTimeInfo class using the specified identity and name.
PlcTimeInfo(PlcIdentity, PlcName, TimeSpan) Initializes a new instance of the PlcTimeInfo class using the specified identity, name and initialValue.
PlcTimeInfo(PlcName) Initializes a new instance of the PlcTimeInfo class using the specified name
PlcTimeInfo(PlcName, TimeSpan) Initializes a new instance of the PlcTimeInfo class using the specified name and initialValue.
PlcTimeInfo(PlcTimeType, PlcName) Initializes a new instance of the PlcTimeInfo class using the specified type and name.
PlcTimeInfo(PlcTimeType, PlcName, TimeSpan) Initializes a new instance of the PlcTimeInfo class using the specified type, name and initialValue.
Name Description
Name Gets the name of the member.
(Inherited from PlcMemberInfo)
Type Gets the PlcType of the member.
(Inherited from PlcMemberInfo)
Name Description
MakeAbsoluteMember(PlcIdentity) Retrieves the PlcTimeInfo as an absolute addressable PLC data member.
MakeAbsoluteMember(PlcIdentity) When implemented in a derived class, retrieves the IPlcMemberInfo as an absolute addressable PLC data member.
(Inherited from PlcMemberInfo)
Relocate(Int32) Relocates the PlcMemberInfo using the specified offset.
(Inherited from PlcMemberInfo)
Relocate(Int32, Int32) Relocates the PlcMemberInfo using the specified offset.
(Inherited from PlcMemberInfo)
Relocate(Int32, Int32, Int32) Relocates the PlcMemberInfo using the specified offset.
(Inherited from PlcMemberInfo)
Relocate(PlcAddress) Relocates the PlcMemberInfo using the specified address.
(Inherited from PlcMemberInfo)
RelocateCore(PlcType) Relocates the member to the type specified.
RelocateCore(PlcType) When implemented in a derived class, relocates the member to the type specified.
(Inherited from PlcMemberInfo)
ToString Retrieves the string representation of the PlcMemberInfo.
(Inherited from PlcMemberInfo)