I am looking to externally modify a graphically programmed position, of the type:
CONST robtarget NamePosision: = [[1598.461056774, -1860.729057189,350.083928981], [0,0.000004108,1,0], [- 1,0, -1,0], [ 9E + 09,9E + 09,9E + 09,9E + 09,9E + 09,9E + 09]];
The values 1598, 1860 and 350, are those corresponding to robtarget.pos.x, robtarget.pos.y, and robtarget.pos.z, respectively … Those that I try to modify automatically by means of an arithmetic operation for example, to through RAPID, assigning new variables.
CONST num x: = 1598.461056774;
CONST num y: = -1860.729057189;
CONST num z: = 350.083928981;
VAR robtarget NamePosision: = [[x, y, z], [0,0.000004108,1,0], [- 1,0, -1,0], [9E + 09,9E + 09,9E + 09,9E + 09,9E + 09,9E + 09]];
The CONST variables num x, y, and z, only allow me to assign the data CONSTANT, if I create them of type VAR or PERS for example, it tells me that it must be CONST, but when doing the operation to assign a new value it tells me that it is read only and can not be modified. SIMPLE EXAMPLE: x = x + 1
I hope I have expressed myself correctly. Thank you very much!



