Siemens SINUMERIK 828D Function Manual page 55

Synchronized actions
Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Example
Synchronized actions for counting smoothing blocks.
The query of the system variable $AC_TIMEC == 0 (interpolation cycles since start of the
block) ensures that the block type is determined only once at the start of the block.
Program code
$AC_MARKER[0]=0
$AC_MARKER[1]=0
$AC_MARKER[2]=0
...
; Synchronized action for counting all smoothing blocks
ID=1 WHENEVER ($AC_TIMEC==0) AND ($AC_BLOCKTYPE==5) DO
$AC_MARKER[0] = $AC_MARKER[0] + 1
...
; Synchronized action for counting the G641 smoothing blocks
ID=2 WHENEVER ($AC_TIMEC==0) AND ($AC_BLOCKTYPEINFO==5001) DO
$AC_MARKER[1] = $AC_MARKER[1]+1
...
; Synchronized action for counting the G642 smoothing blocks
ID=3 WHENEVER ($AC_TIMEC==0) AND ($AC_BLOCKTYPEINFO==5002) DO
$AC_MARKER[2] = $AC_MARKER[2] + 1
...
Synchronized actions
Function Manual, 07/2012, 6FC5397-5BP40-3BA0
2.3 System variables for synchronized actions
Comment
;
Counter for all smoothing blocks
;
Counter for G641 smoothing blocks
;
Counter for G642 smoothing blocks
Detailed description
55

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d slSinumerik 840de sl

Table of Contents