EasyManua.ls Logo

PI MS249E - Page 108

PI MS249E
279 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Operation
102 Version: 1.2.1 MS249E C-863.12 Mercury Controller
WAC ONT? 1 = 1
MAC END
MAC BEG macro3
MAC START macro1
MAC START macro2
MAC END
Example: Recording macro for controller whose address is different from 1
INFORMATION
When macros are recorded on the Controller macros tab in PIMikroMove, the MAC BEG and
MAC END commands must be left out.
The controller address is set to 2 via the DIP switches. In this example, macro recording is done
using PITerminal, whereby communication was established with the Connect… button (as a
result, the target address has to be typed in in every command line).
The servo mode is to be switched on for axis 1 via the ref macro and a reference move to the
reference switch is to be started.
1. Record the macro by sending:
2 MAC BEG ref
2 SVO 1 1
2 DEL 1000
2 FRF 1
2 MAC END
2. Check the content of the ref macro by sending:
2 MAC? ref
The response reads:
0 2 SVO 1 1
DEL 1000
FRF 1
The first line of the response contains the target and sender address corresponding to
the GCS syntax for multiline responses. However, the target address is not included in
the macro.

Table of Contents

Related product manuals