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 #98 background imageLoading...
Page #98 background image
AKD BASIC User Guide | 6 AKD BASIC Parameters, Operators, Statements
6.1.1 $Include
General Information
Type Statement
Description
The $Include statement allows you to textually include multiple separate files in
a single source file.
Units N/A
Range N/A
Default
Value
N/A
Data Type N/A
Start Ver-
sion
TBD
Description
The $Include statement allows you to textually include multiple separate files in a single source
file. A file cannot include itself, either directly or indirectly. Include file nesting is allowed to a
depth of 16. Relative paths in a nested include file are relative to the directory location of the
include file, not the current working directory of the compiler.
Example
This example shows two file, myinc.inc and myfile.bas. The file myinc.inc has a sub-procedure
for doing and incremental move that is used by the main program in myfile.bas.
MyInc.Inc:
Sub DoIndexMove( Distance as integer)
MOVE.RELATIVEDIST = Distance
MOVE.GOREL
while MOVE.MOVING : wend
End Sub
MyFile.Bas"
$Include "myinc.inc"
Main
while 1
call DoIndexMove(4096)
Pause(0.5)
wend
End Main
Related Topics
Statement Table(1)
Kollmorgenâ„¢ | March 30, 2012 98

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