Advanced features, Setting up advanced features – Delta MMC120 User Manual
Page 87
MMC120 Linear Motion Control Module
Appendix A: DCS120
Delta Computer Systems, Inc. 360/254-8688
87
Advanced Features
DOS Command Line Options
Syntax: MMCDOS [ini_file] [project_file] [-options]
When you start DCS120, you can include up to two command line parameters and several startup options. The first
parameter is the name of the initialization file DCS120 uses to configure itself. The default file is DCS120.INI. The
second parameter is the name of the project files that contain information about each of the Motion Control Modules in
the system. The file names are DCS120.BDn (where n is the module number: 1, 2, ...). The ini_file and project_file
are described later in this section.
The available startup options are:
-w
starts DCS120 in the write mode
-r
starts DCS120 in the readback mode
-d
creates a debug file (debug.txt) with a history of all commands executed from DCS120
Note: this creates large files that will fill your hard drive if DCS120 runs too long
-f
forces initialization of the module when DCS120 starts
-l
starts DCS120 in the look-only mode
These options can all be specified in the .ini file, but when specified on the command line they supersede the .ini file.
The following examples illustrate the use of command line parameters and options.
You can specify a different board file for each different project. This permits easy use of different control parameters
for the same axis.
These are examples of Command Line option use:
MMCDOS
Uses DCS120.INI and filename.BD1
MMCDOS PROJ -w -f
Uses PROJ.INI and filename.BD1, starts in the write mode, and forces
initialization
MMCDOS PROJ PROJ2
Uses PROJ.INI and PROJ2.BD1
Setting Up Advanced Features
To create special project and board files, copy and rename the existing DCS120.INI and DCS120.BDn files. You must
keep the new files in the same directory as DCS120's default files.
Description of Initialization File and Project Files
DCS120 needs several files to run. These files must all be in the same directory.
MMCDOS.EXE
Executable program code
filename.INI
Initialization file used to configure DCS120 (ASCII text format)
filename.BDn
Project file used to define startup parameters for both axes on each module. Each module
used in a system will have a .BDn file to define axis-specific parameters. Filename for the
.BDn files are defined in the filename.INI file [PROJECT] parameter.