Campbell Scientific CR10 CR10 Measurement and Control - Page 81

Posiive, Ntcrive

Page 81 highlights

SECTION 6. g.PIN SERIAL INPUT/OUTPUT SPACE (POSIIVE VOLTAGE) BINARY STATE MARK (NTCRIVE VOLTAGE) 7 DATA B S 23456 START BIT ltrsel 7 Btr EIGHTH STOP Brr FIGURE 6.7-1. Transmitting the ASCII Character 1 lf the computer/terminal is configured as DCE equipment (pin 2 is an input for RD), a null modem cable is required. See the SC32A manual for details. 6.7.3 COMMUNICATION PROTOCOUTROUBLE SHOOTING The ASCII standard defines an alphabet consisting of 128 ditferent characters where each chaiacter corresponds to a number, letter, symbol, or control code. An ASCII character is a binary digitalcode composed of a combination of seven "bits", each bit having a binary state of 1 (one) or 0 (zero). For example, the binary equivalent for the ASCII character "1" is 0110001 (decimal 49). ASCII characters are transmitted one bit at a time, starting with the 1st (least significant) bit. During data transmission the marking condition is used to denote the binary state 1, and the spacing condition for the binary state 0. The signal is considered marking when the voltage is more negative than minus three volts with respect to ground, and spacing when the voltage is more positive than plus three volts. Most computers use 8-bits (1 byte) for data communications. The 8th bit is sometimes used for a type of error checking called paritychecking. Even parity binary characters have an even number of 1's, odd-parity characters have an odd number of 1's. When parity checking is used, the 8th bit is set to either a 1 or a 0 to make the parity of the character correct. The CR10 ignores the 8th bit of a character that is receives, and transmits the 8th bit as a binary 0. This method is generally described as "no parity". To separate ASCII characters a Start bit is sent before the 1st bit, and a Stop bit is sent after the 8th bit. The start bit is always a space, and the stop bit is always a mark. Between characters the signal is in the marking condition. Figure 6.7-1 shows how the ASCII character "1" is transmitted. When transmitted by the CR10 using the SC32A RS232 interface spacing and marking voltages are positive and negative, as shown. Signalvoltages at the CR10 l/O port are 5V in the spacing condition, and 0V in the marking condition. BAUD RATE BAUD RATE is the number of bits transmitted per second. The CR10 can communicate at 300, 1200, 9600, and 76,800 baud. In the Telecommunications State, the CR10 will set its baud rate to match the baud rate of the computer/terminal. Typically the baud rate of the modem/computer/ terminal is set either with dip switches, or programmed from the keyboard. The instrument's instruction manual should explain how to set it. DUPLEX Fullduplex means that two devices can communicate in both directions simultaneously. Half duplex means that the two devices must send and receive alternately. Full duplex should always be specified when communicating with Campbell Scientific peripherals and modems. However, communication between some Campbell Scientific modems (such as the RF95 RF modem) is carried out in a half duplex fashion. This can affect the way commands should be sent to and received from such a modem, especially when implemented by computer software. To overcome the limitations of half duplex, some communications links expect a terminal sending data to also write the data to the screen. This saves the remote device having to echo that data back. lf, when communicating with a Campbell Scientific device, characters are displayed twice (in pairs), it is likely that the terminal is set to half duplex rather than the correct setting of full duplex. 6-7

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238

SECTION
6.
g.PIN
SERIAL INPUT/OUTPUT
START
BIT
ltrsel
7
DATA
B
S
23456
EIGHTH
STOP
7 Btr
Brr
SPACE
(POSIIVE
VOLTAGE)
BINARY
STATE
MARK
(NTCRIVE
VOLTAGE)
lf
the
computer/terminal
is
configured as
DCE
equipment (pin 2 is
an
input
for
RD),
a
null
modem cable
is
required.
See
the
SC32A
manual for details.
6.7.3
COMMUNICATION PROTOCOUTROUBLE
SHOOTING
The
ASCII
standard defines an alphabet
consisting
of
128
ditferent characters where
each
chaiacter
corresponds
to a
number, letter,
symbol, or control code.
An ASCII character is a binary
digitalcode
composed of
a
combination
of
seven
"bits", each
bit having
a
binary state
of
1
(one) or
0
(zero).
For example, the binary equivalent for the ASCII
character
"1"
is
0110001
(decimal 49).
ASCII characters are
transmitted one
bit at
a
time,
starting with
the
1st (least significant) bit.
During data transmission
the
marking condition
is used to denote
the
binary
state
1,
and
the
spacing condition for
the
binary state
0.
The
signal
is
considered
marking when the voltage
is more negative
than
minus three volts with
respect
to
ground, and spacing when
the
voltage
is more positive
than
plus three volts.
Most
computers
use
8-bits
(1
byte)
for
data
communications. The 8th
bit is sometimes
used for
a
type
of error checking
called
parity-
checking.
Even parity binary
characters
have
an
even
number
of
1's, odd-parity characters
have an
odd
number
of
1's.
When
parity
checking
is used,
the 8th
bit
is
set
to
either
a
1
or
a
0
to
make the parity of the
character
correct.
The
CR10 ignores
the
8th bit of
a
character
that
is receives, and transmits the 8th
bit as a binary
0.
This method is generally
described
as
"no parity".
To separate ASCII characters
a
Start
bit
is
sent
before
the
1st bit, and a Stop
bit
is
sent after
the
8th
bit.
The
start bit is always a space, and
the
stop bit is always
a
mark.
Between characters
the
signal
is
in
the
marking condition.
FIGURE
6.7-1. Transmitting the
ASCII
Character
1
Figure 6.7-1 shows how the ASCII
character
"1"
is
transmitted.
When
transmitted
by
the
CR10
using
the SC32A
RS232 interface spacing and
marking voltages
are
positive
and
negative, as
shown.
Signalvoltages
at
the CR10
l/O port
are 5V in the spacing condition, and 0V
in
the
marking condition.
BAUD RATE
BAUD RATE
is
the
number
of
bits transmitted
per
second.
The
CR10
can communicate
at
300,
1200, 9600, and 76,800
baud.
In
the
Telecommunications
State,
the
CR10 will
set
its
baud rate
to
match
the baud
rate of
the
computer/terminal.
Typically
the
baud rate
of
the modem/computer/
terminal
is set either with dip switches,
or
programmed
from the keyboard. The
instrument's
instruction manual should
explain
how to set
it.
DUPLEX
Fullduplex
means that two devices can
communicate
in both
directions
simultaneously.
Half duplex means that the
two devices
must send
and receive
alternately.
Full duplex should always
be specified when
communicating
with Campbell
Scientific
peripherals
and
modems.
However,
communication
between
some
Campbell Scientific
modems (such as
the
RF95 RF modem) is carried
out
in
a
half duplex
fashion.
This
can
affect
the
way commands should be sent to
and
received
from
such a modem, especially
when
implemented
by computer software.
To
overcome the
limitations of
half duplex,
some
communications
links
expect
a
terminal
sending data to also write
the
data to
the
screen.
This saves
the
remote
device
having
to
echo that data
back.
lf, when communicating
with
a Campbell Scientific device, characters
are displayed
twice
(in pairs), it is likely that
the
terminal
is set
to
half
duplex
rather than
the
correct
setting of
full
duplex.
6-7