Siemens SINUMERIK 808D Function Manual page 294

Hide thumbs Also See for SINUMERIK 808D:
Table of Contents

Advertisement

Function name
arctan
File processing
doc.readfromfile
294
Description
The function calculates the arctan of the value transferred in de-
grees.
Parameter:
double - arctan of y/x
Syntax:
<function name="arctan" return="<double val>"> dou-
ble </function>
Example:
<let name= "arctan_val" type="double"></let>
<function name="arctan" return="arctan_val"> 20.0
</function>
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.
Attribute:
return - name of the local variable
Parameter:
progname - file name
number of characters - number of characters to be read in bytes
(optional):
Syntax:
<function name="doc.readfromfile" return="<string
var>"> progname, number of characters </function>
Example:
<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>
Function Manual
01/2017

Advertisement

Table of Contents
loading

Table of Contents