User's Manual

Table Of Contents
16-Axis MACRO CPU User Manual
62 How to use the 16-Axis MACRO CPU
Example: Read Using MI198 and MI199 – Direct Hall Effect Read
Read the T, U, V, W inputs directly at the gate array on the Acc-24E2 for channel 1. This data is found
on bits 20-23 of X:$8000 at the MACRO Station.
MS0,MI198=$E88000 ;read X:$8000,0,24
MS0,MI199 ;Request Data
$000000AFDB87 ;TUVW = $A (1010 binary) from bits 20-23
To write this data to a PMAC variable (P,M,or Q), use an MSRn,MI199,{pmac variable} on-line or buffer
command.
MSR0,MI199,P1000 ;writes the value of X:$C000,0,24 to P1000
Then use P1000 to query the TUVW signals from the MACRO Station.
Example: Read Using MI198 and MI199 – Actual DAC Read
Read the actual DAC Outputs from the gate array on the Acc-24E2A for channel 1. This data is found on
bits 8-23 of Y:$8002 at the MACRO Station.
Chan # 1 2 3 4 5 6 7 8
Hex
[$8002] [$800A] [$8012] [$801A] [$8042] [$804A] [$8052] [$805A]
MS0,MI198=$6D8002 ;read Y:$8002,8,16,s
MS0,MI199 ;Request Data
$0000000C35 ;DAC out equals 3125 DAC bits (1V)
Hardware Re-initialization of MACRO CPU
MACRO hardware re-initialization to factory defaults is enabled when the SW1 setting is set to 15 or F
(hexadecimal) and the power is cycled at the MACRO Station. The only time this should be used with
the MACRO Station would be if the MACRO Station always powers up with a watchdog (typically if the
ring clock at the Ultralite is different than the ring clock at the MACRO Station). Node 11 will be the
only MACRO Station node enabled. Therefore, enable node 11 of the MACRO IC at the Ultralite to
communicate to the MACRO Station.
Turbo Ultralite Example: Servo nodes 0,1,4,5 enabled at Ultralite (I6841=$0F8033)
1. Enable node 11, I996=$0F8833.
2. Re-establish communications with MS11,(MIvar) commands.
3. Issue MS$$$***11 to ensure re-initialization.
4. Issue MSSAVE11 command to save the factory defaults to the station.
Firmware Updates
Downloading new firmware to the MACRO Station is a simple process once the MACRO board is set up
properly. To download new firmware to the MACRO station, obtain the following items:
Two jumpers
DB9 Male Serial Port
MACRO Firmware Download Software (MacroFWDown.exe)
New firmware file (MiniMac2.bin)
To download the software to the MACRO station:
1. Copy the firmware into a directory (C:\Macro\Firmware).
2. Pull the MACRO CPU out of the 3U rack and then jumper the E2 (1-2) and E1 (1-2).
3. Plug MACRO CPU into a 3U rack.
4. Place the serial cable to the J4 serial connection on the MACRO-station and place the other end to the
COM port on the PC.
5. Power up the 3U rack and then launch MacroFWDown.exe. Choose the com port and select 16-Axis
Macro and then press the Download FW button.