The Method DisconnectAsset is used to disconnect or connect the asset.
Note: It is intended to be used for physical assets connected with physical cables where an asset can be disconnected using the method before removing the cable connection.
Examples: Cable Tool connected to a Controller or a gateway, Robot docking.
The Asset.Parameters.Connected variable shall be updated with the connection status and generate an event of JoiningSystemEventType with ConditionClass = SystemConditionClassType and ConditionSubClass = AssetConnectedConditionClassType or AssetDisconnectedConditionClassType..
The signature of this Method is specified below. Table 68 and Table 69 specify the Arguments and AddressSpace representation, respectively.
Signature
DisconnectAsset (
[in]0:String productInstanceUri,
[in]0:Boolean disconnect,
[out]0:Int64 status,
[out]0:LocalizedText statusMessage)
Table 68 – DisconnectAsset Method Arguments
|
Argument |
Description |
|
productInstanceUri |
With this argument the Client can provide the identifier of the asset on which this method is applicable. It can be empty if the method is modelled directly under the required asset. If it is empty, the system can consider the identifier of the asset where the Server is running. |
|
disconnect |
If true, it will prepare the asset for disconnect. The default value is false. |
|
status |
It provides the status of the Method execution. Refer 7.4 for details. |
|
statusMessage |
It provides the high-level status information in a user-friendly text. |
Table 69 – DisconnectAsset Method AddressSpace Definition
|
Attribute |
Value |
||||
|
BrowseName |
DisconnectAsset |
||||
|
References |
Node Class |
BrowseName |
DataType |
TypeDefinition |
ModellingRule |
|
0:HasProperty |
Variable |
0:InputArguments |
0:Argument[] |
0:PropertyType |
0:Mandatory |
|
0:HasProperty |
Variable |
0:OutputArguments |
0:Argument[] |
0:PropertyType |
0:Mandatory |