
8.6.4
Configuring a Startup Macro
Any macro can be defined as the startup macro. The startup macro runs each time the
E-871.1A1N is switched on or rebooted.
Deleting a macro does not delete its selection as a startup macro.
1. Set a macro as the startup macro:
■
Send the
command to set a macro as startup macro where
"macroname" is the name of the macro.
■
If you want to cancel the selection of the startup macro and do not want to define
another macro as the startup macro, send
MAC DEF
only.
2. Query the name of the currently defined startup macro by sending the
command.
Example Macro: Preparing an Axis for Closed-Loop Operation via a Startup Macro
The STARTCL macro switches the HID control off and the servo mode on for axis 1 and starts
a reference move to the negative physical limit of the travel range. As STARTCL is defined as
the startup macro, axis 1 is ready for closed-loop operation immediately after switch-on.
Send:
MAC BEG startcl
HIN 1 0
SVO 1 1
DEL 1000
FRF 5
MAC END
MAC DEF startcl
When this macro is used, the E-871.1A1N's parameter settings should be adapted to the
connected positioner in the nonvolatile memory. Alternatively, the parameter settings can
also be configured in the volatile memory via the startup macro.
8.6.5
Deleting Macros
A macro cannot be deleted while it is running.
Deleting a macro does not delete its selection as a startup macro.
1. Delete a macro with the
MAC DEL macroname
command where "macroname" is the
name of the macro.
8.6.6
Saving and Loading Macros
For example, making backups of controller macros on the PC can be useful before updating
the firmware.
The use of the
Controller macros
tab in PIMikroMove is recommended for backing up and
loading controller macros.
Saving and loading controller macros with PIMikroMove is described in the following.
Saving Controller Macros on the PC
1. Select the
Controller macros
tab in PIMikroMove's main window.
2. Select the macros in the
Macros on controller
list that you want to back up to the PC:
■
Click the desired entry in the list to select a macro.
■
To select more than one macro, press and hold down the shift key and click the desired
entries in the list.
■
To deselect, click an open area in the list.
8 E-871.1A1N FUNCTIONS
PZ285EN
‒
1/30/2019
97
M O T I O N | P O S I T I O N I N G