User's Manual

Table Of Contents
16-Axis MACRO CPU User Manual
Turbo PMAC2 Software Setup for MACRO Station 13
I19: Clock Source I-Variable Number
I19 determines which MACRO IC in a Turbo PMAC2 system is the source of the phase and servo clocks
for the system. The Turbo PMAC2 defaults ($$$***) to the first MACRO IC found in the UMAC pack.
This variable should be kept as the first MACRO IC.
It contains its I-Variable whose value is set to 0 by default to indicate that it is the source of the phase and
servo clocks. (The equivalent I-Variable for other MACRO ICs should be set to 3 by default to indicate
that these ICs should receive their clock signals as inputs. Note that MACROGATE MACRO ICs that
are used typically for MACRO ICs 1, 2, and 3, have no servo clock – they cannot be used as the servo
clock source, and even if their clock-direction I-Variable is set to 3, it will report back as 1 to indicate
phase-clock input.)
Normally, in Turbo PMAC2 systems interfacing to a MACRO Station, MACRO IC 0 should be the
source of the system servo and phase clock signals. The clock-direction I-Variable for MACRO IC 0 is
I6807, so I19 on these systems should be set to 6807.
Turbo PMAC2 Ultralite: I6800 and I6801
On a Turbo PMAC2 Ultralite (or UMAC Turbo with Acc-5E) controller, the phase clock frequency is
determined by I6800 and I6801. I6800 determines the frequency of the MaxPhase clock, and I6801
determines how the Phase clock frequency is divided down from the MaxPhase clock. I6800 sets the
MaxPhase frequency according to the formula:
MaxPhase Freq. (kHz) = 117,964.8 / [2*I6800+3]
To set I6800 for a desired MaxPhase frequency, the following formula can be used:
I6800 = (117,964.8 / [2*MaxPhase(kHz)]) - 1 (rounded down)
I6801 sets the Phase clock frequency from the MaxPhase according to the formula:
Phase Freq. (kHz) = MaxPhase Freq. (kHz) / [I6801+1]
In MACRO applications, typically I6801 is set to 0, so the Phase clock frequency equals the MaxPhase
clock frequency. In this case, I6800 sets the Phase clock frequency, and therefore the MACRO ring-
update frequency, directly.
UMAC Turbo
In a UMAC Turbo (3U Turbo PMAC2) system, the Phase clock can come from many possible sources,
set by a variety of different variables. However, if a UMAC Turbo system is controlling a MACRO
Station through the ring with an Acc-5E MACRO interface board, the MACRO IC 0 on the Acc-5E
should be the source of the phase clock for the system. To accomplish this, make sure that I19 is set to
6807 to specify MACRO IC 0 as the clock source for the system, with I6800 and I6801 set to specify the
phase clock frequency as in Ultralite PMAC2 boards, explained above. Normally, the Turbo firmware
will select MACRO IC 0 automatically on a UMAC, if present, as the clock source on a $$$*** re-
initialization command. MACRO Ring Rules 1-8 should be observed in this setting.
Notes on Servo Clock
On Turbo PMAC2 controllers, the Servo clock frequency is derived from the Phase clock frequency by an
integer division, so the setting of the MACRO ring update frequency, which is the same as the Phase
clock frequency, determines the possible Servo clock frequencies. The division of the Servo clock
frequency from the Phase clock frequency is determined by:
Turbo PMAC2 Ultralite I6802 (Servo Frequency = Phase Frequency / [I6802+1])
UMAC Turbo with Acc-5E I6802 (Servo Frequency = Phase Frequency / [I6802+1])
Once the servo clock frequency has been established, the Turbo PMAC2 variable I10 must be set
accordingly so trajectories execute at the proper speed. Several MACRO timing variables have units of
servo clock cycles.