Siemens SINUMERIK 840D sl Programming Manual page 119

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

Advertisement

Note
Channel name
Instead of channel numbers, the channel names (identifiers or keywords) defined via
$MC_CHAN_NAME can also be programmed (type: STRING).
Channel name
The names must not already exist in the NC with a different meaning, e.g. as key words,
commands, axis names etc.
Note
Variables, which all channels can access (NCK-specific global variables), can be used for
data exchange between programs. Otherwise separate programs must be written for each
channel.
Examples
Example 1: Channel number assignment
Channel with the name "MACHINE" is to be assigned channel number 1, channel with the
name "LOADER" is to be assigned channel number 2. The variables are given the same
names as the channels:
DEF INT MACHINE=1, LOADER=2
The statement
START(MACHINE)
Example 2: Channel specification options
$MC_CHAN_NAME[0] = "CHAN_X" ; Name of the 1st channel
$MC_CHAN_NAME[1] = "CHAN_Y" ; Name of the 2nd channel
Programming with:
● Channel numbers:
Program code
START(1,2)
● Channel identifiers:
Program code
START(CHAN_X, CHAN_Y)
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
1.13 Program coordination (INIT, START, WAITM, WAITMC, WAITE, SETM, CLEARM)
CAUTION
is therefore:
START
Comment
; Perform start in the 1st and 2nd channels.
Comment
; Perform start in the 1st and 2nd channels
; The channel_X and channel_Y identifiers represent
channel numbers 1 and 2 internally, due to the
$MC_CHAN_NAME machine data. They therefore also perform
a start in the 1st and 2nd channel.
Flexible NC programming
119

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents