libiec61850.NET
1.5.1
IEC 61850 .NET API for libiec61850 protocol library
|
Control object. More...
Public Member Functions | |
delegate void | ControlActionHandler (UInt32 invokeId, Object parameter, IedClientError error, ControlActionType type, bool success) |
Handler for asynchronous control actions (select, operate, cancel) More... | |
delegate void | CommandTerminationHandler (Object parameter, ControlObject controlObject) |
ControlModel | GetControlModel () |
Gets the control model. More... | |
MmsType | GetCtlValType () |
Get the type of ctlVal. More... | |
void | SetOrigin (string originator, OrCat originatorCategory) |
Sets the origin parameter used by control commands. More... | |
bool | Operate (bool ctlVal) |
Operate the control with the specified control value. More... | |
bool | Operate (bool ctlVal, UInt64 operTime) |
Operate the control with the specified control value (time activated control). More... | |
bool | Operate (float ctlVal) |
Operate the control with the specified control value. More... | |
bool | Operate (float ctlVal, UInt64 operTime) |
Operate the control with the specified control value (time activated control). More... | |
bool | Operate (int ctlVal) |
Operate the control with the specified control value. More... | |
bool | Operate (int ctlVal, UInt64 operTime) |
Operate the control with the specified control value (time activated control). More... | |
bool | Operate (MmsValue ctlVal) |
Operate the control with the specified control value. More... | |
bool | Operate (MmsValue ctlVal, UInt64 operTime) |
Operate the control with the specified control value (time activated control). More... | |
UInt32 | OperateAsync (bool ctlVal, ControlActionHandler handler, object parameter) |
Operate the control with the specified control value. More... | |
UInt32 | OperateAsync (bool ctlVal, UInt64 operTime, ControlActionHandler handler, object parameter) |
Operate the control with the specified control value (time activated control). More... | |
UInt32 | OperateAsync (float ctlVal, ControlActionHandler handler, object parameter) |
Operate the control with the specified control value. More... | |
UInt32 | OperateAsync (float ctlVal, UInt64 operTime, ControlActionHandler handler, object parameter) |
Operate the control with the specified control value (time activated control). More... | |
UInt32 | OperateAsync (int ctlVal, ControlActionHandler handler, object parameter) |
Operate the control with the specified control value. More... | |
UInt32 | OperateAsync (int ctlVal, UInt64 operTime, ControlActionHandler handler, object parameter) |
Operate the control with the specified control value (time activated control). More... | |
UInt32 | OperateAsync (MmsValue ctlVal, ControlActionHandler handler, object parameter) |
Operate the control with the specified control value. More... | |
UInt32 | OperateAsync (MmsValue ctlVal, UInt64 operTime, ControlActionHandler handler, object parameter) |
Operate the control with the specified control value (time activated control). More... | |
bool | Select () |
Select the control object. More... | |
UInt32 | SelectAsync (ControlActionHandler handler, object parameter) |
Select the control object. More... | |
bool | SelectWithValue (MmsValue ctlVal) |
Send a select with value command for generic MmsValue instances More... | |
bool | SelectWithValue (bool ctlVal) |
Send a select with value command for boolean controls More... | |
bool | SelectWithValue (int ctlVal) |
Send a select with value command for integer controls More... | |
bool | SelectWithValue (float ctlVal) |
Send a select with value command for float controls More... | |
UInt32 | SelectWithValueAsync (bool ctlVal, ControlActionHandler handler, object parameter) |
Send a select with value command for boolean controls - asynchronous version More... | |
UInt32 | SelectWithValueAsync (int ctlVal, ControlActionHandler handler, object parameter) |
Send a select with value command for integer controls - asynchronous version More... | |
UInt32 | SelectWithValueAsync (float ctlVal, ControlActionHandler handler, object parameter) |
Send a select with value command for float controls - asynchronous version More... | |
UInt32 | SelectWithValueAsync (MmsValue ctlVal, ControlActionHandler handler, object parameter) |
Send a select with value command for generic MmsValue instances - asynchronous version More... | |
bool | Cancel () |
Cancel a selection or time activated operation More... | |
UInt32 | CancelAsync (ControlActionHandler handler, object parameter) |
Cancel a selection or time activated operation More... | |
void | EnableSynchroCheck () |
Enables the synchro check for operate commands More... | |
void | EnableInterlockCheck () |
Enables the interlock check for operate and select commands More... | |
void | SetInterlockCheck (bool value) |
Sets the value of the interlock check flag for operate and select commands More... | |
void | SetSynchroCheck (bool value) |
Sets the value of the synchro check flag for operate command More... | |
void | SetTestMode (bool value) |
Sets the value of the test flag for the operate command More... | |
LastApplError | GetLastApplError () |
Gets the last received LastApplError (Additional Cause Diagnostics) value. More... | |
void | SetCommandTerminationHandler (CommandTerminationHandler handler, Object parameter) |
Sets the command termination handler. More... | |
void | Dispose () |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
Properties | |
IedClientError | LastError [get] |
Gets the error code of the last synchronous control action (operate, select, select-with-value, cancel) More... | |
Control object.
bool IEC61850.Client.ControlObject.Cancel | ( | ) |
Cancel a selection or time activated operation
handler | Callback function to handle the received response or service timeout |
parameter | User provided callback parameter. Will be passed to the callback function |
IedConnectionException | This exception is thrown if there is a connection or service error |
UInt32 IEC61850.Client.ControlObject.CancelAsync | ( | ControlActionHandler | handler, |
object | parameter | ||
) |
Cancel a selection or time activated operation
delegate void IEC61850.Client.ControlObject.ControlActionHandler | ( | UInt32 | invokeId, |
Object | parameter, | ||
IedClientError | error, | ||
ControlActionType | type, | ||
bool | success | ||
) |
Handler for asynchronous control actions (select, operate, cancel)
void IEC61850.Client.ControlObject.EnableInterlockCheck | ( | ) |
Enables the interlock check for operate and select commands
void IEC61850.Client.ControlObject.EnableSynchroCheck | ( | ) |
Enables the synchro check for operate commands
ControlModel IEC61850.Client.ControlObject.GetControlModel | ( | ) |
Gets the control model.
MmsType IEC61850.Client.ControlObject.GetCtlValType | ( | ) |
Get the type of ctlVal.
LastApplError IEC61850.Client.ControlObject.GetLastApplError | ( | ) |
Gets the last received LastApplError (Additional Cause Diagnostics) value.
bool IEC61850.Client.ControlObject.Operate | ( | bool | ctlVal | ) |
Operate the control with the specified control value.
ctlVal | the new value of the control |
bool IEC61850.Client.ControlObject.Operate | ( | bool | ctlVal, |
UInt64 | operTime | ||
) |
Operate the control with the specified control value (time activated control).
ctlVal | the new value of the control |
operTime | the time when the operation will be executed |
bool IEC61850.Client.ControlObject.Operate | ( | float | ctlVal | ) |
Operate the control with the specified control value.
ctlVal | the new value of the control |
bool IEC61850.Client.ControlObject.Operate | ( | float | ctlVal, |
UInt64 | operTime | ||
) |
Operate the control with the specified control value (time activated control).
ctlVal | the new value of the control |
operTime | the time when the operation will be executed |
bool IEC61850.Client.ControlObject.Operate | ( | int | ctlVal | ) |
Operate the control with the specified control value.
ctlVal | the new value of the control |
bool IEC61850.Client.ControlObject.Operate | ( | int | ctlVal, |
UInt64 | operTime | ||
) |
Operate the control with the specified control value (time activated control).
ctlVal | the new value of the control |
operTime | the time when the operation will be executed |
bool IEC61850.Client.ControlObject.Operate | ( | MmsValue | ctlVal | ) |
Operate the control with the specified control value.
ctlVal | the new value of the control |
bool IEC61850.Client.ControlObject.Operate | ( | MmsValue | ctlVal, |
UInt64 | operTime | ||
) |
Operate the control with the specified control value (time activated control).
ctlVal | the new value of the control |
operTime | the time when the operation will be executed |
UInt32 IEC61850.Client.ControlObject.OperateAsync | ( | bool | ctlVal, |
ControlActionHandler | handler, | ||
object | parameter | ||
) |
Operate the control with the specified control value.
ctlVal | the new value of the control |
handler | Callback function to handle the received response or service timeout |
parameter | User provided callback parameter. Will be passed to the callback function |
IedConnectionException | This exception is thrown if there is a connection or service error |
UInt32 IEC61850.Client.ControlObject.OperateAsync | ( | bool | ctlVal, |
UInt64 | operTime, | ||
ControlActionHandler | handler, | ||
object | parameter | ||
) |
Operate the control with the specified control value (time activated control).
ctlVal | the new value of the control |
operTime | the time when the operation will be executed |
handler | Callback function to handle the received response or service timeout |
parameter | User provided callback parameter. Will be passed to the callback function |
IedConnectionException | This exception is thrown if there is a connection or service error |
UInt32 IEC61850.Client.ControlObject.OperateAsync | ( | float | ctlVal, |
ControlActionHandler | handler, | ||
object | parameter | ||
) |
Operate the control with the specified control value.
ctlVal | the new value of the control |
handler | Callback function to handle the received response or service timeout |
parameter | User provided callback parameter. Will be passed to the callback function |
IedConnectionException | This exception is thrown if there is a connection or service error |
UInt32 IEC61850.Client.ControlObject.OperateAsync | ( | float | ctlVal, |
UInt64 | operTime, | ||
ControlActionHandler | handler, | ||
object | parameter | ||
) |
Operate the control with the specified control value (time activated control).
ctlVal | the new value of the control |
operTime | the time when the operation will be executed |
handler | Callback function to handle the received response or service timeout |
parameter | User provided callback parameter. Will be passed to the callback function |
IedConnectionException | This exception is thrown if there is a connection or service error |
UInt32 IEC61850.Client.ControlObject.OperateAsync | ( | int | ctlVal, |
ControlActionHandler | handler, | ||
object | parameter | ||
) |
Operate the control with the specified control value.
ctlVal | the new value of the control |
handler | Callback function to handle the received response or service timeout |
parameter | User provided callback parameter. Will be passed to the callback function |
IedConnectionException | This exception is thrown if there is a connection or service error |
UInt32 IEC61850.Client.ControlObject.OperateAsync | ( | int | ctlVal, |
UInt64 | operTime, | ||
ControlActionHandler | handler, | ||
object | parameter | ||
) |
Operate the control with the specified control value (time activated control).
ctlVal | the new value of the control |
operTime | the time when the operation will be executed |
handler | Callback function to handle the received response or service timeout |
parameter | User provided callback parameter. Will be passed to the callback function |
IedConnectionException | This exception is thrown if there is a connection or service error |
UInt32 IEC61850.Client.ControlObject.OperateAsync | ( | MmsValue | ctlVal, |
ControlActionHandler | handler, | ||
object | parameter | ||
) |
Operate the control with the specified control value.
ctlVal | the new value of the control |
handler | Callback function to handle the received response or service timeout |
parameter | User provided callback parameter. Will be passed to the callback function |
IedConnectionException | This exception is thrown if there is a connection or service error |
UInt32 IEC61850.Client.ControlObject.OperateAsync | ( | MmsValue | ctlVal, |
UInt64 | operTime, | ||
ControlActionHandler | handler, | ||
object | parameter | ||
) |
Operate the control with the specified control value (time activated control).
ctlVal | the new value of the control |
operTime | the time when the operation will be executed |
handler | Callback function to handle the received response or service timeout |
parameter | User provided callback parameter. Will be passed to the callback function |
IedConnectionException | This exception is thrown if there is a connection or service error |
bool IEC61850.Client.ControlObject.Select | ( | ) |
Select the control object.
UInt32 IEC61850.Client.ControlObject.SelectAsync | ( | ControlActionHandler | handler, |
object | parameter | ||
) |
Select the control object.
handler | Callback function to handle the received response or service timeout |
parameter | User provided callback parameter. Will be passed to the callback function |
IedConnectionException | This exception is thrown if there is a connection or service error |
bool IEC61850.Client.ControlObject.SelectWithValue | ( | MmsValue | ctlVal | ) |
Send a select with value command for generic MmsValue instances
ctlVal | the value to be checked. |
bool IEC61850.Client.ControlObject.SelectWithValue | ( | bool | ctlVal | ) |
Send a select with value command for boolean controls
ctlVal | the value to be checked. |
bool IEC61850.Client.ControlObject.SelectWithValue | ( | int | ctlVal | ) |
Send a select with value command for integer controls
ctlVal | the value to be checked. |
bool IEC61850.Client.ControlObject.SelectWithValue | ( | float | ctlVal | ) |
Send a select with value command for float controls
ctlVal | the value to be checked. |
UInt32 IEC61850.Client.ControlObject.SelectWithValueAsync | ( | bool | ctlVal, |
ControlActionHandler | handler, | ||
object | parameter | ||
) |
Send a select with value command for boolean controls - asynchronous version
ctlVal | the value to be checked. |
handler | Callback function to handle the received response or service timeout |
parameter | User provided callback parameter. Will be passed to the callback function |
IedConnectionException | This exception is thrown if there is a connection or service error |
UInt32 IEC61850.Client.ControlObject.SelectWithValueAsync | ( | int | ctlVal, |
ControlActionHandler | handler, | ||
object | parameter | ||
) |
Send a select with value command for integer controls - asynchronous version
ctlVal | the value to be checked. |
handler | Callback function to handle the received response or service timeout |
parameter | User provided callback parameter. Will be passed to the callback function |
IedConnectionException | This exception is thrown if there is a connection or service error |
UInt32 IEC61850.Client.ControlObject.SelectWithValueAsync | ( | float | ctlVal, |
ControlActionHandler | handler, | ||
object | parameter | ||
) |
Send a select with value command for float controls - asynchronous version
ctlVal | the value to be checked. |
handler | Callback function to handle the received response or service timeout |
parameter | User provided callback parameter. Will be passed to the callback function |
IedConnectionException | This exception is thrown if there is a connection or service error |
UInt32 IEC61850.Client.ControlObject.SelectWithValueAsync | ( | MmsValue | ctlVal, |
ControlActionHandler | handler, | ||
object | parameter | ||
) |
Send a select with value command for generic MmsValue instances - asynchronous version
ctlVal | the value to be checked. |
handler | Callback function to handle the received response or service timeout |
parameter | User provided callback parameter. Will be passed to the callback function |
IedConnectionException | This exception is thrown if there is a connection or service error |
void IEC61850.Client.ControlObject.SetCommandTerminationHandler | ( | CommandTerminationHandler | handler, |
Object | parameter | ||
) |
Sets the command termination handler.
handler | the handler (delegate) that is invoked when a CommandTerminationMessage is received. |
parameter | Parameter. |
void IEC61850.Client.ControlObject.SetInterlockCheck | ( | bool | value | ) |
Sets the value of the interlock check flag for operate and select commands
void IEC61850.Client.ControlObject.SetOrigin | ( | string | originator, |
OrCat | originatorCategory | ||
) |
Sets the origin parameter used by control commands.
originator | Originator. An arbitrary string identifying the controlling client. |
originatorCategory | Originator category. |
void IEC61850.Client.ControlObject.SetSynchroCheck | ( | bool | value | ) |
Sets the value of the synchro check flag for operate command
void IEC61850.Client.ControlObject.SetTestMode | ( | bool | value | ) |
Sets the value of the test flag for the operate command
|
get |
Gets the error code of the last synchronous control action (operate, select, select-with-value, cancel)
error code.