User's Manual

Table Of Contents
16-Axis MACRO CPU User Manual
How to use the 16-Axis MACRO CPU 59
The Ring Order Method
The Ring Order Method has been developed to allow MACRO Devices to be set up with software. Since
the MACRO CPU has hardware switches (SW1 and SW2) to activate nodes and assign it to a master, the
ring order method is not necessary. However, if the MACRO CPU is used with other MACRO devices
like the Geo MACRO Drives or MACRO Peripheral Devices (Acc-65M, Acc-24E2M, etc.), then it is
necessary to know how the Ring Order Method is works.
To initiate the Ring Order Method, start with the new hardware and then enable the MACRO ASCII
Communication Mode by typing MACSTA255 in the terminal window. At this point, the Software
Interface will seek the first device that has not been setup (i.e. MI11=0). Once communicating with the
device, activate the nodes with MI996 and set up any critical MI-variables that need to be set for the
application. Upon completion of these MI-variable settings, assign a Station Number to the device with
the STN=n command where n can be set from 1 to 254. As soon a station number is assigned to the
device, the system will look for the next device that has not been set up (MI11=0). If assigning a
MACRO device as Station Number 20, type STA=20 in the terminal window and MI11 will be set to 20.
Using MM-Variables to Verify MACRO Station Memory Locations
The MACRO M-Variables MM0 through MM511 can be used to look at any MACRO Station memory
location. This can be useful especially when trying to test the hardware at the MACRO CPU that does
not have MI-Variables associated with it. The MM-variables can be used in a similar fashion to the
traditional PMAC M-variables. The major difference between the MACRO M-Variables and the PMAC
M-variables is that the MM-Variable definitions are downloaded while in the MACRO ASCII
communications mode.
The best method of setting up MM-variables is to open a text file and create the definitions. Next, save
the file for future use or modifications. To download the definitions to the MACRO CPU, set
Communications mode to MACRO ASCII and then download the file.
Example: Read Using MM-Variables – Actual Encoder Read from Gate Array
Read the actual encoder up/down counters from the gate array on the Acc-24E2A for channel 1, 2, 3, and
4. This data is found on bits 0-23 of X register of the following locations.
Chan # 1 2 3 4 5 6 7 8
Hex
[$8001] [$8009] [$8011] [$8019] [$8041] [$8049] [$8051] [$8059]
File Definitions:
MM81->X:$8001,0,24,s ;Counter Register for Channel 1
MM82->X:$8009,0,24,s ;Counter Register for Channel 2
MM83->X:$8011,0,24,s ;Counter Register for Channel 3
MM84->X:$8019,0,24,s ;Counter Register for Channel 4
After downloading the definitions to the MACRO CPU, access the data using standard MS commands.
For example:
MS0,MM81 ;will return the value to the Terminal window
MSR0,MM81,P81 ;will copy the value into P81 (this can be used also
;in Programs in the Utralite)
Data Transfer Examples (MI20-MI68)
The general purpose data transfer (MI20 through MI68) variables for MACRO allow the transfer of data
to or from any location at the MACRO Station from or to the MACRO IO node registers. Details of the
setup can be found in the 16-Axis MACRO CPU Software Reference Manual.
This section shows examples of how to set up the transfers for the following:
Read Actual DAC output from Servo IC register
Read Servo IC Up/Down Counter Position
Write to the DACnB output on Acc-24E2A