UD70
Issue code: 70nu2
DPL programming
4-19
There are two parts to an alias, as follows:
Name
parameter
The name parameter specifies the name to be defined. This
can be any combination of letters, digits and underscore
characters. Spaces are not permissible.
Value
parameter
The value parameter can be used to specify any constant
value or parameter number.
Example
This example demonstrates use of the
$DEFINE
directive to assign
names to parameter numbers (#3.02 and #1.21) and to a value (500).
$define MAX_SPEED 500
$define SPEED #3.02
$define SPEED_DEMAND #1.21
BACKGROUND{
top:
IF SPEED < MAX_SPEED THEN
SPEED_DEMAND = SPEED_ 1
ENDIF
GOTO top:
}
Содержание UD70
Страница 6: ......
Страница 14: ...UD70 Issue code 70nu2 2 6 Installation...
Страница 42: ...UD70 Issue code 70nu2 4 20 DPL programming...
Страница 98: ...UD70 Issue code 70nu2 7 22 Reference...
Страница 142: ...UD70 Issue code 70nu2 9 6 Diagnostics...