User's Manual

Table Of Contents
16-Axis MACRO CPU User Manual
60 How to use the 16-Axis MACRO CPU
Example: Read DAC Output from Servo IC Card
Transfer DAC1A, DAC2A, DAC3A, and DAC4A to Ultralite using the MACRO Data Transfer. Assume
that the MACRO Station 0 is enabled and that the data is from Acc-24E2A from channels 1,2,3,4. Since
the ADC data is 16-bit data, the most efficient method of transfer is through the MACRO 16-bit data
registers from nodes 2 and 3.
MACRO Station Setup
MACRO Commands Notes
MS0,MI19=$4
Transfer data once every 4 phase clocks (servo default)
MS0,MI975=$C
Activate first I/O nodes 2 and 3 at Station
MS0,MI20=$F
Transfer MI21, MI22,MI23, and MI24
MS0,MI21=$6D8002DDC0A1
Signed upper 16-bits data from Station address Y:$8002 to X:$C0A1 (node2)
MS0,MI22=$6D800ADCC0A2
Signed upper 16-bits data from Station address Y:$800A to X:$C0A2 (node2)
MS0,MI23=$6D8012DCC0A3
Signed upper 16-bits data from Station address Y:$8012 to X:$C0A3 (node2)
MS0,MI24=$6D801ADCC0A5
Signed upper 16-bits data from Station address Y:$801A to X:$C0A5 (node3)
MSSAVE0
Save these changes to the MACRO Sation
MS$$$0
Reset the MACRO Station for changes to take affect
Ultralite Setup
Ultralite (8 Axis) Turbo Ultralite (8 Axis) Description
I996=$0FB33F I6841=$0FB33F
Enable nodes 0,1,2,3,4,5,8,9,12, & 13 at Ultralite
M980->X:$C0A1,8,16,s M980->X:$78421,8,16,s
DAC1A, 1st 16 bit word node2
M981->X:$C0A2,8,16,s M981->X:$78422,8,16,s
DAC2A, 2nd 16 bit word node 2
M982->X:$C0A3,8,16,s M982->X:$78423,8,16,s
DAC3A, 3rd 16 bit word node 2
M983->X:$C0A5,8,16,s M983->X:$78425,8,16,s
DAC4A, 1st 16 bit word node 3
Now the M-Variables in the PLC or motion programs can be used for data acquisition purposes.
Example: Monitor Up/Down Counter from Servo IC Card
This example shows how to monitor the up/down counter of the Servo IC on the Acc-24E2x family of
cards. Monitoring this data is a method also used to verify the operation of the encoder because it does
not rely on the PMAC to process the encoder data and display in the Position Window of the Pewin Pro
Program.
Transfer Counter1, Counter2, Counter3, and Counter4 to the Ultralite using the MACRO Data Transfer
(Assume MACRO Station 0). Assume Acc-24E2A from channels 1, 2, 3, and 4.
Since the counter data is 24-bit data, the most efficient method of transfer is through the MACRO 24-bit
data registers from nodes 2, 3, 6, 7.
MACRO Station Setup
MACRO Commands Notes
MS0,MI19=$4
Transfer data once every four phase clocks (servo default)
MS0,MI975=$C
Activate first I/O nodes 2 and 3 at Station
MS0,MI20=$F
Transfer MI21, MI22,MI23, and MI24
MS0,MI21=$E98001E9C0A0
Signed upper 24-bits data from Station address X:$8001 to X:$C0A0 (node2)
MS0,MI21=$E98009E9C0A4
Signed upper 24-bits data from Station address X:$8009 to X:$C0A4 (node3)
MS0,MI22=$E98011E9C0A8
Signed upper 24-bits data from Station address X:$8011 to X:$C0A8 (node6)
MS0,MI23=$E98019E9C0AC
Signed upper 24-bits data from Station address X:$8019 to X:$C0AC (node7)
MSSAVE0
Save these changes to the MACRO Sation
MS$$$0
Reset the MACRO Station for changes to take affect