Table 97 specifies the VisionAutomaticStateMachine’s state Objects. These state Objects are instances of the StateType defined in OPC 10000-5 – Annex B. Each state is assigned a unique StateNumber value.

See Table 98 for a brief description of the states. The states will be detailed in the following subsections.

Table 97 – VisionAutomaticModeStateMachineType States

Browse

Name

References

Target BrowseName

Value

Target Type

Definition

Notes

Initialized

HasProperty

StateNumber

5

PropertyType

--

FromTransition

ReadyToInitializedRecipe

TransitionType

--

FromTransition

ReadyToInitializedProduct

TransitionType

--

FromTransition

ReadyToInitialzedAuto

TransitionType

--

ToTransition

InitializedToReadyRecipe

TransitionType

--

ToTransition

InitializedToReadyProduct

TransitionType

--

ToTransition

InitializedToReadyAuto

TransitionType

--

HasSubstateMachine

InitializedStepModel

VisionStepModelStateMachineType

--

Ready

HasProperty

StateNumber

6

PropertyType

--

FromTransition

InitializedToReadyRecipe

TransitionType

--

FromTransition

InitializedToReadyProduct

TransitionType

--

FromTransition

InitlializedToReadyAuto

TransitionType

--

FromTransition

SingleExecutionToReadyStop

TransitionType

--

FromTransition

SingleExecutionToReadyAbort

TransitionType

--

FromTransition

SingleExecutionToReadyAuto

TransitionType

--

FromTransition

ContinuousExecutionToReadyStop

TransitionType

--

FromTransition

ContinousExecutionToReadyAbort

TransitionType

--

FromTransition

ContinousExecutionToReadyAuto

TransitionType

--

ToTransition

ReadyToInitializedRecipe

TransitionType

--

ToTransition

ReadyToInitializedProduct

TransitionType

--

ToTransition

ReadyToInitializedAuto

TransitionType

--

ToTransition

ReadyToSingleExecution

TransitionType

--

ToTransition

ReadyToSingleExecutionAuto

TransitionType

--

ToTransition

ReadyToContinuousExecution

TransitionType

--

ToTransition

ReadyToContinuousExecutionAuto

TransitionType

--

HasSubstateMachine

ReadyStepModel

VisionStepModelStateMachineType

--

SingleExecution

HasProperty

StateNumber

7

PropertyType

--

FromTransition

ReadyToSingleExecution

TransitionType

--

FromTransition

ReadyToSingleExecutionAuto

TransitionType

--

ToTransition

SingleExecutionToReadyStop

TransitionType

--

ToTransition

SingleExecutionToReadyAbort

TransitionType

--

ToTransition

SingleExecutionToReadyAuto

TransitionType

--

HasSubstateMachine

SingleExecutionStepModel

VisionStepModelStateMachineType

--

ContinuousExecution

HasProperty

StateNumber

8

PropertyType

--

FromTransition

ReadyToContinuousExecution

TransitionType

--

FromTransition

ReadyToContinuousExecutionAuto

TransitionType

--

ToTransition

ContinuousExecutionToReadyStop

TransitionType

--

ToTransition

ContinousExecutionToReadyAbort

TransitionType

--

ToTransition

ContinousExecutionToReadyAuto

TransitionType

--

HasSubstateMachine

ContinuousExecutionStepModel

VisionStepModelStateMachineType

--

Table 98 – VisionAutomaticModeStateMachineType State Descriptions

StateName

Description

Initialized

This state indicated that the vision system is sufficiently initialized so that management operations like configuration and recipe management can be carried out through the server, if the optional management objects exist.

Ready

This state indicates that the vision system is capable of being started to carry out jobs, e.g. through Start methods called on the server.

SingleExecution

This state indicates that the vision system will acquire the data required for carrying out a single inspection or measuring job and will finish whatever operations are necessary to return to the Ready state to accept the next job.

ContinuousExecution

This state indicates that the vision system continually acquires and processes data, until it is stopped by internal or external reasons, e.g. calling the Stop or Abort methods on the server.

In this state, the system is characterized by the following properties:

  • The system is able to perform management and operations.
  • Configurations can be managed by methods detailed in Section 7.2.
  • Recipes can be managed by methods detailed in Sections 7.5, 7.6, 7.7.
  • One or more recipes can be prepared by the PrepareRecipe method such that these are ready to be used in processing operations.
  • Results can be pulled from the internal result-store by the methods detailed in Section 7.10.
  • The system can be put into simulation mode (see Section 8.3.7.5).

