4 a -- as stored 8 bit, 5 p -- as stored strip parity, 5 smcom command line parameters – Campbell Scientific PC208 Datalogger Support Software User Manual

Page 92: 6 smcom command line switches, 1 sending text

Advertising
background image

SECTION 6. SMCOM

6-4

6.4.4 A -- AS STORED 8 BIT

The A collection option is used to collect files
from the Storage Module which do not contain
datalogger data. This option must be used to
collect raw burst mode data from the 21X (see
21X manual). An exact copy of the Storage
Module file is copied to the computer. This
option will not skip over a program stored within
the file, it assumes that the code indicating an
imbedded program is part of the file and will
transfer the program as part of the file.

6.4.5 P -- AS STORED STRIP PARITY

The P collection option is used to collect ASCII
data stored in the Storage Module. The parity
bit (bit 8) of each byte is set to 0 before the byte
is stored in the computer file.

6.5 SMCOM COMMAND LINE

PARAMETERS

All options to be executed while SMCOM is
active can be entered on the command line.
The command line is limited to 128 characters.
Each option is separated by a space. Option
names on the command line can be entered
either as a single letter or as a word starting
with that letter. For example the command line

SMCOM 3 ALL TEST FINAL PROGRAMS
DLDSTORE #5PROGNAME.DLD QUIT

is equivalent to

smcom 3 a test f p d #5progname q

would execute SMCOM through COM3, not
using SM232 or SM232A, using the root file
name TEST to collect all data files in Final
Storage format. It would also collect all
programs in the Storage Module, store the
datalogger program with the computer file name
PROGNAME.DLD in the Storage Module at
program address 5, and then quit.

For automatic execution, the command line can
be executed as a batch file.

6.6 SMCOM COMMAND LINE

SWITCHES

There are two command lines switches that
may be used with SMCOM: NOcolor and
SM232A.

NOcolor is used to suppress color on a
computer with a monochrome display. The
problem is evident when the status lines at the
top of the screen are not visible.

SM232A must be used if the SM232 or SM232A
interface is used between the storage module
and the computer.

The switches are entered following SMCOM
and a space on the command line:

SMCOM NOcolor

SMCOM SM232A

The switches are case sensitive. SM232A must
be entered with capital letters. NOcolor must be
entered capital NO, lower case, color.

The switches may be used along with command
line parameters (Section 6.5), but must precede
the parameters.

6.6.1 SENDING TEXT

As in GraphTerm there is the ability to send a
command line string (and wait for desired
echoes) while in terminal emulator, thus being
able to send commands like switch setting
command from the command line. Example:

SMCOM 2 N E T /1411L+#13\1411L+#37 Q

would reset the SM and set the fill and stop
function.

If the SM is connected to a CR10(X) and
SMCOM detects the datalogger but can't
connect to the SM, then datalogger security is
probably set (assuming the SM is actually
there). SMCOM will enter the Terminal
Emulator option to allow the user to unlock
security. The Security code can be entered on
the command line if desired. This command
string should appear right before the first
SMCOM option.

Example:

SMCOM 2 N /10L+#13\10L* A ROOT F Q

would collect all the files from the SM which is
connected to a CR10(X) with security code 10.

As of version 4.0, SMCOM was changed to ask
for root file name after the first collection option
is requested instead of at the beginning of the
program. This means old .BAT files will need to
be corrected to put the root name after the first
collection option.

Advertising