Calculations must be set in brackets in order to define a clear sequence.
Examples
4.6.9.4
Logic operators / comparison operators
Condition- true != false
The following logical operations and comparison operators are available to form Boolean
expressions:
Table 4-15
&&
||
!
Table 4-16
==
!=
<
>
<=
>=
Logic operations must be set in brackets in order to define a clear sequence.
Example
4.6.9.5
Special operators
Replacement operator - $(up.?)
With the aid of the replacement operator, it is possible to replace parts of an instruction, an
identifier, a value or a message text flexibly with the value of a package variable
Up.identifier.
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 11/2016, A5E36537479B-AD
UP.Index=UP.Index +1
$MA_MAX_AX_VELO[AX1]= $MA_MAX_AX_VELO[AX2]*1.3
GUD_1=(100-50)/3
$MN_COMPAR_TYPE_1 = $MN_COMPAR_TYPE_1 | 'B10000'
Logic operators
Logical AND operation
Logical OR operation
Negation operator
Comparison operators
equal to
not equal to
less than
greater than
less than or equal to
greater than or equal to
(UP.$Step[HMI_Adv]&&Version(PCU, "HMI-Advanced")>=7.6)||
(Version(NCU, "InternalVersion")!=2.7)
Create MyConfig - Expert
4.6 Script language
255