Siemens SINUMERIK 828D Commissioning Manual page 868

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Generating user dialogs
1.9 Predefined functions
Function name
MMC continued
116
Description
Programming example
;<main_dialog entry="rpara_main">
; <let name="xpos" />
; <let name="ypos" />
; <let name="field_name" type="string" />
; <let name="num" />
; <menu name="rpara_main">
; <open_form name="rpara_form"/>
; <softkey_back>
; <close_form />
; </softkey_back>
;</menu>
;
;<form name="rpara_form">
; <init>
; <caption>test mask</caption>
; <let name="count" >0</let>
; <op>
; xpos = 120;
; ypos = 34;
;
; "nck/Channel/Parameter/R[10]" = 10;
; </op>
; <!-- load the number of controls -->
; <op>
; num = "nck/Channel/Parameter/R[10]";
; </op>
;
; <while>
; <condition>count < num</condition>
; <print name="field_name" text="edit%d">count</
print>
;
; <control name = "$field_name" xpos = "$xpos" ypos
= "$ypos" refvar="nck/Channel/Parameter/R[$count]"
hotlink="true" />
; <op>
; ypos = ypos +24;
; count = count +1;
; </op>
; </while>
;
; </init>
;
; <paint>
; <op>
; xpos = 8;
; ypos = 36;
; count = 0;
; </op>
; <while>
; <condition>count < num</condition>
; <print name="field_name" text="R-Parameter
%d">count </print>
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
Easy XML

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents