I get this exeption when trying to sync to station. and found out the problem.
exeption*******************
RobotStudio .NET exception: Another RAPID symbol with the name ‘T_EmneGriber’ already exists
Base exception: ArgumentException
Another RAPID symbol with the name ‘T_EmneGriber’ already exists
at RobotStudio.API.Internal.TaskHelper.CheckRapidNameInScope(RsTask task, String moduleName, Boolean local, String declarationName)
at ABB.Robotics.RobotStudio.Stations.RsDataDeclarationCollection.Add(RsDataDeclaration dataDeclaration)
at RobotStudio.Services.RapidSerializerRS.LgRasRsDataSeries.InsertSentence(LgRasSentence newSentence)
at RobotStudio.Services.RapidSync.LgRasEngine.ReplaceSentences(ILgRasSeries targetSeries, LgRasSentenceCollection targetSentences, LgRasSentenceCollection masterSentences, Int32 tar2mas)
at RobotStudio.Services.RapidSync.LgRasEngine.SyncData(ILgRasDataSeries targetSeries, ILgRasDataSeries masterSeries)
at RobotStudio.Services.RapidSync.LgRasEngine.SyncRoutine(LgRasRoutineClauseId routine, Boolean cmIsMaster, LgRasLogMessageCollection logMessages, ProgressNotification progressDelegate, Double progressStart, Double progressEnd)
at ABB.Robotics.RobotStudio.Stations.RsTask.SyncPathProcedure(String pathProcedureId, SyncDirection direction, ArrayList logMessageList, ProgressNotification progressDelegate, Double progressStart, Double progressEnd)
at ABBInternal.Controller.SynchHelper.DoSynch(ExtendedListView tree, ArrayList syncLogMessageList)
****************** exeption end ***********************************’
I have found out that if i have a TASK PERS tool in my station and i have changed it in my rapid code to be a PERS i get this exeption.
After change the tooldata in my station to be only a PERS i can sync my rutine to station with out exeption.