AKD BASIC User Guide | 6 AKD BASIC Parameters, Operators, Statements
6.1.2 Alias
General Information
Type Statement
Description
Allows you to define your own names for sys-
tem resources, such as Input or Output pins.
Units N/A
Range N/A
Default
Value
N/A
Data Type N/A
Start Ver-
sion
tbd
Description
Allows you to define your own names for system resources, such as Input or Output pins.
ALIAS is much more powerful than CONST. Constant expressions are computable at compile-
time, whereas an alias has a value that may only be known at the time that it is being used. For
this reason aliases should be used with care – over-use of aliases can make it very difficult to
read a program.
Example
Alias CONVEYOR_IS_RUNNING = (DIN1.STATE = 0)
if CONVEYOR_IS_RUNNING then
print "The conveyor is running"
end if
Related Topics
Const
99 Kollmorgenâ„¢ | March 30, 2012