GE PACSystems RX7i Cpu Programmer's Reference Manual page 391

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

Chapter 8. Structured Text (ST) Programming
Examples
The following code fragment assigns a value to the variable ColorVariable.
CASE ColorSelection OF
0:
1:
2,3,4: ColorVariable:= Green;
5..9:
ELSE
ColorVariable:= Violet;
END_CASE;
The following code fragment uses a nested CASE...OF...END_CASE construct.
CASE ColorSelection OF
0:
1:
2,3,4: ColorVariable:= Green;
5..9:
ELSE
CASE ColorSelection OF
ELSE
END_CASE;
ColorError: 1;
END_CASE;
376
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
ColorVariable:= Red;
ColorVariable:= Yellow;
ColorVariable:= Blue;
ColorVariable:= Red;
ColorVariable:= Yellow;
ColorVariable:= Blue;
10: ColorVariable:= Violet;
ColorVariable:= Black;
GFK-2950C

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents