Siemens SINUMERIK 840Di sl Function Manual page 27

Synchronized actions, ncu system software
Hide thumbs Also See for SINUMERIK 840Di sl:
Table of Contents

Advertisement

Priority of operators
In order to produce the desired logical result in multiple expressions, the following operator
priorities should be observed in calculations and conditions:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
and parentheses should be used where necessary. The logic operation result for a condition
must be a BOOL data type.
Example of a multiple expression:
WHEN ($AA_IM[X] > VALUE) AND ($AA_IM[Y] > VALUE1) DO ...
Functions
A main-run variable of the REAL type can be used to create function values sine, cosine, etc.
The following functions are possible:
SIN, COS, ABS, ASIN, ACOS, TAN, ATAN2, TRUNC, ROUND, LN, EXP, ATAN,
POT, SQRT, CTAB, CTABINV
Example
... DO $AC_PARAM[3]=COS($AA_IM[X])
For a description of how to use these functions, please see:
References:
/PG/ Programming Manual Fundamentals
/PGA/Programming Manual Advanced
Synchronized actions
Function Manual, 11/2006, 6FC5397-5BP10-2BA0
NOT, B_NOT
*, /, DIV, MOD
+, -
B_AND
B_XOR
B_OR
AND
XOR
OR
==
<>
<
>
>=
<=
2.2 Real -time evaluations and calculations
Negation, bit-serial negation
Multiplication, division
Addition, subtraction
bit AND
bit-serial exclusive OR
bit OR
AND
Exclusive OR
OR
not used
Relational operators
Equal to
Not equal to
Greater than
Less than
Greater than or equal to
Less than or equal to
Detailed description
27

Advertisement

Table of Contents
loading

Table of Contents