I'm struggling with the software limit error. In the codes the positions are associated with variables changing with a loop rather than set to explicit values:
PTS[1]={X 0,Y 0,Z 0, A -45,B 0,C -180, S 'B010', T 'B100010'}
PTS[2]={X 170,Y 0,Z 0, A 45,B 0,C -180,S 'B110', T 'B010010'}
FOR HI=1 TO 6
PTS[1].Z=(HI-1)*10
PTS[2].Z=(HI-1)*10
FOR HJ=1 TO 2
PTP PTS[HJ]
ENDFOR
ENDFOR
It goes well at the beginning, but it stops at certain position because of “software limit”( -A1 out of range). The solution is to choose the right S T bits at certain position. While, is it possible to detect the software limit error in advance, and then to enumerate the S T bits until no error will occur. The codes might look like:
WHILE (software limit error occurs if PTP PTS[2])
try other S T bit.
ENDWHILE
Is it possible to detect software limit error like this? Or is there other ways going around this problem?