Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual page 149

Script language
Table of Contents

Advertisement

CHAPTER 7 – Script Example
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 = distance + speed
Point 'distance' is calculated based on the speed.
Page 136
OMRON
Revision 2.0

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents