Program code
N540 _STATUS = CALCPOSI(_START, _DIST, _LIMIT, _MAXDIST,, 6)
N550 _START[0] = 27.
N560 _START[1] = 17.1
N570 _START[2] = 0.
N580 _DIST[0] =-27.
N590 _DIST[1] = 0.
N600 _DIST[2] = 0.
N610 _LIMIT[3] = 2.
N620 _STATUS = CALCPOSI(_START, _DIST, _LIMIT, _MAXDIST,,12)
N630 _START[0] = 0.
N640 _START[1] = 0.
N650 _START[2] = 0.
N660 _DIST[0] = 0.
N670 _DIST[1] = 30.
N680 _DIST[2] = 0.
N690 TRANS X10
N700 AROT Z45
N710 _STATUS = CALCPOSI(_START,_DIST, _LIMIT, _MAXDIST)
; delete frames from N690 and N700 again
N720 TRANS
N730 _START[0] = 0.
N740 _START[1] = 10.
N750 _START[2] = 0.
; vectors_DIST and _MAXDIST define the motion plane
N760 _DIST[0] = 30.
N770 _DIST[1] = 30.
N780 _DIST[2] = 0.
N790 _MAXDIST[0] = 1.
N800 _MAXDIST[1] = 0.
N810 _MAXDIST[2] = 1.
N820 _STATUS = CALCPOSI(_START, _DIST, _LIMIT, _MAXDIST,,17)
N830 M30
Results of CALCPOSI()
N... <status> <MaxDist>[0] ≙ X <MaxDist>[1] ≙ Y Remarks
420 3123 8.040 4.594 N3 is violated.
430 1122 20.000 11.429 No protection zone monitoring,
working area limitation is violated.
440 1121 30.000 17.143 Only software limit monitoring is still active.
510 4213 0.000 0.000 Starting point violates C4
520 0000 0.000 -27.000 Preactivated C4 is not monitored. The
specified distance can be traversed com‐
pletely.
540 2222 0.000 -25.000 Because _LIMIT[1] = 2, the traversing dis‐
tance is restricted by the working area limi‐
tation.
Work preparation
3.6 Protection zones
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 589