EasyManuals Logo

Siemens SINUMERIK ONE MCP 2400.4c Commissioning Manual

Siemens SINUMERIK ONE MCP 2400.4c
1734 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #816 background imageLoading...
Page #816 background image
1.10 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 Description
Ncfunc cap read 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.
Attributes:
return - Execution status
Value = 0 - fault-free
Value = 1 - The variables could not be read
rows - Number of additional lines of an array to be read (optional)
If an array index is defined for the reference variables, as from this
index, the function copies the values read into the target variable.
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>
or
<let name="cu_p978" dim="25" ></let>
...
...
<function name="ncfunc.cap.read" return="error"
rows="23">cu_p978, "drive/cu/p0978[0, 1]"</
function>
Generating user dialogs
1.10 Predefined functions
Easy XML
98 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1

Table of Contents

Other manuals for Siemens SINUMERIK ONE MCP 2400.4c

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK ONE MCP 2400.4c and is the answer not in the manual?

Siemens SINUMERIK ONE MCP 2400.4c Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK ONE MCP 2400.4c
CategoryControl Systems
LanguageEnglish

Related product manuals