EasyManuals Logo

Kollmorgen AKD Basic User Manual

Kollmorgen AKD Basic
506 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 #37 background imageLoading...
Page #37 background image
AKD BASIC User Guide | 3 AKDBASICLanguage
MOVE.ACC = 1000.0
MOVE.DEC = 1000.0
MOVE.RUNSPEED = 500.0
MOVE.GOVEL
The program fragment above sets up the relevant motion parameters, and commands the motor
to move at the specified velocity.
You cannot create variables (or function names, etc.) that shadow pre-defined ones. For a com-
plete list of Parameters and commands, refer to the Parameter Guide section in this manual.
3.7 Expressions
3.7.1 Arithmetic Expressions
Arithmetic expressions (expressions involving INTEGER and FLOAT values) use the following
operators.
3.7.2 Numeric Operators
Operators higher in the table have greater precedence than those below.
Operator Assoc Name
^ right exponentiation
- right unary minus
* left multiply
/ left divide
MOD left modulo
+ left add
- left subtract
3.7.3 Logical Operators
Operator Assoc Explanation
=, < >, ≥, ≤, <, > left the usual
NOT, BITNOT right not, boolean not
AND, BITAND left and, boolean and
OR, BITOR, XOR, BITXOR left or, boolean or, xor, boolean xor
Logical expressions (as, for example, in the condition of an ‘if’ statement) also use these
operators. Strings are concatenated with the ‘+’ operator. Logical expressions are formed from
strings, using the comparison operators, NOT, AND, OR, and XOR, with the meaning of an
empty string being FALSE, and a non-empty string being TRUE.
Integer values are coerced to floating point values as needed. Floating-point values are rounded
when coerced to integer values.
Logical operators are NOT short-circuiting (i.e., when executing the code).
if a(x) or b(y) or c(z) then ...
if a(x) is true, b(y) and c(z) are still invoked.
BITxxx boolean operators are provided to support bitwise operations on integer values. They
operate quite differently from their logical equivalents. For example:
2 and 1 has the value –1 (TRUE, since each operand is ‘true’), but 2 bitand 1 has the value 0
since no matching bits are 1).
37 Kollmorgenâ„¢ | March 30, 2012

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Kollmorgen AKD Basic and is the answer not in the manual?

Kollmorgen AKD Basic Specifications

General IconGeneral
BrandKollmorgen
ModelAKD Basic
CategoryController
LanguageEnglish

Related product manuals