Herunterladen Inhalt Inhalt Diese Seite drucken

Siemens SINUMERIK 840D sl Handbuch Seite 743

Vorschau ausblenden Andere Handbücher für SINUMERIK 840D sl:
Inhaltsverzeichnis

Werbung

Funktionsname
Load Item
Easy XML
Programmierhandbuch, 01/2015, 6FC5397-3DP40-5AA2
Bedeutung
Die Funktion fügt eine Liste von Ausdrücken in das Control ein.
Die Funktion steht nur für die Control-Typen "listbox" und "graphicbox"
zur Verfügung.
Syntax:
<function name="control.loaditem"> control name,
list </function>
Attribut:
name – Funktionsname
Werte:
control name – Control name
list- Stringvariable
Aufbau der Liste:
Die Liste beinhaltet eine Anzahl von Ausdrücken, die jeweils mit einem
\n voneinander zu trennen sind.
Beispiel:
<let name="item_string" type="string"></let>
<let name="plotlist" type="string"></let>
...
...
<print name ="item_string" text="p; %f; %f; %f; %f
\n">s_z, s_x</print>
<op>plotlist = plotlist + item_string</op>
<print name ="item_string" text="l; %f; %f;
%f; %f\n">s_z, s_x, e_z, e_x </print>
<op>plotlist = plotlist + item_string</op>
<op> s_x = e_x </op>
<op> s_z = e_z</op>
<op> e_x = s_x + 10 </op>
<op> e_z = s_z - 100 </op>
<print name ="item_string" text="l; %f; %f;
%f; %f\n">s_z, s_x, e_z, e_x </print>
<op>plotlist = plotlist + item_string</op>
<function name="control.loaditem">_T"gbox",
plotlist</function>
Anwenderdialoge erstellen
1.9 Vordefinierte Funktionen
99

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis