CHAPTER 7 – Script Example
OMRON
Page 136
Revision 2.0
If the balloon has hit the ground (point ‘alt’ equals 140), then if the rate of descent is not too fast
(defined by point ‘lift’), then the game is lost.
lift = 0.0
ENDIF
Point ‘lift’ is reset.
speed = (alt-140.0 )/100.0
IF speed < 0.0 then
speed = 0.0
ENDIF
Point ‘speed’ is calculated based on the altitude.
distance = di speed
Point ‘distance’ is calculated based on the speed.
Summary of Contents for CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Page 2: ...CX Supervisor Script Language Software Revision 2 0...
Page 3: ......
Page 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Page 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Page 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Page 13: ......
Page 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Page 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Page 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Page 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...