
37
Saving and Running Programs
Controlling a Program Sequence
The following are added commands for controlling a program sequence while it is running.
These commands are only available while the program sequence is running.
When the following commands are used the current program is interrupted
until a certain criteria is fulfilled:
NP
... Notify Position ... The program is interrupted at next “M”-Command until a certain
position is achieved
HN
... Hard Notify
... The program is interrupted at ‘GOHOSEQ’-Commands or at next “M”- or
“V”-Command until the limiter switch has been reached
NV
... Notify Velocity ... The program is interrupted at next “M”- or “V”-Command until a certain
speed is achieved
GOHIX ... Go Hall Index ... The program is interrupted at “GOHIX”-Command until the Hall zero
index is reached
Additional Commands (Most are only available while programming a sequence):
Command Function
Description
Example
DELAY
Delay
Stops the sequence for a period of time defined with:
Delay100
Arguement: in 1/100th of a second
Range: 0 to 65535
TIMEOUT
Timeout
The motor waits a defined period of time when notify
TIMEOUT5
commands are being carried out and then the
asynch
➔
o
sequence will continue. Arguement: 1/100th of a second.
Range: 0 to 65535
An answer of “o” at the RS-232 host
means that the notify requirements were not met. The
command can also be programmed with the RS-232
JMP
Jump
Jumps to a given address. The command
JMP5
can also be used with the RS-232.
JPH
Jump if Hard-Input
Jump to a given address if the analog input is active
JPH3
activated
(HP command defines the polarity.)
JPF
Jump if Fault-Input
Jumps to a given address when the Fault Pin Input is
JPF4
activated
active. (The HP command defines the polarity) Fault
Pin must already be configured as an input (REFIN)
SETx
Set Variable x
Set variable x (A,B,C) to a value in range 0 to 65535.
SETA10
GETx
Get Variable x
Calls up current settings of variable x
GETA
➔
123
DxJNZ
Decrement x,
Decreases the value of x by 1 and jump if the value has
DBJNZ8
Jump if not Zero
not reached 0.
ERI
Error Interrupt
An error interrupt is activated. That means that when
ERI5
an error occurs the program will jump to an error
subroutine in order to correct the problem. The
subroutine must end with a JMP or RETI command.