Learn how to use the HAL Robotics Framework.
• documentation homeIn this tutorial we’ll create an Operator Workflow in decode.
Operator Workflows are a set of collaborative work instructions for the operator of a Cell, Robots and any other peripheral devices, like sensors, that need to be controlled or feed into the process.
From the Workflow Editor screen, click on the three bar menu icon (☰) in the top right-hand corner and Add a New Workflow. You can use the same menu to rename the Workflow, add other Workflows or delete the currently selected Workflow.
An empty Workflow isn’t very useful but offers a lot of potential.
In this tutorial we’ll look at the different Steps that can be added to an Operator Workflow in decode.
An Operator Workflow is comprised of a sequence of multiple Steps which create the collaborative work instructions for the Cell and operator. Some Steps are informational, others request information from the operator, run computational tasks, or communicate with devices.
Workflows acts a collaborative work instructions for operators and connected devices.
Use the Item Type selector to choose the Step type you want to add and click the + button to add it. As usual, it is highly recommended to assign a useful Name to any Step. The standard Steps and their settings are listed below.
0
will allow any number of Options to be a valid selection. Once your Operator Choice has been created, two Options will automatically be generated within it, more can be added by selecting the Operator Choice and clicking the + with Option in the Item Type selector.
Workflow Steps can ask the operator for input about how the process should work.
An editor will be shown to the operator when asking for their input.
N.B. For any of these to run the Procedure must be validated by Validate or _Validate on Change in Operator Input.
Inline
Mode will create a dense code file with as little declarative code as possible. Predeclaration
mode will do just the opposite, it will create variables wherever possible to make it easier to change things by hand should you want to. For most scenarios we recommend Inline
as it produces shorter code and is faster. You can also set what happens once the code is Exported in On Export.In this tutorial we’ll see how to run an Operator Workflow in decode.
Operator Workflows are a set of collaborative work instructions for the operator of a Cell, Robots and any other peripheral devices, like sensors, that need to be controlled or feed into the process. The Operator Workflow Executor is the only screen that an operator should need to interact with.
The Operator Workflow Executor screen has a few buttons at the top and nothing else, yet. The simulation/production mode toggle changes between running the virtual Robot or the real one. The Workflow selector allows the operator to choose which Workflow they want to run. The X resets the execution of a Workflow if for any reason the operator needs to start again or abort the current run. The play/pause button plays or pauses the execution and the circular arrows activates or deactivates the looping of the Workflow.
Once the Workflow is started Notifications, Confirmations, Inputs etc. will start appearing for the operator, as programmed in the Workflow.
The operator will continue to get instructions and be able to adjust the process until their Workflow is complete.