Accessory 42PCI
PMAC2 Parameter Setup 5
PMAC2 PARAMETER SETUP
Several parameters have to be set up for proper operation of the MACRO ring. In addition, because the
MACRO interface uses different registers than the local analog or digital interfaces the address I-variables
and conversion table entries for servo and commutation setup will contain different values for MACRO.
Note:
This section presumes that the PMAC2 PC has a full version 1.16 firmware or
newer, dated July 1996 or later. Use the VERSION and DATE commands to
determine whether the firmware in the system is proper.
Ring Configuration: I995, I996, I1000, I1001
I995 controls PMAC2’s role on the MACRO ring. In most applications, PMAC2 will be a master
commanding slave amplifiers and I/O stations across the ring. These will be the only cases covered here;
for other cases, refer to the detailed description of I995 in the Software Reference.
Each MACRO ring must have one and only one synchronizing master on the ring. If this PMAC2 is to be
the synchronizing master, set I995 to $30. If this PMAC2 is a master on the ring, but not the
synchronizing master, set I995 to $10 or, preferably, $90. A setting of $90 permits this PMAC2’s phase
cycle to stay synchronized to the synchronizing master, by resetting an internal counter on receipt of a
packet specified in I996.
I996 controls the address configuration of the PMAC2 on the ring. It is a 24-bit value, and should be
thought of as six hexadecimal digits each representing four bits. The first hex digit specifies PMAC2’s
master number on the ring with a range of $0 to $F (0 to 15). Unless this PMAC2 is a secondary master
on a multi-master ring, this should be Master #0.
The second hex digit specifies which packet will cause a sync lock when received by this PMAC2. The
sync lock performs two important functions. On MACRO stations other than the synchronizing master, it
forces synchronization of the phase clock. On all MACRO stations, it can be used to verify ring integrity
on PMAC2; I1001 is used for this. Generally, this digit, which specifies the slave number of the packet
that will cause the sync lock, is set to the number of the highest activated node for this PMAC2. This
means that the response from the last node will cause the sync lock. For example, if nodes 0 to 3 are
active on this PMAC2, this digit should be set to 3.
The 16 bits of the third through sixth hex digits specify which nodes of 0 to 15 are active. . On a PMAC2
that is a master on the ring, each ring cycle, a data packet is sent out for every active node. Setting bit n
to 1 activates node n; setting bit n to 0 deactivates node n. In the hexadecimal representation, four bits are
grouped together to form one hex digit; bits 0 to 3 represent the last hex digit. If only nodes 0 and 1 are to
be active, bits 0 and 1 are set to 1; bits 2 to 15 are set to 0, and the last four hex digits are set to $0003.
I1000 controls which nodes have their auxiliary read/write functions enabled. Setting bit n of I1000 to 1
enables the auxiliary functions for node n; setting bit n to 0 disables these functions for node n. Generally
every active node will have its auxiliary functions enabled, so I1000 is equal to the last four digits of
I996. It requires that the auxiliary functions be enabled to use the nodes for servo flags.
I1001 permits automatic checking for ring failure. If set greater than 0, PMAC2 must receive 2 sync lock
packets (as defined by I996) in I1001 servo cycles, or it will report a ring failure and disable all servo and
I/O outputs on the ring. Generally, values of I1001 between 10 and 20 are used.
Examples: The PMAC2 is the synchronizing master, and master #0 with nodes 0 to 7 active. I995
should be set to $30, I996 should be set to $0700FF, and I1000 should be set to $00FF.
The PMAC2 is a master, but not synchronizing master, master #1 with nodes 0, 1, 4, 5, 8, and 9 active.
I995 should be set to $90; I996 should be set to $190333; and I1000 should be set to $0333.