This state will be the first state entered in the VisionAutomaticModeStateMachine when the superior VisionStateMachine enters the Operational state either by an automatic transition from Preoperational or by a SelectModeAutomatic method call.

If an error is dectected which suspends normal operation, the system will change to the Error state in the VisionStateMachine.

This state can be left in the following ways:

All method-triggered transitions can also occur automatically upon an internal decision of the system.

This state can be a composite state with an optional VisionStepModelStateMachineType SubStateMachine.

In this state, the system is characterized by the following properties:

  • The vision system has prepared one or more recipes such that they can be used for processing immediately upon a StartSingleJob or StartContinuous method call (unless it is a system without any recipe management).
  • The vision system is ready to accept either a StartSingleJob or a StartContinuous method to begin image processing operation.
  • Recipes can be added and retrieved by methods detailed in Sections 7.5, 7.6, 7.7.
  • Which recipes are ready for use can be changed by calling the PrepareRecipe method depending on the recipe handling capabilities of the system.
  • Results can be pulled from the internal result-store by the methods detailed in Section 7.5.
  • The vision system can be put into simulation mode (see Section 8.3.7.5).

Depending on the recipe handling capabilities of the vision system, calling an AddRecipe or PrepareRecipe method in this state may cause the system to fall back into Initialized state, temporarily preventing it from accepting Start methods.

If an error is dectected which suspends normal operation, the system will transition to Error state in the VisionStateMachine.

This state can be left in the following ways:

All method-triggered transitions can also occur automatically upon an internal decision of the system.

This state can be a composite state with an optional VisionStepModelStateMachineType SubStateMachine.

In this state, the system is characterized by the following properties:

  • The vision system has received a command to begin the execution of an individual job (measuring, inspection, identifying, …), e.g. by a call to the StartSingleJob method on the server.
  • The vision system collects sensor data (i.e. acquiring single or multiple images, possibly awaiting triggers, often in hardware).
  • If data acquisition is a “multi-stage-process” (interaction with other devices) this may be modelled with a VisionStepModelType SubStateMachine (all states allow for this, but this is the most typical application, therefore we emphasize it here).
  • The vision system may indicate to the client by an AcquisitionDone event that acquisition has been finished, e.g. as a signal that the part can be removed from the camera’s field of view, either by moving the part or he camera.
  • The vision system carries out the processing of the acquired data at least so far that the internal resources are available to transition into state Ready to accept the next start command.
  • Results can be pulled from the internal result-store by the methods detailed in Section 7.5 (depending on the capabilities of the system).

Note that the above description illustrates a typical behavior. The vision system is, however, in no way obliged to perform any particular operation – like image acquisition or processing – in this state. It can do completely different things or nothing at all before returning to Ready state. The point is rather that the difference between SingleExecution state and Ready state lies in the availability of the required resources for starting a job.

If an error is detected which suspends normal operation, the system will change to state Error in the VisionStateMachine.

This state can be left in the following ways:

All method-triggered transitions can also occur automatically upon an internal decision of the system.

This state can be a composite state with an optional VisionStepModelStateMachineType SubStateMachine.

In this state, the system is characterized by the following properties:

  • The vision system has received a StartContinuous command to begin the execution of a continuous job
  • The vision system collects sensor data (i.e. acquiring single or multiple images, possibly awaiting triggers, often in hardware) and processes this in a continuously ongoing fashion.
  • Results can be pulled from the internal result-store by the methods detailed in Section 7.5 (depending on the capabilities of the system).

Note that the above description illustrates a typical behavior. The vision system is, however, in no way obliged to perform any particular operation – like image acquisition or processing – in this state. It can do completely different things or nothing at all before returning to Ready state. The point is rather that the difference between ContinuousExecution state and Ready state lies in the availability of the required resources for starting a job.

If an error is detected which suspends normal operation, the system will change to the Error state in the VisionStateMachine.

This state can be left in the following ways:

All method-triggered transitions can also occur automatically upon an internal decision of the system.

This state can be a composite state with an optional VisionStepModelStateMachineType SubStateMachine.