# Backup array of robtarget robotstudio

**URL:** <https://tech-community.robotics.abb.com/t/backup-array-of-robtarget-robotstudio/8319>\
**Category:** RobotStudio\
**Created:** [June 20, 2018, 8:35am UTC](https://tech-community.robotics.abb.com/t/backup-array-of-robtarget-robotstudio/8319 "2018-06-20T08:35:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naturlight](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/naturlight/32/1858_2.png) [@Naturlight](https://tech-community.robotics.abb.com/u/Naturlight)\
**Post date:** [June 20, 2018, 8:35am UTC](https://tech-community.robotics.abb.com/t/backup-array-of-robtarget-robotstudio/8319/1 "2018-06-20T08:35:39Z")

</div>

Dear all,  
I need to create an array of robtarget (i would like to generate it)

```auto
MODULE Module1

    ! ***********************************************************
    PERS robtarget myRobtarget:=[[100,200,300],[1,0,0,0],[0,0,0,0],[9E9,9E9,9E9,9E9,9E9,9E9]];
    PERS robtarget myRobtarget2{100};
    
    
    ! ***********************************************************
    !
    ! Procédure principale
    !
    ! Ceci est le point d'entrée de votre programme
    !
    ! ***********************************************************
    PROC main()
        FOR i FROM 1 TO 100 DO
            myRobtarget2{i}:=myRobtarget;
        ENDFOR
    ENDPROC
ENDMODULE

```

I just load it in an empty station, apply the code and then when i go to the flexpendant i could see in data =\> robtarget =\> my array of 100 values.  
The problem is  
WHEN I DO the backup, i cannot found the declaration of the array with all values

WHY ?

Thanks for answer

---

<div class="post-metadata">

**Author:** ![DenisFR](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DenisFR](https://tech-community.robotics.abb.com/u/DenisFR)\
**Post date:** [June 20, 2018, 9:44am UTC](https://tech-community.robotics.abb.com/t/backup-array-of-robtarget-robotstudio/8319/2 "2018-06-20T09:44:47Z")

</div>

Hello,  
You have to declare them before:

```auto
PERS robtarget myRobtarget2{100}:=[[[100,200,300],[1,0,0,0],[0,0,0,0],[9E9,9E9,9E9,9E9,9E9,9E9]]
                                  ,[[100,200,300],[1,0,0,0],[0,0,0,0],[9E9,9E9,9E9,9E9,9E9,9E9]]
                                  ,[[100,200,300],[1,0,0,0],[0,0,0,0],[9E9,9E9,9E9,9E9,9E9,9E9]]
                                  ...
                                  ,[[100,200,300],[1,0,0,0],[0,0,0,0],[9E9,9E9,9E9,9E9,9E9,9E9]]
                                  ];

```

---

<div class="post-metadata">

**Author:** ![Naturlight](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/naturlight/32/1858_2.png) [@Naturlight](https://tech-community.robotics.abb.com/u/Naturlight)\
**Post date:** [June 20, 2018, 9:51am UTC](https://tech-community.robotics.abb.com/t/backup-array-of-robtarget-robotstudio/8319/3 "2018-06-20T09:51:22Z")

</div>

The goal is to be able to decalre array of 2500 values, i would like to avoid to copy it by hands 🙂

---

<div class="post-metadata">

**Author:** ![graemepaulin](https://avatars.discourse-cdn.com/v4/letter/g/258eb7/32.png) [@graemepaulin](https://tech-community.robotics.abb.com/u/graemepaulin)\
**Post date:** [June 20, 2018, 10:10am UTC](https://tech-community.robotics.abb.com/t/backup-array-of-robtarget-robotstudio/8319/4 "2018-06-20T10:10:40Z")

</div>

If you use the FlexPendant (or virtual FlexPendant if a virtual controller), to declare the array it will preload blank robtargets for you.

But here is a limit to the size of the array you can declare via the pendant (can not remember the limit and it is not mentioned in the manuals) - but you can make bigger arrays via RobotStudio.

To preload the targets I copied (in RobotStudio) the maximum that I could declare via the pendant and pasted it (to double the number), then copied the resultant (doubled array) and pasted - you get a very big array quickly this way.
