Create MyConfig - Expert
4.6 Script language
Program element
Functions
User frames,
variables that have not been
interpreted
Replacement operator
4.6.3
Set channel
Examples
4.6.4
Sections
Within the target areas (NC data, SINAMICS data, display data), the structured data is
addressed via specifying a section. Set sections are local to a script until another section is
set or the script (task) ends.
For details, see section Data access operations (Page 244).
Set section - [B?_S?_PS?], [ADV], [SL], [C?], CHANDATA(?)
For data with the same name, which occur in various areas, before assigning a value, a
specifying section must be specified. This section is effective as long as no other section is
specified. Data accesses between areas are unaffected by this.
When no channel is specified for NC data, then channel 1 is assumed.
242
Color
Formatting
Violet
Bold
Yellow/orange
-
Kaki
Italic
[C1]
;channel 1 is set as an area as of here
$MC_CHAN_NAME = "Channel 1"
Up.NAME_CHAN_3 = NC[C3].$MC_CHAN_NAME ; access across areas
to channel 3
Up.NAME_CHAN_1 = $MC_CHAN_NAME ; access to channel 1
[C2]
;Channel 2 is set as of here
$MC_CHAN_NAME = "Channel 2"
CHANDATA(3) ; alternative NC-adequate long notation
;Channel 3 is set as of here
Example
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 11/2016, A5E36537479B-AD