Motion synchronous actions
10.4 Actions in synchronized actions
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
10-45
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 Current position of command axis is in window of specified
reference position.
AXIS <axis> Axis identifier of machine-, channel- or geometry axis
REAL Refpos Reference position in Coord coordinate system
REAL Winlimit Amount resulting in limit for position window
INT Coord 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)
Function value
Current setpoint depending on position details in specified coordinates system
Function value TRUE
Function value: FALSE
if Refpos(Coord)
- abs(Winlimit)
≤ Actpos(Coord)
≤ Refpos(Coord) + abs(Winlimit)
otherwise