
8 GCS Commands
C-863.12 Mercury Controller
MS249E
Version: 1.2.1
139
Send:
CTO 1 1 0.00005
Example 2:
In this example, digital output line 1 is to be set from low
to high when axis A starts to move. The following
parameters must be set:
TrigOutID = 1
Axis = A (axis identifier was changed with
SAI
)
TriggerMode = 6
Polarity = Active High
So you have to send:
CTO 1 2 A
CTO 1 3 6
CTO 1 7 1
Example 3:
L-509.1xxxxx (travel range: 26 mm) is connected to axis 1.
The reference position of the L-509.1xxxxx is 13 mm.
Starting from its reference position, the axis is to be moved
alternating forwards and backwards; trigger pulses are to
be output with the POffset trigger mode for both
directions of motion in a range of 1 mm. For that purpose,
two macros are written to the controller. Macro TRIGREF
initializes the controller and could also be defined as
startup macro, while macro TRIGGER starts motion and
therefore trigger output. Write the macros as shown
below. Further details about macros see "Working with
Macros" (p. 99).
Make sure that the velocity for the axis matches the CTO
setting for the distance. Recommended value:
maximum velocity = distance * 20 kHz / 2
where 20 kHz is the frequency of the C-863.12 servo cycle.
A trigger signal frequency of 1 kHz results at a velocity of
20 mm/s.
➢
Record a macro named TRIGREF with the following
contents:
CTO 1 3 7
SVO 1 1
FRF
TRO 1 1
MAC START TRIGGER
➢
Record a macro named TRIGGER with the following
contents:
CTO 1 1 0.02
CTO 1 9 15