Siemens SINUMERIK 840D sl Function Manual page 435

Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Example 2: Deleting auxiliary functions and generating the auxiliary function output without
AUXFUSYNC(...)
Program code
N0610 DEF STRING[400] ASSEMBLED=""
N0620 DEF STRING[31] FILENAME="/_N_CST_DIR/_N_AUXFU_SPF"
N0630 DEF INT GROUPINDEX[10]
N0640 DEF INT NUM
N0650 DEF INT LAUF
N0660 DEF INT ERROR
N0670 DEF BOOL ISQUICK
N0680 DEF BOOL ISSYNACT
N0690 DEF BOOL ISIMPL
...
N0760 AUXFUDEL("M",2,3,5)
N0770
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)
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
H2: Auxiliary function outputs to PLC
8.13 Behavior during block search
Comment
; M2=3 (5th auxiliary function group) delete
;
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.
435

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents