UD70
Issue code: 70nu2
DPL programming
4-1
4
DPL Programming
This chapter explains the following parts of a
DPL
program:
•
Program headers
•
Comments
•
Variables
•
Parameters
•
Tasks
•
User-defined sub-routines
•
Instructions
The explanation is followed by a section on optimizing
DPL
programs.
4.1 Program
headers
A
DPL
program must begin with five program headers in the correct order,
as follows:
•
Program title
•
Program version
•
Drive name
•
Author name
•
Company name
Each program header must be contained on a single instruction line in
the program.
Program title
Syntax $TITLE Program title
The
$TITLE
Program
Program title
title is for use by the programmer.
eg.
$TITLE
Sawtooth generator
Sawtooth generator
Maximum length: 64 characters
Program version
Syntax $VERSION Version Number
The
$VERSION
Version
Version Number
Number is for use by the programmer. It is
recommended that the format of the version number should be as follows:
$VERSION
1.0.1
1.0.1
Minor updates can be shown by increasing the last digit, eg. 1.0.2
1.0.2. Major
modifications can be shown by increasing the first digit, eg. 2.0.0
2.0.0.
Maximum length: 8 characters
Summary of Contents for UD70
Page 6: ......
Page 14: ...UD70 Issue code 70nu2 2 6 Installation...
Page 42: ...UD70 Issue code 70nu2 4 20 DPL programming...
Page 98: ...UD70 Issue code 70nu2 7 22 Reference...