Siemens SINUMERIK 840D sl Function Manual page 434

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

Advertisement

H2: Auxiliary function outputs to PLC
8.13 Behavior during block search
Program code
N90
N140 AUXFUDEL("M",2,3,5)
N150
N170 AUXFUDELG(6)
N180
N190 IF ISFILE(FILENAME)
N210
DELETE(ERROR,FILENAME)
N220
IF (ERROR<>0)
N230
SETAL(61000+ERROR)
N240
ENDIF
N250 ENDIF
; 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)
N270 LOOP
N300
AUXFUSYNC(NUM,GROUPINDEX,ASSEMBLED)
N310
N320
IF (NUM==-1)
N340
GOTOF LABEL1
N350
ENDIF
N380
WRITE(ERROR,FILENAME,ASSEMBLED)
N390
IF (ERROR<>0)
N400
SETAL(61000+ERROR)
N410
ENDIF
N430 ENDLOOP
N440
N450 LABEL1:
N460
N480 CALL FILENAME
N490
N510 DELETE(ERROR,FILENAME)
N520 IF (ERROR<>0)
N530
SETAL(61000+ERROR)
N540 ENDIF
N550
N560 M17
434
Comment
; M2=3 (5th auxiliary function group) delete
;
Delete the collected auxiliary function of the
;
6. group.
; Delete the FILENAME file
; Error evaluation
; General a part program block
;
All auxiliary functions of the channel
;
have been executed.
; Write a part program block to file FILENAME.
; Error evaluation
; Process a generated subroutine.
; Delete the file again after execution.
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Basic Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents