omron — 3-1-5 Animation

Coffee Machine scenario SECTION 3 Advanced Tutorial 3-1-5-1 Opening and closing the machine: 1, 2, 3… 1. Open the page called open . 2. Select the door lock object on the bottom left. 3. From the toolbar, click the button, or from Utilities menu, select 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 . 3-1-5-2 Inserting the coin: 1, 2, 3… 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". 3-1-5-3 Updating displays, and pouring coffee: 1, 2, 3… 1. Select the main display object. 2. Add a Display Value (Text) animation to with an expression displaytext . Note: 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. 3-1-5-4 Displaying storage levels: 1, 2, 3… 1. Open the page called open .

25 Point name Point type Default Value Description (optional) credit Boolean TRUE when coin inserted into the machine displaytext Text **************** Top line of machine display milk level _ Integer 2000 Total level of stored milk selection Integer 2000 Number of selection made sugar level _ Integer 2000 Total level of stored sugar tea level _ Integer 2000 Total level of stored tea time counter _ Integer 2000 Control pouring of drink water level _ Integer 2000 Total level of stored water