Omron CX-SUPERVISOR - V2.0 User Manual page 153

Table of Contents

Advertisement

CHAPTER 9 – Animation
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
ENFIF
REM ** if the car is at the start then reset the **
REM ** position and reset the car colour **
IF position < 0THEN
ENDIF
REM setup the paint spray colour **
IF position < 300 || position > 400 && changepaint THEN
ENDIF
IF paint green THEN
ENDIF
ENDIF
IF paintpurple THEN
ENDIF
IF paintyellow THEN
ENDIF
IF paintwhite THEN
ENDIF
Page 130
Position = position – speed
position = 800
POLYGON_11.colour = dark_grey
IF paintblue THEN
POLYGON_34.colour = dark_blue
POLYGON_34.colour = Dark_green
IF paintred THEN
POLYGON_34.colour = red
POLYGON_34.colour = purple
POLYGON_34.colour = yellow
POLYGON_34.colour = white
OMRON
Release 2.0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents