![Hioki MR8790 Скачать руководство пользователя страница 103](http://html1.mh-extra.com/html/hioki/mr8790/mr8790_instruction-manual_2137099103.webp)
104
Function Input Mode
Control words
The following words are used to denote instructions.
AREA
Function
Speci es the editing range.
Format
AREA <start point>, <end point>
Example
AREA 0,500
Explanation This control word speci es the editing range for the instruction that follows it. The <start point>
must be greater than or equal to 0 and less than the <end point>. The <end point> must be
greater than the <start point> and less than or equal to the waveform size. If this instruction is
omitted, a <start point> of 0 and an <end point> equal to the waveform size will be used.
Instructions occurring between the AREA instruction and the next AREA instruction or END
instruction will be valid from the <start point> to (<end point> - 1). However, the presence of a
PERIOD instruction in that interval will cause data to be repeatedly generated in the speci ed
variation domain. In this case, waveform data will be generated from the <start point> to (<end
point> - 1) by the V instruction.
END
Function
Declares the end of the program.
Format
END
Example
END
Explanation This control word signals the end of program operations. Any instructions following this
instruction will be ignored. The nal END instruction in the program may be omitted.
FOR… TO… STEP to NEXT
Function
Repeatedly executes the series of instructions included between “FOR” and “NEXT.”
Format
FOR <variable name> = <Initial value> TO <end value> [STEP <increment>]
~
NEXT
Example
FOR J=0 TO 100 STEP 2
~
NEXT
Explanation The instructions contained inside the FOR… NEXT loop will be repeatedly executed according
to the conditions speci ed in the FOR instruction. Set the <initial value> to the variable’s initial
value. Set the <end value> to the variable’s nal value. Set the <increment> to the increment
you wish to use between the start value and end value.
The example above sets J to 0 before executing the instructions following the FOR instruction.
When program execution reaches the NEXT instruction, the J value is increased by the
increment of 2 so that it then equals 2, and the instructions following the FOR instruction are
again executed. This process is repeated until J equals 100. If [STEP <increment>] were
omitted, an <increment> of 1 would be used.
If the <start value> or <increment> is greater than the <end value>, the instructions following
the FOR instruction will only be executed with the <start value>.
Caution
FOR… NEXT loops cannot include AREA instructions, PERIOD instructions, other FOR…
NEXT loops, or V instructions containing DIFF or INTG instructions.
www.
.com
1.800.561.8187