Herunterladen Diese Seite drucken

Siemens SINUMERIK 840D sl Inbetriebnahmehandbuch Seite 694

Basesoftware und bedien-software
Vorschau ausblenden Andere Handbücher für SINUMERIK 840D sl:

Werbung

Anwenderdialoge erstellen
1.9 Komponenten adressieren
drv_sys_hlpfunct.xml
<typedef name="components" type="struct">
<element name="cu_p978" dim="25" />
<element name="do_p0101" dim="25" />
<element name="do_p0107" dim="25" />
</typedef>
<typedef name="comp_no_do_idx_map" type="struct">
<!-- cu index -->
<element name="cu_idx" />
<!-- component number -->
<element name="comp_no" />
<!-- address index -->
<element name="do_idx" />
</typedef>
<let name="componentsList" dim="5" type="components" />
<let name="address_idx_map" dim="32" type="comp_no_do_idx_map" />
<let name="num_cus" />
<let name="_drv_sys_comp_array_size">23</let>
<!-- ------------------------------------------------------------
function: load_components_description
This function loads the parameter arrays p978, p101 and p107 into a local
memory
input:
cuno: CU index 0 based (index 0 == CUI)
output:
componentsList structure
---------------------------------------------------------------- -->
<function_body name="load_components_description" parameter="cuno">
<let name="count" />
<let name="next_nx" >0</let>
<let name="cuidx"></let>
<let name="error" />
<op>
count = _drv_sys_comp_array_size;
next_nx = cuno;
cuidx = cuno+1;
</op>
<print text="gather data" />
<function name="ncfunc.cap.read" return="error"
rows="$count">componentsList[$cuno].cu_p978, "drive/cu/p0978[0, cu
$cuidx]"</function>
<function name="ncfunc.cap.read" return="error"
rows="$count">componentsList[$cuno].do_p0101, "drive/cu/p0101[0, cu
$cuidx]"</function>
110
Programmierhandbuch, 12/2018, A5E40869575 AC
Easy XML

Quicklinks ausblenden:

Werbung

loading

Diese Anleitung auch für:

Sinumerik 840de sl