GE PACSystems RX7i Cpu Programmer's Reference Manual page 393

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

Chapter 8. Structured Text (ST) Programming
Examples
The following code fragment initializes an array of 100 elements starting at %R1000 (given that
R1000 is at %R1000) by assigning a value of 10 to all array elements.
FOR R1000 := 1 TO 100 DO
@R1000 := 10;
END_FOR;
The following code fragment assigns the values of an I/O point to array elements over ten I/O scans.
The last entry is put in the array element with the smallest index.
FOR R1000 := 10 TO 1 BY -1 DO
@R1000 := Input01;
END_FOR;
378
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
GFK-2950C

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents