Binary Telecommunications - Campbell 21X Operator's Manual

Micrologger
Table of Contents

Advertisement

APPENDIX
C.
BINARY TELECOMMUNICATIONS
MUNICATIONS
WITH BINARY
S
Description
[no.
of
loc.]F
BINARY DUMP
-
21X sends,
in
Final
Storage Format (binary,
the number of Final Storage
I
locations
specified (from
current MPTR locations), then
Signature (no prompt).
DATALOGGER J AND K COMMANDS
3142J
The 8142J
command is used to toggle
dataloggBr
user
flags, request Final Storage
data,
anfl to establish the input locations
returned by
the
K
command.
The
format of
the comdnand is as follows:
311
42J<CR>abcd...nNU
LL
where
1)
"3142J<pR>"
is
the command.
2)
"a" is
a
1
byte
value representing the user
flags
to
[e
toggled. The
most significant bit
(MSB), if set, will
toggle datalogger user flag
8.
Likev'1ise,
the 2nd most significant bit,
if
set, will
loggle user flag 7, and so on to the
least sigl'rificant bit
which,
if
set, toggles
user
flag
1.
Toggle means that
if a
flag
is
set,
it
will
be
then reset, or if it is reset,
it
will
be set.
3)
"b"
is
a
1
byte value
whose MSB will
determirie
whether Final Storage Data
is
returned after
the
K
command.
lf
the bit
is
set, Findl Storage Data,
if
any,
will be
returned after
the next
K
command.
The
datalogger initially has this
bit reset upon
entering
telecommunications, but once set
by
a
J
command,
it
will remain set
until
reset by another J command
or
is
terminated.
MSB set means a port
toggle
bYte
and port status
is
to be returned
the
K
command.
Like
the MSB, this bit
but remains set once set until reset by
another J
command or telecommunications
is
terminated.
The remaining bits are reserved.
lf the 2nd MSB in
"b"
was set then "c" is
a
port toggle byte,
otherwise "c,d,...,n" are
each
1
byte binary values each
representing a
datalogger Input Storage
location. The data
at
those locations will
be
returned after
the next
K
command.
ASCII
code
1
(0000001
binary) represents input
location
1.
ASC|lcodes 2
(00000010
binary) represents input location 2, and so
on.
The order
of
the location requests is not
important. The list is limited, however, to 62
total location requests.
"Null"
or ASCII code
0 (00000000 binary
)
terminates
the J
command.
Alternately,
11111111 binary aborts the J
command.
lf
aborted, flags
will not
be
toggled and
location requests
will not be saved.
User
Enters
Datalogger
Echo
The
K
command returns datalogger time,
user flag
status, port status if requested, the
data
at
the input locations requested
in
the
J command,
and Final Storage Data
if
requested by
the J command. The format
of the
command is K<CR> (K
Return).
The
datalogger
will echo the
K
and Return and
send a Line
Feed. The
amount of data
that
follows depends on the J command
4)
5)
3
1
4
2
J
CR
a
b
c
d
n
Null
3
1
4
2
J
CR
LF
a
b
c
d
n
Null
The
willl
with
is reset
Upon
entering telecommunications,
c-1

Advertisement

Table of Contents
loading

Table of Contents