Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The PlcDeviceInfo type exposes the following members.
Initializes a new instance of the PlcDeviceInfo class using the specified device
.
C#
public PlcDeviceInfo(IPlcDevice device)
Parameters
device
IPlcDevice
The IPlcDevice to which the new PlcDeviceInfo belongs.
Exceptions
The device
is a null reference (Nothing in Visual Basic).
Gets the IPlcDevice to which the IPlcDeviceInfo belongs.
C#
public IPlcDevice Device { get; }
Property Value
The IPlcDevice to which the IPlcDeviceInfo belongs.
Gets a value indicating whether the MemoryCardSerial property does provide a serial number of an inserted memory card.
C#
public bool HasMemoryCardSerial { get; }
Property Value
The value true, if the MemoryCardSerial property does provide a serial number of an inserted memory card; otherwise the value false.
Gets a value indicating whether the ModuleName property does provide the name of the module used.
C#
public bool HasModuleName { get; }
Property Value
The value true, if the ModuleName property does provide the name of the module used; otherwise the value false.
Gets a value indicating whether the ModuleSerial property does provide the serial number of the module used.
C#
public bool HasModuleSerial { get; }
Property Value
The value true, if the ModuleSerial property does provide the serial number of the module used; otherwise the value false.
Gets a value indicating whether the ModuleType property does provide type information of the module used.
C#
public bool HasModuleType { get; }
Property Value
The value true, if the ModuleType property does provide type information of the module used; otherwise the value false.
Gets a value indicating whether the Time property does provide a Nullable´1 object that is set to the current date and time on the device, expressed as the local time.
C#
public bool HasTime { get; }
Property Value
The value true, if the Time property does provide a Nullable´1 object that is set to the current date and time on the device, expressed as the local time; otherwise the value false.
Gets or sets the serial number of an inserted memory card.
C#
public string MemoryCardSerial { get; set; }
Property Value
If a memory card is plugged-in, the serial number of an inserted memory card; otherwise a null reference (Nothing in Visual Basic).
Gets or sets a Nullable´1 object that is set to the current date and time on the device, expressed as the local time.
C#
public DateTime? Time { get; set; }
Property Value
If there is any time information available, an object whose value is the current local date and time; otherwise a null reference (Nothing in Visual Basic).
Returns a string that represents the current PlcDeviceInfo.
C#
public override string ToString()
Returns
A string that represents the current PlcDeviceInfo.