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 ProgramProgram titletitle is for use by the programmer.
eg.
$TITLE Sawtooth generator Sawtooth generator
Maximum length: 64 characters
Program version
Syntax
$VERSION
Version
Number
The $VERSION VersionVersion NumberNumber 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.21.0.2. Major
modifications can be shown by increasing the first digit, eg. 2.0.02.0.0.
Maximum length: 8 characters