The line
PR[1]=LPOS ;
gives me an INTP-311 "Uninitialized data is used" fault.
(PR[1] is initialized, and it wouldn't be the source of the error in this case, anyway.)
I believe LPOS is considered "uninitialized" in this case due to this robot having an extended axis added as an integrated (rail) 7th axis in Group 1.
Internally, I think the 7th axis is sometimes seen as empty data, and results in an issue like this. Prior to adding the 7th axis, this was not a problem on this robot.
I also had the same problem when running:
PR[1]=UFRAME[1]
PR[1] would start initialized, and then become uninitialized after running this code, because while XYZWPR all had the correct data in them, the 7th axis went undefined (***) AFTER running the above line of code.
A subsequent UFRAME[2]=PR[1] ; would fail due to PR[1] being considered to be uninitialized immediately after running PR[1]=UFRAME[1].
Stabbing '0' into the 7th axis of PR[1] would fix it, and then I could use it to copy UF[1] data to UF[2], for example with "UFRAME[2]=PR[1] ;"
Anyone know if there is something to tweak to get LPOS to work in this situation?
Thanks,