RobotStudio event

Indexing Workobject

Hello,
I want to index a procedure which has same movement instructions.
I succeed to index the robtargets by making an array of the 4 constants robtargets that i need, but this methode don't work with workobject (making an array with 4 CONST work objects doesn't work!).
Some help please?
Thanks

Comments

  • Is it something like this you want to do? In a move instruction the workobject must be defined as persistant (PERS) so in the case you have defined the workobject as CONST you need to copy it to a PERS declared workobject variable before using it in a move instruction.

    Per Svensson
    Robotics and Vision Specialist
    Consat Engineering
  • Thank you, it is so helpful 
  • Thank you again.
    By the way have you plz any idea how to make an array of digital outputs or inputs : the purpose here is the indexing of digital inputs and outputs?
    I tryed to use an array of signaldo, but when affecting its argument to an output : " VAR signaldo rob_zone{4}"     rob_zone {1}:= irb_120_RobZ; i get thi error : "System120/RAPID/T_ROB1/Module1(513,8): Type error(55): Assignment target type signaldo is not value or semi-value type. 07/01/2016 15:35:15 General"

  • Hi here is one way you could do it

    Per Svensson
    Robotics and Vision Specialist
    Consat Engineering
  • Thank you so much