42
4 Functional Description
4.6 Sequence programs
Sequence programs that are stored directly in the data flash memory of the controller and executed
from there can be created for stand-alone applications or for partially autonomous sequences.
The sequence programs can be created and transferred with the FAULHABER Motion Manager, but
it is also possible to use a standard text editor and to subsequently transfer the programs with the
Motion Manager or a terminal program.
During a program sequence commands can still be sent via the RS232. Almost all ASCII commands
can be used in motion programs.
The command PROGSEQ can also be used in the network with a preceding node number. The sub-
sequent command must be send also with a preceding node number. The addressed node stores all
received instructions thereby, between the commands PROGSEQ and END.
Command
Argument
Function
Description
PROGSEQ
[…]
END
–
Program
Sequence
Defines the start and end of the sequence program.
All commands sent to PROGSEQ are not executed, but transferred to the
sequence program memory. An END marks the end of the sequence pro-
gram.
All commands after END are directly executed again.
There is no SAVE command necessary for saving the program sequence.
Command must not be executed more than 10,000 times, as otherwise the
function of the Flash memory can no longer be guaranteed.
These commands do not have to be entered in the FAULHABER Motion
Manager, as they are automatically attached by the “Transfer program
file…” function.
Note: The Xon/Xoff protocol must be used to transfer lengthy program
sequences
GPROGSEQ
- / 1
Get Program
Sequence
Reads out and sends back the stored program sequence. Each program
line is output in lower case letters, ending with a CR character. At the end
of the program the line “end:” is sent, with specification of the program
length in bytes followed by a CR and LF character.
GPROGSEQ1: Reads out the program sequence and indicates at which pro-
gram line the program counter is currently located ("PC--")
ENPROG
–
Enable
Program
Execution of the program is released, i.e. the sequence is started. This
status can be permanently stored with SAVE/EEPSAV, so that the drive starts
up with the stored program sequence immediately after switch-on.
DIPROG
–
Disable
Program
Deactivate program execution.
RESUME
–
Resume
Continue program sequence after DIPROG at the point at which it was
interrupted.
MEM
–
Memory
Return available program memory in Word.
Control of sequence programs
There are a number of additional commands for controlling programs which are only useful within
sequence programs and are consequently only available there.