Siemens SINUMERIK 840DE sl Commissioning Manual page 797

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840DE sl:
Table of Contents

Advertisement

Tag identifier
FUNCTION_BODY contin‐
ued
REQUEST
Easy XML
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1
Meaning
Example:
<function_body name = "test" parameter = "c1,c2,c3" return = "true">
<LET name = "tmp">0</LET>
<OP> tmp = c1+c2+c3 </OP>
<OP> $return = tmp </OP>
</function_body>
...
...
...
<LET name = "my_var"> 4 </LET>
<function name = "test" return = " my_var "> 2, 3,4</function>
<print text = "result = %d"> my_var </print>
...
...
The tag is used to add a variable to the cyclic reading service (Hotlink). As a consequence,
the access time to variables, which are not linked to the control, is reduced.
If a function is to be called automatically when a value changes, then the name of the function
should be specified as an additional attribute.
This tag is only processed within the INIT operation.
Attributes:
● name
Address identifier
● function
Function name
Syntax:
<REQUEST name = "<NC-Variable>" />
or
<REQUEST name = "<NC-Variable>" function="<function name>"/>
Example:
<request name ="plc/mb10" />
or
<function_body name="my_function" >
<print text="value changed" />
</function_body>
...
...
...
<request name ="plc/mb10" function="my_function"/>
Generating user dialogs
1.7 XML identifier
79

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents