
7 Operation
108
Version: 1.2.1
MS249E
C-863.12 Mercury Controller
Loading controller macros from the PC to the C-863.12 with PIMikroMove
1.
Select the
Controller macros
tab in the PIMikroMove main window.
2.
Load macros from the PC to the C-863.12:
a)
Click the
button to open a file selection window.
b)
Select the text files (<macro name>.txt) in the file selection window whose contents
you want to load as a macro from the PC to the C-863.12.
c)
Click
Open
.
For each selected text file (<macro name>.txt), the content is loaded as a macro <macro
name> into the C-863.12.
7.7.5
Macro Example: Synchronization of Two Controllers
INFORMATION
When macros are recorded on the
Controller macros
tab in PIMikroMove, the
MAC BEG
and
MAC END
commands must be left out.
Action
Command
Result
Connect the digital
output line 1 on the
I/O
socket of the master
controller to digital
input line 1 on the
I/O
socket of the slave
controller.
-
Use a suitable cable. Pin
assignment see "I/O" (p.
266).
The digital output signal of the master controller can
be used as the trigger for the motion of the axis
connected to the slave controller.
Set up the motion on
the master controller
and on the slave
controller.
SVO 1 1
FRF 1 1
VEL 1 0
MOV 1 5.5
For both controllers: The servo mode is switched on
and the axis has executed a reference move
–
here to
the reference switch. The velocity is set to zero. The
axis does not move for now as a result, even though
the motion command for the move to absolute
position 5.5 has already been sent.
Record the MASTER
macro on the master
controller.
MAC BEG master
DIO 1 1
VEL 1 100
MAC END
The macro has the following tasks:
▪
Switch the digital output line 1 of the master
controller to high state to trigger the slave
controller
▪
Set velocity to 100 to start the motion
Record the SLAVE
macro on the slave
controller.
MAC BEG slave
WAC DIO? 1 = 1
VEL 1 100
MAC END
The macro has the following tasks:
▪
Set condition: The macro continues only if digital
input line 1 has the high state (i.e., if the master
controller outputs the trigger signal).
▪
Set velocity to 100 to start the motion