Programming Techniques
13–19
File name 33s-E-Manual-1008-Publication(1st).doc Page : 386
Printed Date : 2003/10/8 Size : 13.7 x 21.2 cm
A DSE instruction is like a FOR–NEXT loop with a negative increment.
After pressing a shifted key for ISG or DSE (
¹
ª
or
º
«
), you will be
prompted for a variable that will contain the loop–control number (described
below).
The Loop–Control Number
The specified variable should contain a loop–control number ±ccccccc.fffii, where:
±ccccccc is the current counter value (1 to 12 digits). This value changes with
loop execution.
fff is the final counter value (must be three digits). This value does not change
as the loop runs.
ii is the interval for incrementing and decrementing (must be two digits or
unspecified). This value does not change. An unspecified value for ii is
assumed to be 01 (increment/decrement by 1).
Given the loop–control number ccccccc.fffii, DSE decrements ccccccc to
ccccccc — ii, compares the new ccccccc with fff, and makes program execution
skip the next program line if this ccccccc
≤
fff.
Given the loop–control number ccccccc.fffii, ISG increments ccccccc to ccccccc +
ii, compares the new cccccccc with fff, and makes program execution skip the next
program line if this ccccccc
>
fff.