Motion synchronous actions
10.4 Actions in synchronized actions
Job planning
596 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
If axis motion is not to be started at the beginning of the block, the override for the axis can
be held at 0 from a synchronized action up to the required starting instant:
Program code Comments
WHENEVER $A_IN[1]==0 DO $AA_OVR[W]=0 G01 X10 Y25 F750 POS[W]=1500 FA=1000
; The positioning axis is held as long as digital
input 1=0.
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 part
program, the alarm 14091 %1 block %2 is triggered, function not permitted, index: %3 with
index 5 called up.
Syntax
BOOL POSRANGE(Axis, Refpos, Winlimit,[Coord])
Significance
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)