List Of Instructions; Program Control Instructions - Hitachi NT2021XA Instruction Manual

Easy-sequence programming software
Table of Contents

Advertisement

2.2

List of Instructions

This section lists the instructions that can be used in a program.

(1) Program control instructions

Instruction
name
Mnemonic code
entry
entry
statement
end
sub
sub
statement
end sub
call
call
statement
for
for loop
statement
<instruction set>
next
goto
goto
statement
on trip goto
on
statement
if statement
if
ifs
then
<instruction set>
structured if
else
<instruction set>
end if
select
select case
case
syntax
[case else]
statement
end select
until
until loop
<instruction set>
statement
loop
wait
wait loop
statement
while
while loop
<instruction set>
statement
wend
inc
inc
statement
dec
dec
statement
Instruction format
Parameter 1
Parameter 2
<subroutine
name>
<subroutine
name>
<variable>
<start value>
<label name>
trip
goto
<condition>
<condition>
<conditional
variable>
<conditional
value>
<condition>
***.**
<variable>
<condition>
<condition>
<variable>
<variable>
Parameter 3
Parameter 4
<incremental
<end value>
value>
<label name>
2-3
Chapter 2 Syntax
Description
Parameter 5
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>.
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
<label name>
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 for <variable> × 10ms.
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.

Advertisement

Table of Contents
loading

Table of Contents