
38
Saving and Running Programs
Continuation: Additional Commands
Command Function
Description
Example
RETI
Return Error
Jumps back from the error subroutine to the main
RETI
Interrupt
program. Important: The interrupted command will not
repeat upon jumping back to the main program even if
it hadn’t fully been carried out before the interrupt.
DIERI
Disable Error
The ERI command is deactivated. That means the
DIERI
Interrupt
error subroutine will not run in the event of an error.
CALL
Call Subroutine
Calls up a subroutine
CALL17
RET
Return from
Return to the main program from a subroutine.
Subroutine
Note that it is not possible to make a sub-subroutine.
RET
Only one level is possible.
A
Define Address
Defines the actual position in the program as
A37
the jump-in point. Range: 0 to 63
More About Commands and Functions
The Jump Command
The jump command
(JMP)
makes it possible to
control the program sequence directly.
The jump command can also be used while
connected at the RS-232 port. This becomes
useful when different programs are to be called
up on the computer.
Example:
PROGSEQ
A1
JMP1 ... continuous loop
A2
... Program sequence 2 ... can only be called
up with the JMP2 command at the
RS-232.
LA10000
NP
M
JMP1 ... jumps back to continuous loop
A3
... Program sequence 3 ... can only be
called up with the JMP3 command at
the RS-232.
LA-10000
NP
M
JMP1 ... jumps back to the continuous loop.
END
The program sequences after the A2 and A3 can
only be called up at the RS-232 terminal. A JMP2
in this case means that the motor will run to
position 10000 and stop.
The
DxJNZ
commands serve to create program-
ming loops with predefined numbers of runs.
The commands
JPH
,
JPF
and
JPT
make jumps
possible when a specific predefined input is
activated. This makes it possible to call up
programs over an external switch.
The
A command
is used to define the jump
destination. The program sequence will then
continue after the jump destination.
The value range for jumps is from 0 to 63. That
means that 64 possible jump destinations can be
set with the JMP, JPx, ERI and CALL commands.
Summary of Contents for MCDC2805 series
Page 58: ...58 Notes ...
Page 59: ...59 Notes ...