EasyManuals Logo
Home>Siemens>Control Systems>SINUMERIK 828D

Siemens SINUMERIK 828D Programming Manual

Siemens SINUMERIK 828D
822 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 #556 background imageLoading...
Page #556 background image
Motion synchronous actions
10.2 Operators for conditions and actions
Job planning
556 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
10.2 Operators for conditions and actions
Comparison
(==, <>, <, >, <=, >=)
Variables or partial expressions can be
compared in conditions. The result is
always of data type BOOL. All the usual
comparison operators are permissible.
Boolean operators
(NOT, AND, OR, XOR)
Variables, constants or comparisons can
be linked with each other with the usual
Boolean operators.
Bit-by-bit operators
(B_NOT, B_AND, B_OR, B_XOR)
The bit operators B_NOT, B_AND, B_OR,
B_XOR can be used.
Basic arithmetic operations
(+, -, *, /, DIV, MOD)
Main run variables can be linked to one
another or to constants by forms of basic
computation.
Mathematical functions
(SIN, COS, TAN, ASIN, ACOS, ABS, TRUNC,
ROUND, LN, EXP, ATAN2, POT, SQRT, CTAB,
CTABINV).
Mathematical functions cannot be applied
to variables of data type REAL .
Indexing Indexing can be undertaken using main run
expressions.
Example
Basic arithmetic operations used together
Multiplication and division are performed before addition and subtraction and bracketing of
expressions is permissible. The operators DIV and MOD are permissible for the data type
REAL.
Programming Comments
DO $AC_PARAM[3] = $A_INA[1]-$AA_IM[Z1] ; Subtraction of two main run
variables
WHENEVER $AA_IM[x2] < $AA_IM[x1]-1.9 DO
$A_OUT[5] = 1
; Subtraction of a constant from
variables
DO $AC_PARAM[3] = $INA[1]-4*SIN(45.7
$P_EP[Y])*R4
Constant expression, calculated
during preprocessing
Mathematical functions
Programming Comments
DO $AC_PARAM[3] = COS($AC_PARAM[1]) ;
;

Table of Contents

Other manuals for Siemens SINUMERIK 828D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 828D and is the answer not in the manual?

Siemens SINUMERIK 828D Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 828D
CategoryControl Systems
LanguageEnglish

Related product manuals