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 #105 background imageLoading...
Page #105 background image
AKD BASIC User Guide | 6 AKD BASIC Parameters, Operators, Statements
6.1.8 For...Next
General Information
Type Statement
Description Allows a series of lines to be executed in a loop a specified number of times.
Units N/A
Range N/A
Default
Value
N/A
Data Type N/A
Start Version TBD
Description
Allows a series of lines to be executed in a loop a specified number of times. You can exit from
a For...Next loop using the Exit statement. If Step increment is omitted then increment defaults
to 1. The loop_counter can be floating point or integer. The Step increment can be positive or
negative, integer or floating point.
Example
'print 2 to 100 in 2's
Dim x as integer
For x = 1 to 100 step 2
print x
next
'print 0.5 to 1.2 in 0.1 increments
Dim x as float
For x = 0.5 to 1.2 step 0.1
print x
next
Related Topics
While...Wend | Exit
105 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