Skip to main content

Finite State Machine

stateMachines:
- browseName: ProductionStateMachineType
description: a long description
states:
- name: State1
value: 0
description: state 1
- name: State2
value: 1
description: state 2
transitions:
- from: State1
to: State2
value: 100
description:
- from: State2
to: State1
value: 200
description:
```yaml

# yaml-language-server: $schema=../../schemas/nodeset2.schema.json
namespaceUri: http://sterfive.com/UA/test/

eventTypes:
- browseName: ProductionPartTransitionEventType

stateMachines:
- browseName: ProductionStateMachineType
description: |
The ProductionStateMachineType shows the states an element in production can be in and the
possible transitions between those states.
subtypeOf: ua:FiniteStateMachineType
components:
- browseName: ua:CurrentState
typeDefinition: ua:FiniteStateVariableType
dataType: ua:LocalizedText
# modellingRule: Mandatory
- browseName: ua:LastTransition
typeDefinition: ua:FiniteStateTransitionVariableType
modellingRule: Optionnal
states:
- name: Initializing
value: 0
description: |

**Initializing** is the state in which the element in production is being prepared. During this state, the
machine doesn’t have to be ready for production, although it has to be as soon as the transition
**InitializingToRunning** is used. The production is not yet started.
- name: Running
value: 1
description: |

**Running** indicates that the operation of or on an element in production has been started or re-started
and is currently running
- name: Ended
value: 2
description: |

**Ended** is reached when the production on the part has finished. The PartQuality may be changed while
in this state, implying that the part is measured after the production process. The part does not have
to be mounted inside the machine while in this state.
- name: Interrupted
value: 3
description: |

**Interrupted** indicates that the execution of or on the element in production has been reversibly halted.
This is usually due to an error or an intervention by the operating personnel. It is possible to restart
operation of or on the element in production after it was in the interrupted state.
- name: Aborted
value: 4
description: |

The state Aborted indicates that the operation of or on an element in production has been irreversibly
stopped before finishing.
transitions:
- from: Aborted
to: Initializing
value: 8
description: |

AbortedToInitializing is triggered if the operation of or on an element in production is being re-initialized
after an abort
- from: Ended
to: Initializing
value: 2
description: |

EndedToInitializing is triggered when re-initialization of the operation of or on an element in production starts.
- from: Initializing
to: Aborted
value: 9
description: |

InitializingToAborted is triggered when the operation of or on an element in production is aborted while
in the Initializing state.
- from: Initializing
to: Running
value: 0
description: |

InitializingToRunning is triggered when the operation of or on an element in production starts.
- from: Interrupted
to: Aborted
value: 7
description: |

InterruptedToAborted is triggered when the operation of or on an element in production is aborted
while in the Interrupted state.
- from: Interrupted
to: Running
value: 5
description: |

InterruptedToRunning is triggered when an interruption ends and the operation of or on an element in
production continues running.
- from: Running
to: Aborted
value: 6
description: |

RunningToAborted is triggered when the operation of or on an element in production is aborted while
in the Running state.
- from: Running
to: Ended
value: 1
description: |

RunningToEnded is triggered when the operation of or on an element in production finishes
- from: Running
to: Interrupted
value: 4
description: |

RunningToInterrupted is triggered when the operation of or on an element in production is interrupted.
- from: Running
to: Running
value: 3
description: |

RunningToRunning is triggered when another consecutive run of the operation of or on an element i
production in direct succession starts.