Skip to main content

building a Temperature Sensor

In this example, we are going to create interactively a state machine that will be used to control a temperature sensor. example state machine extracted from the OPC Reference manual.

State Machine

namespaceUri: http://sterfive.com/UA/test/

stateMachines:
- browseName: MyFiniteStateMachineType
subtypeOf: ua:FiniteStateMachineType
promotedToMandatory:
- ua:CurrentState.ua:Id
- ua:CurrentState.ua:Name
- ua:CurrentState.ua:Number
- ua:CurrenutState.ua:EffectiveDisplayName
- ua:LastTransition.ua:Id
- ua:LastTransition.ua:Name
- ua:LastTransition.ua:Number
- ua:LastTransition.ua:TransitionTime
initialState:
- name: Initial
value: 0
description: Initial state