Tables
12.4 List of predefined subprograms
Fundamentals
512 Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
Names
Result 1st parameter 2nd parameter 3rd parameter 4th parameter 5th
parameter
6th
parameter
CALCPOSI INT:
Status
0 OK
-1 DLIMIT
neg.
-2 Trans.
n.def.
1 SW limit
2 Working
area
3 Prot. zone
See PGA for
more
REAL:
Starting
position in
WCS
[0] Abscissa
[1] Ordinate
[2] Applicate
REAL:
Increment:
Path definition
[0] Abscissa
[1] Ordinate
[2] Applicate
referred to
starting
position
REAL:
Minimum
clearances of
limits to be
observed
[0] Abscissa
[1] Ordinate
[2] Applicate
[3] Lin.
machine
Axis
[4] Rot. Axis
REAL:
Return value
possible incr.
path if path
from parameter
3 cannot be
fully traversed
without
violating limit
BOOL:
0:
Evaluation
G code
group 13
(inch/metr.)
1:
Reference
to basic
control
system,
independen
t of active
G codes
group 13
bin
encoded
to be
monitored
1 SW limits
2 working
area
4 active
protection
zone
8 preactive
protection
zone
Explanation:
CALCPOSI
CALCPOSI is for checking whether, starting from a defined starting point, the geometry
axes can traverse a defined path without violating the axis limits (software limits), working
area limitations, or protection zones. If the defined path cannot be traversed without
violating limits, the maximum permissible value is returned.
INTERSEC BOOL:
Error status
VAR REAL [11]:
First contour
element
VAR REAL [11]:
Second contour
element
VAR REAL [2]:
Result vector:
Intersection
coordinate,
abscissa and
ordinate
Intersection: Calculation of
intersection
The intersection between two
contour elements is calculated.
The intersection coordinates
are return values. The error
status indicates whether an
intersection was found.
3. Axis functions
Result 1st parameter 2nd parameter Explanation
AXNAME AXIS:
Axis identifier
STRING [ ]:
Input string
AXNAME: Get axis identifier
Converts the input string to an axis identifier. An
alarm is generated if the input string does not
contain a valid axis identifier.
AXTOSPI INT:
Spindle
number
AXIS:
Axis identifier
AXTOSPI: Convert axis to spindle
Converts an axis identifier into a spindle number.
An alarm is set if the transfer parameter does not
contain a valid axis identifier.
SPI AXIS:
Axis identifier
INT:
Spindle number
SPI: Convert spindle to axis
Converts a spindle number to an axis identifier. An
alarm is generated if the passed parameter does
not contain a valid spindle number.