3.6.3 Checking for protection zone violation, working area limitation and software limit
switches (CALCPOSI)
Function
In the workpiece coordinate system (WCS), the CALCPOSI function checks whether, starting
from the starting position, the geometry axes can be traversed a specified distance without
violating active limits. For the case that the distance cannot be fully traversed because of limits,
a positive, decimal-coded status value and the maximum possible traversing distance are
returned.
Definition
INT CALCPOSI(VAR REAL[3] <Start>, VAR REAL[3] <Dist>, VAR REAL[5]
<Limit>, VAR REAL[3] <MaxDist>, BOOL <MeasSys>, INT <TestLim>)
Syntax
<Status> = CALCPOSI(VAR <Start>, VAR <Dist>, VAR <Limit>, VAR
<MaxDist>, <MeasSys>, <TestLim>)
Meaning
CALCPOSI(...): Predefined function for testing limit violations regarding the geometry axes
Preprocessing
stop:
No
Alone in the block: Yes
Work preparation
3.6 Protection zones
NC programming
582 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0