Recipes - Omron CX-Supervisor Getting Started Manual

Release 3.1
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

Coffee Machine scenario
3-1-7

Recipes

1, 2, 3...
28
PlaySound("c:\coffee\glu.wav")
PlaySound("c:\coffee\glu.wav")
PlaySound("c:\coffee\glu.wav")
Sleep(2000)
coffee.visible(0)
PlaySound("c:\coffee\finished.wav")
displaytext = "Pick up your selection"
3. Add an Execute Script animation to coffee cup with code to call the Reset
subroutine when the cup is clicked.
Now's a good time to run the application and test the changes so far.
So we can buy, select and make a drink, but how do we handle making
different types of drinks? By creating a 'Recipe' for each choice,
predetermined amounts of ingredients can be used.
Add the points required by this step.
Point name
Point type Default Value Description (optional)
aux_text
Text
coffee_amount
Integer
milk_amount
Integer
selection_name
Text
sugar_amount
Integer
tea_amount
Integer
water_amount
Integer
1. Open the Recipe Editor.
2. Create a new recipe called "11" and add the following ingredients. Note
that for simplicity the Recipe name is made the same as the selection
code.
Ingredient Name Point
Ingredient 1
Name
Ingredient 2
Coffee
Ingredient 3
Water
Ingredient 4
Sugar
Ingredient 5
Milk
Ingredient 6
Tea
SECTION 3 Advanced Tutorial
Temporary text area for
conversions
Amount of coffee for this
selection
Amount of milk for this
selection
Name of selection made
Amount of sugar for this
selection
Amount of tea for this
selection
Amount of water for this
selection
Quantity
selection_name
Black Coffee
coffee_amount
100
water_amount
100
sugar_amount
0
milk_amount
0
tea_amount
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents