10
12.97 Motion-Synchronous Action
10.2 Basic modules for conditions and actions
10
840 D
NCU 571
840D
NCU 572
NCU 573
FM-NC
810D
CCU2
840Di
ï›™
Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition
10-351
•
Bit operators
The bit operators B_NOT, B_AND, B_OR,
B_XOR can be used.
Operands are variables or constants of the
INTEGER type.
•
Basic arithmetic operations
Real-time variables of types INTEGER and REAL
can be subjected to the basic arithmetic operations,
with each other or with a constant (+, –, *, /, DIV,
MOD).
•
Mathematical functions
Mathematical functions cannot be applied to real-
time variables of data type REAL (SIN, COS,
TAN, ASIN, ACOS, ABS, TRUNC, ROUND, LN,
EXP, ATAN2, ATAN, POT, SQRT, CTAB,
CTABINV).
Example:
DO $AC_PARAM[3] = COS($AC_PARAM[1])