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
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