Motion synchronous actions
10.4 Actions in synchronized actions
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
615
Further information
Multiple selection
If the function is called once more due to incorrect programming after activating
(
FXS[axis] = 1)) the following alarm is output:
Alarm 20092 "Travel to fixed stop is still active"
Programming, that either interrogates $AA_FXS[ ] or a dedicated bit memory (here R1) in the
condition, avoids activating the function "Part program fragment" a multiple number of times:
Program code
N10 R1=0
N20 IDS=1 WHENEVER ($R1==0 AND
$AA_IW[AX3] > 7) DO R1=1 FXST[AX1]=12
Block-related synchronized actions
By programming a block-related synchronized action, travel to fixed stop can be connected
during an approach motion.
Example:
Program code Comments
N10 G0 G90 X0 Y0
N20 WHEN $AA_IW[X] > 17 DO FXS[X]=1 ; FXS is activated if X reaches a
position greater than 17 mm.
N30 G1 F200 X100 Y110
Static and block-related synchronized actions
In static and block-related synchronized actions, the same commands
FXS, FXST and FXSW can
be used as in a normal part program execution. The values assigned can be resulted from a
calculation.
10.4.28 Determining the path tangent in synchronized actions
Function
The system variable $AC_TANEB (Tangent ANgle at End of Block), which can be read in
synchronized actions, calculates the angle between the path tangent at the end of the
current block and the path tangent at the start of the programmed following block.
Parameters
The tangent angle is always output positive in the range 0.0 to 180.0 degrees. If there is no
following block in the main run, the angle -180.0 degrees is output.
The system variable
$AC_TANEB should not be read for blocks generated by the system
(intermediate blocks). The system variable
$AC_BLOCKTYPE is used to tell whether it is a
programmed block (main block).
Example
ID=2 EVERY $AC_BLOCKTYPE==0 DO $SR1 = $AC_TANEB