07/15/2021
Hello everyone, can anyone guide me on how to create a substate machine inside one of the states of a superstate machine in an OPC UA server? I am trying to implement a FiniteStateMachineType substate machine inside the running state of a ProgramStateMachineType state machine. Can someone help me with this?
I saw this example in the OPC UA specification and I would like to do something similar. https://reference.opcfoundatio.....t10/A.2.2/
It would be great if someone could tell me where to find the C# implementation of this example.
07/15/2021
Hi Randy,
Thank you for the reply. Now I have a working prototype but I have a query about sub-state machines.
In the domain download example given in OPC 10000-10 - UA Specification Part 10 - Programs, the running state has been extended with a sub-state machine (Transfer sub-state machine). I would like to know the initial state of this sub-state machine. To be more specific, when the state transitions from closing to completed, the Transfer sub-state machine will no longer be active, so what will be the current state of the Transfer sub-state machine?
05/30/2017
When a substate machine is not active it has no state.
Any reads of the states of an inactive substate machine returns Bad_StateNotActive
When when a substate machine it goes to the initial state for the substate machine unless the containing statemachine defines a transition that goes to some other state.
1 Guest(s)