While Check Structure - Siemens SINUMERIK 840D sl Operating Manual

Sinumerik integrate create myconfig - diff, expert, topo
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Create MyConfig - Expert
4.6 Script language
Each operation block can, in turn, contain control structures; this means that any nesting depth
is possible.
Example 1
Example 2 - Alternative condition
4.6.8.3

While check structure

Repeated execution - While ... EndWhile
The control structure allows the repeated execution of the operation block "block" as long as
the "exp" condition is fulfilled.
The operation block can, in turn, contain control structures; this means that any nesting depth
is possible.
Example
252
CHANDATA(1)
If Up.Velo_X != null
If Up.Velo_X > $MA_MAX_AX_VELO[AX1]
$MA_MAX_AX_VELO[AX1] = Up.Velo_X
Else
$MA_MAX_AX_VELO[AX1] = 1000
EndIf
EndIf
IF (up.selection == 1)
Log("selection 1")
ELSIF (up.selection == 2)
Log("selection 2")
ELIF (up.selection == 3)
Log("selection 3")
ELSE
Log("selection was not 1, 2 or 3")
ENDIF
While exp
block
EndWhile
[B3_S3_PS99]
Up.i = 0
Up.CU_Hat_Servo = false
While Up.i < 6 && !Up.CU_Hat_Servo
If p978[$(Up.i)] != 255
Up.CU_Hat_Servo = true
EndIf
Up.i += 1
EndWhile
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 11/2016, A5E36537479B-AD

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents