SIXpack 2 – Manual (V1.10 / January 29
th
, 2010)
16
SIXpack II
adress
Command
$23
motor
number
variable
position
not assigned for
this command
Button to send
datagrams
Figure 5.6: Command frames of “SQPack”
5.4.6
Macro functions of SQPack
At the tab “Connection” the software provides the function “Macro Processor Window” to store command
sequences to a file. This file can be opened by an ASCII-Editor and the command sequence is formatted as
follows:
SendToPack ( adr, cmd, p0, p1, p2, p3, p4, p5, p6 )
“SendToPack” stands for the function which sends nine bytes to the SIXpack 2 via the serial interface. The
parameters are hexadecimal.
A Macro is generated by clicking the button “Record Macro” on the tab “Macro Processing Window“. A dialog box is
opened to name the file in which the macro is saved. Afterwards any commands can be saved to the file until the
recording is ended by clicking “EndRecording”.
CAUTION: Some commands are excepted at stopped motor only. According to this refer to the command
description.
stop macro
execution
open and
execute
stored macro
record
macro
export
macro as
source code
Figure 5.7: Macro function of SQPack
5.5
Operation with reference/ending points
Most applications with stepper motors need a reference point to acquire the actual position of the motor. The
reference point of each axis is detected by the SIXpack 2 with a reference search. The positions scaling determined
by type of the application. It is a
linear axis
if the motor moves a mechanic with defined end and start point.
Every point on the axis is assigned to a position between start and end point.
If there is no end or start point it is a
rotating axis
. The position values for the axis are defined for one rotation.
The value starts at zero again after full revolution.