Position In Specified Reference Range (Posrange) - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

10.4.13

Position in specified reference range (POSRANGE)

Function
The POSRANGE( ) function can be used to determine whether the current interpolated
setpoint position of an axis is in a window around a specified reference position. The position
specifications can refer to coordinates systems which can be specified.
The module offset is taken into account when interrogating the actual axis position of a
module axis.
Note
The function can only be called up from the synchronized action. If called up from the parts
program, the alarm 14091 %1 block %2 is triggered, function not permitted, index: %3 with
index 5 called up.
Programming
BOOL POSRANGE(Axis, Refpos, Winlimit,[Coord])
Parameter:
BOOL POSRANGE
AXIS <axis>
REAL Refpos
REAL Winlimit
INT Coord
Function value
Current setpoint depending on position details in specified coordinates system
Function value TRUE
Function value: FALSE
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Current position of command axis is in window of specified
reference position.
Axis identifier of machine-, channel- or geometry axis
Reference position in Coord coordinate system
Amount resulting in limit for position window
MCS is active (option). The following are possible:
0 for MCS (machine coordinates system)
1 for BCS (basic coordinates system)
2 for SZS (settable zero system)
3 for WCS (workpiece coordinate system)
if Refpos(Coord)
- abs(Winlimit)
≤ Actpos(Coord)
≤ Refpos(Coord) + abs(Winlimit)
otherwise
Motion synchronous actions
10.4 Actions in synchronized actions
10-45

Advertisement

Table of Contents
loading

Table of Contents