Alarms - 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-8

Alarms

1, 2, 3...
3. Create remaining recipes with ingredient quantities as detailed in the list
below.
Tip: You can Copy and Paste Recipe 11 and the recipe name will
automatically be incremented. The Ingredient values may then just be
edited.
Recipe
Name
Name
12
Espresso
13
White
Coffee
14
Milk
15
Tea
16
Water
4. Copy all the previous recipes for the remaining selections (21, 22, 23, 24,
25, 26) and change the sugar ingredient to 50, and name with a "with
Sugar" suffix.
5. Add the code to the Make the Drink script to download the recipe
ingredients :
aux_text = ValueToText( selection )
DownloadRecipe (aux_text)
Sleep( 1000)
'Take quantities from storage
coffee_level = coffee_level - coffee_amount
water_level = water_level - water_amount
milk_level = milk_level - milk_amount
tea_level = tea_level - tea_amount
sugar_level = sugar_level - sugar_amount
When run, you will see that each time a drink is made the storage tanks are
emptied by the correct amount for each ingredient.
We can provide the mechanism to create an alarm should any of the
resources run out.
1. Open the Alarm Editor.
2. Add the alarms with details from the list below.
Name
coffee_level_alarm
water_level_alarm
milk_level_alarm
SECTION 3 Advanced Tutorial
Coffee
Water
50
75
50
50
0
0
0
100
0
100
Expression
coffee_level <= 0
water_level <= 0
milk_level <= 0
Sugar
Milk
0
0
0
50
0
100
0
0
0
0
Raised
Normal
Message
Message
Coffee deposit
Coffee deposit
is empty
is refilled
Water deposit
Water deposit
is empty
is refilled
Milk deposit is
Milk deposit is
empty
refilled
Tea
0
0
0
100
0
29

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents