Predefined Functions - Siemens SINUMERIK 808D Function Manual

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

Advertisement

Addressing the global user data
Addressing starts with the path section gud, followed by the specification of the area CHANNEL. This address section is
followed by the specification of the GUD areas:
GUD areas
sgud
mgud
ugud
Then enter the GUD name. If an array is to be addressed, the name is
followed by the array subscript in square brackets.
Example:
<data name ="gud/channel/mgud/syg_rm[0]">1</data>
<op>"gud/channel/mgud/syg_rm[0]" = 5*2 </op>
23.10.9

Predefined functions

The script language offers various string processing and standard mathematical functions. The function names listed below
are reserved and cannot be overloaded.
Function name
ncfunc.cap.read
ncfunc.cap.write
280
Assignment
Siemens GUD
Machine manufacturer GUD
User GUD
Description
The function copies a value from the specified address into a local
variable. If the read operation was error-free, then the return variable
contains the value zero.
Contrary to the operation instruction, in the event of a fault, this func-
tion does not interrupt the processing of the script operations.
Syntax:
<function name="ncfunc.cap.read" return="error">
lokale variable, "address"</function>
Example:
<let name="error"></let>
<function name="ncfunc.cap.read" return="error"> 3,
"drive/cu/p0009"</function>
<if>
<condition>error != 0</condition>
<then>
<break />
</then>
</if>
The function writes a value into the specified variable. If the write
operation was error-free, then the return variable contains the value
zero.
Contrary to the operation instruction, in the event of a fault, this func-
tion does not interrupt the processing of the script operations.
Syntax:
<function name="ncfunc.cap.write" return="error">
local variable or constant, "address"</function>
Example:
<let name="error"></let>
<function name="ncfunc.cap.write" return="error">
0, "drive/cu/p0009"</function>
<if>
<condition>error != 0</condition>
<then>
<break />
</then>
</if>
Function Manual
01/2017

Advertisement

Table of Contents
loading

Table of Contents