Siemens SINUMERIK 840D SL Manuel De Mise En Service page 843

Logiciel de base et logiciel de commande
Masquer les pouces Voir aussi pour SINUMERIK 840D SL:
Table des Matières

Publicité

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>
Easy XML
Manuel de programmation, 12/2017, 6FC5397-1DP40-6DA1
Création de boîtes de dialogue utilisateur
1.9 Adressage de composants
95

Publicité

Table des Matières
loading

Table des Matières