RobotStudio event

'pos' not recognized as PERS in Robot Studio??

I have a program module that loads and runs completely fine on our S4C+ controller  ... in Robot studio, it does not recognize the line 

"  PERS pos Dp1la1:=[669.8,1056.1,878.74];"

Gives error

"pos not type name"


can a pos no longer be a PERS ? 

Comments

  • It works on my computer.

    maybe you have declared it inside a proc?
  • Double checked, it's just in a module

    MODULE GSSC1_sr_c
      !
      PERS pos Dp2la1:=[-160.16,1053.77,877.16];
      PERS pos Dp2la2:=[-540.99,1052.48,877.92];
      PERS pos Dp2la3:=[-306.25,1036.84,733.03];
      PERS pos Dp2la4:=[-382.76,1036.41,733.56];
      PERS pos Dp2la5:=[-458.29,1036.35,732.96];
      PERS pos Dp2la6:=[-534.25,1036.07,733.66];
      PERS pos Dp2la7:=[-611.39,1036.22,732.54];