5.1 List of Instructions
This section lists the instructions that can be used in a program.
(1) Program control instructions
Instructio
Mnemonic
n name
code
entry
entry
statement
end
sub
sub
statement
end sub
call
call
statement
cont
cont
statement
for
for loop
statement
<instruction
set>
next
goto
goto
statement
on trip
on
goto
statement
if
if
statement
ifs
then
ifs
<instruction
(structure
set>
d if)
else
statement
<instruction
set>
end if
select
select
case
case
syntax
statement
[case else]
end select
until
until loop
<instruction
statement
set>
loop
wait
wait
statement
while
while loop
<instruction
statement
set>
wend
inc
inc
statement
dec
dec
statement
Instruction format
Second
First argument
argument
<subroutine
name>
<subroutine
name>
on
off
<variable>
<start value>
<label name>
trip
goto
<condition>
<condition>
<conditional
variable>
<conditional
value>
<condition>
***.**
<condition>
<condition>
<variable>
<variable>
Chapter 5 Instruction Words
Third
Fourth
argument
argument
argument
<end
<increment
value>
al value>
<label
name>
<label
then
name>
5 - 1
Description
Fifth
Indicates the beginning of the main
program.
Indicates the end of the main program.
Indicates the beginning of a subroutine.
Indicates the end of a subroutine.
Branches processing to the subroutine
specified by <subroutine name>.
Resumes execution, after an interruption,
from the step where program execution
was interrupted.
Resumes execution, after an interruption,
from the beginning of the program.
Executes <instruction set> repeatedly
until <variable> reaches <end value>.
Note that <variable>, which initially
contains <start value>, is incremented by
<incremental value> each time
<instruction set> is executed.
Indicates the instructions to be executed
repeatedly.
Ends the "for" loop.
Branches processing unconditionally to
the step labeled with <label name>.
Branches processing to the step labeled
with <label name> when the inverter trips.
Branches processing to the step labeled
with <label name> when the <condition>
is met.
Starts the structured if statement.
Indicates the beginning of instructions to
be executed when <condition> is met.
Indicates the instructions to be executed
when <condition> is met.
Indicates the beginning of instructions to
be executed when <condition> is not met.
Indicates the instructions to be executed
when <condition> is not met.
Ends the structured if statement.
Executes the instructions specified after
"case" when the value of <conditional
variable> is <conditional value>.
Indicates the conditional value and the
beginning of instructions to be executed.
Indicates the beginning of instructions to
be executed when the value of
<conditional variable> is not <conditional
value>.
Ends the select case syntax statement.
Executes <instruction set> repeatedly
until <condition> is met.
Indicates the instructions to be executed
while <condition> is not met.
Ends the "until" loop.
Waits for "***.**" seconds.
Waits until <condition> is met.
Executes <instruction set> while
<condition> is met.
Indicates the instructions to be executed
while <condition> is met.
Ends the "while" loop.
Increments the value of <variable> by 1.
Decrements the value of <variable> by 1.