6 Drive Programming Commands
6 - 4
Drive Programming User’s Manual (I580-E2)
6-3 Command List
Program Control Commands
Command Argument 1 Argument 2 Argument 3 Argument 4 Argument 5 Description
entry Indicates the begin-
ning of the task.
end Indicates the end of
the task.
call <subroutine> Jumps to <subrou-
tine>.
sub <subroutine> Indicates the begin-
ning of the subroutine.
end sub Indicates the end of
the subroutine.
goto <label> Jumps to <label>
unconditionally.
on trip goto <label> Jumps to <label>
when a trip occurs.
if <condition> goto <label>
Jumps to <label> when
the condition is met.
if <condition> then Starts the “if” structure.
If <condition> is met, it
executes <command
set 1> right after this
command until the
“else” command, and
goes to the next step
after the “endif”.
If <condition> is not
met, it executes <com-
mand set 2> right after
the “else” command
until the “endif” com-
mand, and goes to the
next step after the
“endif”.
<command set 1> The command set that
is executed when
<condition> is met.
else Starts the commands
when <condition> is
not met.
<command set 2> The command set that
is executed when
<condition> is not met.
endif Ends the “if” structure.