Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The PlcStatus type exposes the following members.
Gets the recent code of the status represented.
C#
public PlcStatusCode Code { get; }
Property Value
One of the members defined by the PlcStatusCode enumeration. Which specifies the concrete type of status represented.
Gets the PlcException which is thrown in case there the evaluation of the PlcStatus does indicate an exceptional situation.
C#
public PlcException Exception { get; }
Property Value
An instance of the PlcException class initialized according to the current state of this PlcStatus.
Gets the code of the recent socket operation performed its status is represented.
C#
public int SocketCode { get; }
Property Value
The code of the recent socket operation performed its status is represented.
Retrieves a meaningful string value which describes the status represented by the code
.
C#
public static string GetText(PlcStatusCode code)
Parameters
code
PlcStatusCode
The PlcStatusCode its textual description is to be retrieved.
Returns
A meaningful string value which describes the code
.
Retrieves a meaningful string value which describes the status represented by the code
and socketCode
.
C#
public static string GetText(PlcStatusCode code, int socketCode)
Parameters
code
PlcStatusCode
The PlcStatusCode its textual description is to be retrieved.
socketCode
Int32
The code of the socket operation which ended with the code
.
Returns
A meaningful string value which describes the code
and socketCode
.
Retrieves a meaningful string value which describes the status represented by the code
, socketCode
and type
.
C#
public static string GetText(PlcStatusCode code, int socketCode, PlcType type)
Parameters
code
PlcStatusCode
The PlcStatusCode its textual description is to be retrieved.
socketCode
Int32
The code of the socket operation which ended with the code
.
type
PlcType
The PlcType which was affected by the operation its status text is to be retrieved.
Returns
A meaningful string value which describes the code
and socketCode
.