jchan Posted October 15, 2019 Share Posted October 15, 2019 I have a setup with two Power PMACs. Both PMACs have an acc5e3 with two DspGate3 chips each. I want to configure the PMACs so that we have one master that communicates via the acc5e3 to the other acc5e3 on the second slave PMAC to control the various other cards on the slave PMAC. However, I am having issues setting up this communication, specifically with the slave PMAC. Any help on getting the configuration working would be great. I have configured the master, and it seems happy with no errors in the System Setup. Below are the configuration I have used with it (it does use address 10 and 11): Sys.WpKey=$AAAAAAAA; Acc5E3[10].MacroModeA=$403000; Acc5E3[10].MacroModeB=$1000; Acc5E3[11].MacroModeA=$1000; Acc5E3[11].MacroModeB=$1000; Acc5E3[10].MacroEnableA=$0fc00100 Acc5E3[10].MacroEnableB=$0 Acc5E3[11].MacroEnableA=$0 Acc5E3[11].MacroEnableB=$0 Sys.WpKey=$0; With the slave, I get errors that say the macro ring has been detected but the slave acc5e3 aren't connected to the slave. Below is the configuration of the slave (it does use address 10 and 11): Sys.WpKey=$AAAAAAAA; Acc5E3[10].MacroModeA=$1000; Acc5E3[10].MacroModeB=$1000; Acc5E3[11].MacroModeA=$1000; Acc5E3[11].MacroModeB=$1000; Acc5E3[10].MacroEnableA=$0fc00100 Acc5E3[10].MacroEnableB=$0 Acc5E3[11].MacroEnableA=$0 Acc5E3[11].MacroEnableB=$0 Sys.WpKey=$0; Many thanks, J Link to comment Share on other sites More sharing options...
steve.milici Posted October 15, 2019 Share Posted October 15, 2019 You must also setup the slave PMAC’s “Motor[x].MotorMode” and “Motor[x].pMotorNode” (and a few other structures associated with MACRO network slaving). This is described in the “Power PMAC User’s Manual” in the section “Setting Up the MACRO Ring” (sub section, “Setting Up a Motor as a Network Slave”) starting on page 104 (105 electronic). Link to comment Share on other sites More sharing options...
jchan Posted October 24, 2019 Author Share Posted October 24, 2019 Thanks Steve for the advice. I have done just that and it is working. I guess the warnings/alarms on the System Setup window on the IDE was not so important. Just for future reference, the final working configuration was as follows: Master PMAC: //MACRO Communication Setup Sys.WpKey=$AAAAAAAA Acc5E3[10].MacroEnableA=$fc0ff00 Acc5E3[10].MacroModeA=$403000 Acc5E3[10].MacroEnableB=$1f800000 Acc5E3[10].MacroModeB=$5000 Acc5E3[10].PhaseFreq=8000 Acc5E3[11].MacroModeA=$4000 Acc5E3[11].MacroModeB=$5000 Acc5E3[11].PhaseFreq=8000 Sys.WpKey=$0 //Motor 1 Motor[1].ServoCtrl=1 Motor[1].pDac=Gate3[10].MacroOutA[0][0].a Motor[1].pAmpEnable=Gate3[10].MacroOutA[0][3].a Motor[1].AmpEnableBit=22 Motor[1].pAmpFault=Gate3[10].MacroInA[0][3].a Motor[1].AmpFaultBit=23 Motor[1].AmpFaultLevel=1 Motor[1].pLimits=Gate3[10].MacroInA[0][3].a Motor[1].LimitBits=25 Motor[1].pCaptFlag=Gate3[10].MacroInA[0][3].a Motor[1].CaptFlagBit=19 Motor[1].CaptureMode=1 Motor[1].pEnc=EncTable[29].a Motor[1].pEnc2=EncTable[29].a Slave PMAC: //MACRO Communication Setup Sys.WpKey=$AAAAAAAA Gate3[10].MacroEnableA=$0fc0ff00 Gate3[10].MacroModeA=$408000 Gate3[11].MacroEnableB=$1f800000 Gate3[11].MacroModeB=$001000 Gate3[10].PhaseFreq=8000 Gate3[10].ServoClockDiv=3 Sys.PhaseOverServoPeriod=0.25 Sys.ServoPeriod=0.5 Macro.TestPeriod=10/Sys.ServoPeriod; Macro.TestMaxErrors=Macro.TestPeriod/10; Macro.TestReqdSynchs=Macro.TestPeriod - Macro.TestMaxErrors; Sys.WpKey=0; //Make motor 1 a slave Motor[1].pMotorNode = Gate3[10].MacroInA[0][0].a Motor[1].MotorNodeOffset= 64 Motor[1].MotorMode=3 Link to comment Share on other sites More sharing options...
Recommended Posts