Omron CX-Supervisor Getting Started Manual page 26

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

Advertisement

Coffee Machine scenario
3-1-5-1 Opening and closing the machine:
1, 2, 3...
3-1-5-2 Inserting the coin:
1, 2, 3...
3-1-5-3 Updating displays, and pouring coffee:
1, 2, 3...
Note:
3-1-5-4 Displaying storage levels:
1, 2, 3...
Point name
Point type
credit
Boolean
displaytext
Text
milk_level
Integer
selection
Integer
sugar_level
Integer
tea_level
Integer
time_counter
Integer
water_level
Integer
1. Open the page called open.
2. Select the door lock object on the bottom left.
3. From the toolbar, click the
Animation Editor.
4. Add an animation for Display Page and select the page to be opened as
Main. Note that because the pages were defined as Replace, when one
page opens it automatically closes the pages underneath.
5. Repeat for the door lock on the page called Main to open the page called
Open.
1. Open the page called main.
2. Select the coin and add an animation for Execute Script with the script
code "credit = 1" to acknowledge that money has been entered.
3. Also add an animation for Visibility controlled by the value of credit.
Remember the coin should be visible while credit is false, or should be
invisible when credit is true or "credit == 1".
1. Select the main display object.
2. Add a Display Value (Text) animation to with an expression displaytext.
if this animation is not available then the object may not have been
originally created as a Text Object type.
3. Add a Display Value (Analogue) animation to the 2 digit display with an
expression selection
4. Add a Resize (Height) animation to coffee liquid object with an expression
time_counter to simulate the pouring. Minimum and Maximum should be
0 and 50 respectively.
1. Open the page called open.
SECTION 3 Advanced Tutorial
Default Value Description (optional)
TRUE when coin inserted
into the machine
**************** Top line of machine display
2000
Total level of stored milk
2000
Number of selection made
2000
Total level of stored sugar
2000
Total level of stored tea
2000
Control pouring of drink
2000
Total level of stored water
button, or from Utilities menu, select
25

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents