Commissioning Manual
370 01/2017
The function calculates the arctan of the value transferred in de-
grees.
- arctan of y/x
<function name="arctan" return="<double val>"> dou-
ble </function>
<let name= "arctan_val" type="double"></let>
<function name="arctan" return="arctan_val"> 20.0
The function reads the contents of the specified file into a string vari-
able.
The number of characters to be read can optionally be specified as a
second parameter.
- name of the local variable
- file name
- number of characters to be read in bytes
(optional):
<function name="doc.readfromfile" return="<string
var>"> progname, number of characters </function>
<let name = "my_var" type="string" ></let>
NC file system
<function name="doc.readfromfile" return="my_var">
_T"n:\mpf\test.mpf" </function>
CompactFlash card
<function name="doc.readfromfile" return="my_var">
_T"f:\appl\test.mpf" </function>
or
<function name="doc.readfromfile" return="my_var">
_T".\test.mpf" </function>