
User Manual
E727T0005, valid for E-727
BRO, 2019-06-28
Physik Instrumente (PI) GmbH & Co. KG, Auf der Roemerstrasse 1, 76228 Karlsruhe, Germany
Page 128 / 240
Phone +49 721 4846-0, Fax +49 721 4846-1019, Email
JRC -2 VAR? COUNTER < 5
MAC END
The COUNTER variable is created with the value 1. After this, the TESTDION macro is
started for the input line whose identifier is specified via the COUNTER variable. Then the
value of the COUNTER is increased by 1. As long as the value of the COUNTER is less than 5,
the macro execution pointer subsequently jumps two lines back, so that the TESTDION is
now started for the next digital input line.
Stopping a macro execution
INFORMATION
You can link the stopping of the macro execution to a condition with the
MEX
command. The
command must be included in the macro.
In the following, PITerminal or the
Command entry
window of PIMikroMove is used to enter
commands. Details on working with the
Controller macros
tab in PIMikroMove are found in the
PIMikroMove manual.
Stop the macro execution with the
#24
or
STP
commands.
If you want to check whether an error has occurred during the macro execution, send the
MAC ERR?
command. The response shows the last error that has occurred.
Setting up a start-up macro
Any macro can be defined as the start-up macro. The start-up macro is executed each time that
the E-727 is switched on or rebooted.
INFORMATION
Deleting a macro does not delete its selection as the start-up macro.
In the following, PITerminal or the
Command entry
window of PIMikroMove is used to enter
commands. Details on working with the
Controller macros
tab in PIMikroMove are found in the
PIMikroMove manual.
Define a macro as the start-up macro with the
MAC DEF
macroname
command, whereby
macroname
indicates the name of the macro.
If you want to cancel the selection of the start-up macro and do not want to define another
macro as the start-up macro, only send
MAC DEF
.
Get the name of the currently defined start-up macro by sending the
MAC DEF?
command.