Création de boîtes de dialogue utilisateur
2.10 Adressage de composants
drv_sys_hlpfunct.xml
<function name="ncfunc.cap.read" return="error"
rows="$count">componentsList[$cuno].do_p0107, "drive/cu/p0107[0, cu
$cuidx]"</function>
<print text="gather data finished" />
<sleep value="20" />
<op>
count = 0;
</op>
<while>
<condition>count < _drv_sys_comp_array_size</condition>
<if>
<then>
<print text="next nx %d">next_nx</print>
<function name="load_components_description">next_nx</function>
</then>
</if>
<op>
count = count+1;
</op>
</while>
<op>
num_cus = next_nx+1;
</op>
</function_body>
<!-- ------------------------------------------------------------
function: calculate_do_index
This function is looking for components of type 11 (SERVO) and lists these
in the componentsList array.
input:
-
output:
componentsList array filled
---------------------------------------------------------------- -->
<function_body name="calculate_do_index">
<let name="cuno" />
<let name="count" />
<let name="do_index" >1</let>
<let name="map_index" />
<while>
<condition>
140
<condition>componentsList[$cuno].cu_p978[$count] == 60</condition>
<op>
next_nx= next_nx +1;
</op>
cuno < num_cus</condition>
<op>
Manuel de programmation, 10/2020, 6FC5397-1DP40-6DA4
Easy XML