EasyManua.ls Logo

Hitachi SJ700-2 Series - List of Instructions

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

Table of Contents

Related product manuals