Arithmetic Operators - Siemens SINUMERIK 840D sl Operating Manual

Sinumerik integrate create myconfig - diff, expert, topo
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Create MyConfig - Expert
4.6 Script language
&=
:=
If no old value exists for compiled operators: += -= *= /= &= |=, then an error message
is output.
Examples
4.6.9.3

Arithmetic operators

Arithmetic operators - VAR = 1 + 2 - 3
Arithmetic operators permit the assignment of a term comprising several constants and
variables.
The following arithmetic operations are supported:
Table 4-14
+
-
*
/
|
&
The calculation is made for + - * / in double format (15-digit accuracy) and for & | in UInt64
format.
254
AND operation
AND logic operation of specified and existing value (resetting bits).
Assignment without evaluation
Assignment without evaluation to the right of the operator. The value is transferred to the
controller as specified.
Everything to the right of "=" (e.g. a variable) is neither interpreted by the package nor pro‐
cessed.
N20000 $MC_CHAN_NAME="TUTORIAL"
$ON_AXIS_FUNCTION_MASK~
$MA_AX_VELO_LIMIT[0,AX1]?=2300
R[0]+=10
$MN_MM_TOOL_MANAGEMENT_MASK|='B10000'
GUD_2=$MA_MAX_AX_VELO[AX1]
Up.myVar ~ ; delete variable
Up.myVar = null ; delete variable (alternative)
Arithmetic operators
Add
Subtract
Multiply
Divide
OR operation
AND operation
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 11/2016, A5E36537479B-AD

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents