AKD BASIC User Guide | 3 AKDBASICLanguage
3.5.21 Pause( )
Pause(Pause_Time) causes the program to pause the amount of time specified by the Pause_
Time argument. The motion of the motor is not affected.
3.5.22 Print
print expression1 [ [,;] expression2 ] [;]
Print a list of expressions, separated by delimiters to the console. Any number of delimiters
(including zero) can appear before or after the list of expressions. At least one delimiter must
appear between each pair of expressions in the print list. The print statement is primarily used
for debugging purposes.
3.5.23 Example
print ‘ print a newline
print , ‘ advance a single tab stop
print a,b ‘ print a and b, tab between
print a,b, ‘ print a and b, tab between and at
end
print ,,,x,,, ‘ tab tab tab x tab tab tab
3.5.24 VM.RESTART
VM.RESTART clears the run time error variables and causes program execution to start again
from the beginning of the program. Any Interrupts, Subroutines, WHEN statements or loops in
process are aborted. This statement is used to continue program execution after a Run Time
Error Handler or to abort from WHEN statements without satisfying the condition.
VM.RESTART does not clear the data area or change any program or motion variables.
3.5.25 Select Case
Select Case test-expression
Case expression-list1
...statement block1...
Case expression-list2
...statement block1...
Case expression-list3
...statement block1...
Case Else
...else block...
End Select
test-expression must evaluate to an INTEGER or FLOAT value.
expression-list1 is a non-empty list of case-defn, separated by commas.
There can be only one Case Else and, if present, it must appear as the last case. It is selected
only if all other tests fail.
case-defn can be any of the following:
expr
expr to expr (tests inclusive (closed range))
33 Kollmorgenâ„¢ | March 30, 2012