User's Manual

Table Of Contents
16-Axis MACRO CPU User Manual
How to use the 16-Axis MACRO CPU 53
HOW TO USE THE 16-AXIS MACRO CPU
This section shows many useful examples about the setup of some of the hardware and also shows how to
read any memory location at the MACRO CPU for troubleshooting purposes.
Example Setup for 16-Axis System
One concept that is not obvious to the first time user of the 16-Axis MACRO CPU is the node activation
setup for the MACRO IC1 for axes 9-16. MACRO IC0 for Axes 1-8 node activation can be setup with
SW1. Typically, SW1 is set to 7 and this will activate nodes 0, 1, 4, 5, 8, 9, 12, and 13. For the 16-Axis
MACRO CPU, channels 9-16 can be setup only through the MI996 since it is associated with MACRO
IC1. Initially, MI996 for MACRO IC1 can be set up by writing to MS0,MI1996 because node 0 will be
active (based on SW1 set to 7).
For this example, the clock variables, communication variables and the node activation variables will be
set up at both the MACRO CPU and the Master Controller (Turbo Ultralite).
Ultralite Clock Setup Variables
I6800=6527 ;default setup for 9.034 KHz Max Phase
I6801=0 ;Default setup for 9.034 Khz Phase and Ring Cycle
I6802=3 ;default setup for 2.258 KHz Servo Clock
Ultralite Node Activation
i6840=$4030
i6841=$0FF333 ;Master0: Activate nodes 0,1,4,5,8,9,12,13
i6890=$90
i6891=$1fB333 ;Master1: Activate nodes 16,17,20,21,24,25,28,29
i6940=$10
i6941=$2f8000
i6990=$10
i6991=$3f8000
i70=$3333 ;Activate Control/Status Flag Transfer for
i71=$3333 ;nodes 0,1,4,5,8,9,12,13
i72=$3333 ;Activate Control/Status Flag Transfer for
i73=$3333 ;nodes 16,17,20,21,24,25,28,29
i78=32 ;Set Timeout for MacroI/O to 32 servo cycles
i79=32
MACRO CPU Node Activation
Set SW1=7 and SW2=0 ;Activate nodes 0,1,4,5,8,9,12,13 at MACRO CPU
MS0,MI1996=$1FB333 ;Activate nodes 16,17,20,21,24,25,28,29 at MACRO CPU
;Must MSSAVE & MS$$$ before activated
MS0,MI992=6527 ;Default for 9.034 KHz Max Phase (Always set to I6800)
MS0,MI997=0 ;Default- 9.034 Khz Phase and Ring Cycle (Always set to 0)
MS0,MI998=0 ;Default- 9.034 KHz Servo Clock (Always set to 0)
MS0,MI1992=6527 ;Default for 9.034 KHz Max Phase (Always set to I6800)
MS0,MI1997=0 ;Default- 9.034 Khz Phase and Ring Cycle (Always set to 0)
MS0,MI1998=0 ;Default- 9.034 KHz Servo Clock (Always set to 0)
Macro Station Position Capture Setup
The position-capture function latches the current encoder position at the time of an external event into a
special register. It is executed totally in hardware, without the need for software intervention (although it
is set up and later serviced, in software). This means that the only delays in the capture are the hardware
gate delays (negligible in any mechanical system), so this provides an incredibly accurate capture
function.