All BASIC commands
Section 4-2
161
4-2-113 FOR..TO..STEP..NEXT
/i
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
0 - 15999
FLASH
16000 - 31999
32000 - 47999
48000 - 63999
tablepage 0
tablepage 1
tablepage 2
.
.
.
tablepage 3
TABLE
tablepage 0
tablepage 1
tablepage 2
tablepage 3
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.
Содержание SYSMAC CJ Series
Страница 2: ......
Страница 70: ...Specifications Section 2 4 58...
Страница 84: ...FINS commands Section 3 4 72...
Страница 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...Section 265 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 370: ...Section 358...