
CHAPTER 9 – Animation
OMRON
Page 130
Release 2.0
Refer to the
Script Language Manual
for explicit details regarding the construction and syntax of
script code. Chapter 10, Runtime Actions
describes the creation of script code using the Script
Editor.
The script is defined using the
Execute Script
entry in the Animation Editor list.
Page
Page scripts are concerned with manipulating points and graphical objects that are used or included
within that page. Actions cannot refer to graphical objects that appear in other pages. In other words,
page scripts are used to drive a number of actions on the occurrence of a particular event. An
example of page script code is as follows:
REM ** move the car and transport **
IF start THEN
Position = position – speed
ENFIF
REM ** if the car is at the start then reset the **
REM ** position and reset the car colour **
IF position < 0THEN
position = 800
POLYGON_11.colour = dark_grey
ENDIF
REM setup the paint spray colour **
IF position < 300 || position > 400 && changepaint THEN
IF paintblue THEN
POLYGON_34.colour = dark_blue
ENDIF
IF paint green THEN
POLYGON_34.colour = Dark_green
ENDIF
IF paintred THEN
POLYGON_34.colour = red
ENDIF
IF paintpurple THEN
POLYGON_34.colour = purple
ENDIF
IF paintyellow THEN
POLYGON_34.colour = yellow
ENDIF
IF paintwhite THEN
POLYGON_34.colour = white
ENDIF
Summary of Contents for CX-SUPERVISOR - V2.0
Page 2: ...CX Supervisor User Manual Software Release 2 0...
Page 3: ......
Page 5: ...CX Supervisor User Manual OMRON Page ii Revision 2 0...
Page 7: ...CX Supervisor User Manual OMRON Page iv Revision 2 0...
Page 11: ...CX Supervisor User Manual OMRON Page viii Revision 2 0...
Page 13: ...CX Supervisor User Manual OMRON Page x Revision 2 0...
Page 15: ...CX Supervisor User Manual OMRON Page xii Revision 2 0...
Page 17: ...CX Supervisor User Manual OMRON Page xiv Revision 2 0...
Page 19: ...CX Supervisor User Manual OMRON Page xvi Revision 2 0...
Page 21: ...CX Supervisor User Manual OMRON Page xviii Revision 2 0...
Page 23: ......
Page 67: ......
Page 97: ......
Page 137: ...CHAPTER 7 Graphics Library OMRON Page 114 Release 2 0...
Page 183: ...CHAPTER 9 Animation OMRON Page 160 Release 2 0...
Page 215: ......
Page 263: ......
Page 269: ......
Page 274: ...OMRON CHAPTER 16 Connecting to Omron Industrial Components Release 2 0 Page 251...
Page 275: ......
Page 285: ......
Page 319: ......
Page 331: ......
Page 351: ......
Page 359: ...GLOSSARY OF TERMS CX Supervisor User Manual OMRON Page 336 Release 2 0...