Omron trajexia CJ1W-MCH72 Operation Manual page 173

Sysmac cj-series programmable controller
Hide thumbs Also See for trajexia CJ1W-MCH72:
Table of Contents

Advertisement

All BASIC commands
4-2-115 FOR..TO..STEP..NEXT
162
0 - 15999
16000 - 31999
32000 - 47999
48000 - 63999
Example
FLASHVR(-1)
Store whole TABLE memory to flash memory.
Example
FLASHVR(-3,20,3)
Store table page 3 (TABLE(48000) - TABLE(63999)) into flash page
20.FLASHVR(-4,20,3)
Restore table page 0 (TABLE(0) - TABLE(15999)) from flash page 20.
This effectively copies data in range TABLE(48000) - TABLE(63999)
into range TABLE(0) - TABLE(15999).
See also
TABLE
/i
Type
Program control command
Syntax
FOR variable = start TO end [STEP increment]
commands
NEXT variable
Description
The FOR ... NEXT loop allows the program segment between the FOR
and the NEXT statement to be repeated a number of times.
On entering this loop, the variable is initialized to the value of start and
the block of commands is then executed. Upon reaching the NEXT
command, the variable is increased by the increment specified after
STEP. The STEP value can be positive or negative, if omitted the value
is assumed to be 1.
While variable is less than or equal to end, the block of commands is
repeatedly executed until variable is greater than end, at which time
program execution will continue after NEXT.
Note: FOR ... NEXT statements can be nested up to 8 levels deep in a
BASIC program.
Arguments
variable
Any valid BASIC expression.
start
Any valid BASIC expression.
end
Any valid BASIC expression.
increment
Any valid BASIC expression.
commands
One or more BASIC commands.
TABLE
FLASH
tablepage 0
tablepage 0
tablepage 1
tablepage 1
tablepage 2
tablepage 2
tablepage 3
tablepage 3
Section 4-2
.
.
.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents