Program Example With Nested Check Structures; Cross-Channel Program Coordination (Init, Start, Waitm, Waitmc, Waite, Setm, Clearm) - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

3.1.7.6

Program example with nested check structures

Program code
LOOP
IF NOT $P_SEARCH
ENDLOOP
M30
3.1.8
Cross-channel program coordination (INIT, START, WAITM, WAITMC, WAITE,
SETM, CLEARM)
In principle, a channel of the NC can execute the program started in it independently of other
channels in its mode group. If, however, several programs in several channels of the mode
group are involved in machining a workpiece, the program sequences in the various channels
must be coordinated with the following coordination commands.
Requirement
All the channels involved in the program coordination must belong to the same mode group:
MD10010 $MC_ASSIGN_CHAN_TO_MODE_GROUP[<Channel>] = <Mode group number>
Channel name instead of channel number
Instead of the channel numbers, the channel names entered in MD20000
$MC_CHAN_NAME[<Channel index>] can be used as parameters of the predefined
procedures for the program coordination. The use of the channel names in the NC programs
first has to be enabled:
MD10280 $MN_PROG_FUNCTION_MASK, bit 1 = TRUE
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
G1 G90 X0 Z10 F1000
WHILE $AA_IM[X] <= 100
G1 G91 X10 F500
Z–5 F100
Z5
ENDWHILE
ELSE
MSG("No drilling during block search")
ENDIF
$A_OUT[1] = 1
G4 F2
3.1 Flexible NC programming
Comment
; IF no block search
; WHILE (setpoint X axis <= 100)
; Drilling pattern
; ELSE block search
; ENDIF
; Next drilling plate
Work preparation
481

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents