Siemens SINUMERIK 828D Function Manual page 456

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

Advertisement

H2: Auxiliary function outputs to PLC
8.13 Block-search response
Program code
N0790 AUXFUDELG(6)
N0800
N0810 IF ISFILE(FILENAME)
N0830
DELETE(ERROR,FILENAME)
N0840
IF (ERROR<>0)
N0850
SETAL(61000+ERROR)
N0860
ENDIF
N0870 ENDIF
N0880
; CAUTION!
; If, for a multi-channel block search, auxiliary functions with AUXFUDEL/AUXFUDELG
; are deleted from the global list of auxiliary functions, before the loop to
; generate the subprogram FILENAME with AUXFUSYNC, the channels must be synchronized.
The synchronization ensures that all delete requests were processed
; in all channels and a consistent list is available.
; Example: WAITM(99,1,2,3)
N0890 LOOP
N0920
AUXFUSYNC(NUM,GROUPINDEX,ASSEMBLED)
N0930
N0940
IF (NUM==-1)
N0960
GOTOF LABEL1
N0970
ENDIF
N0980
N1000
IF (NUM>0)
N1010
N1020
ASSEMBLED=""
N1030
N1050
FOR LAUF=0 TO NUM-1
N1060
N1080
IF GROUPINDEX[LAUF]<>0
N1090
N1100
ISQUICK=$AC_AUXFU_SPEC[GROUPINDEX[LAUF]] BAND'H2'
N1110
N1120
ISSYNACT=$AC_AUXFU_SPEC[GROUPINDEX[LAUF]] BAND'H1000'
456
Comment
;
Delete the collected auxiliary function of the
;
6. group.
;
File already exists and must be
;
deleted.
;
Procedure to generate
;
auxiliary function blocks from the global
;
auxiliary function list.
;
All auxiliary functions of the channel
;
are processed.
;
If auxiliary functions are output,
;
the block is generated.
;
Collected auxiliary functions for a
;
block.
;
Auxiliary functions deleted from the
;
global list have the group index 0.
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Basic Functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents