
➔
The
Save selected macros to PC
button becomes active when selecting one or more
macros.
3. Save the selected macros on the PC:
a)
Click the
button to open a directory selection window.
b) Select the directory on the PC where you want to save the macros.
c) Click
Save
.
➔
The macros are saved as text files (<macroname>.txt) in the selected directory of the PC.
Loading Controller Macros from the PC to the E-871.1A1N
1. Select the
Controller macros
tab in PIMikroMove's main window.
2. Load macros from the PC to the E-871.1A1N:
a)
Click the
button to open a file selection window.
b) Select the text files (<macroname>.txt) in the file selection window whose contents
you want to load as a macro from the PC to the E-871.1A1N.
c) Click
Open
.
➔
For each selected text file (<macroname>.txt), the content is loaded as a macro
<macroname> into the E-871.1A1N.
8.6.7
Example Macros
Example Macro: Stopping Motion by Pushbutton
1. Connect digital input line 1 on the
I/O socket to an appropriate signal source.
The digital input signal can be used e. g. for a conditional jump of the macro execution
pointer.
2. Record the HALT macro on the controller.
MAC BEG halt
MVR 1 5
JRC 2 DIO? 1 = 1
JRC -1 ONT? 1 = 0
HLT 1
MAC END
➔
The macro has the following tasks:
Start relative motion of axis 1
Set condition: If digital input line 1 has the high state, the macro execution pointer jumps
two lines forward. This stops the axis. Otherwise, the macro continues to the next line.
Set condition: As long as axis 1 has not yet reached the target position, the macro
execution pointer jumps back one line. A loop is established as a result.
3. Start the HALT macro on the controller.
MAC START halt
➔
Axis 1 starts to move. It is stopped by switching digital input line 1 to the high state (e. g.
by pushbutton). Regardless of whether the axis has reached the target position or was
halted previously, the error code is set to 10 via the
HLT
command.
4. If error code 10 interferes: Record alternative HALTVAR macro which uses a variable.
MAC BEG haltvar
MVR 1 5
8 E-871.1A1N FUNCTIONS
PZ285EN
‒
1/30/2019
98
M O T I O N | P O S I T I O N I N G