D-MAX DMC-20SEC Manual de usuario Pagina 20

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 28
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 19
20
Macro Sensors Tel. (856) 662-8000
11 May, 2006 DMC-A2 Series (ALD-00029)
www.macrosensors.com
Serial Communications (cont.)
Up to seven different registers can be specified in one text
string, provided that the total string length is no greater than 30
bytes long and the total length of the resulting printout is less
than 100 bytes long (including time stamp if selected).
For example, the following tab delimited output could be
specified to input display data, processed result, processed
channel 1, processed channel 2, peak, valley, and total, directly
into a spreadsheet:
swx~2(tab)~3(tab)~4(tab)~5(tab)~12(tab)~13(tab)~p$
When calculating the length of the printout, an allowance of 7
bytes for each register address should be used, plus any extra
text or separating characters such as tabs or spaces.
Note:
As a new line is usually represented by a carriage
return and a line feed, two bytes should be added for each
new line in text string length calculations.
Serial Output Module Settings
Setting the 1st digit to 2 and the 2nd digit to 0 [CAL] [20X]
accesses the serial communications output module properties:
baud rate, parity, transmit time delay, and address settings.
Baud Rate
The baud rate range is selectable from 600 to 38400 baud. The
default baud rate is 9600.
600.
1200.
2400.
4800.
Parity
The default parity setting is [oFF]. Parity [odd] or [EVEn] can
also be selected.
Transmit Time Delay
The transmit time delay restricts the meter from transmitting
a reply to a slow or busy master device (PC, PLC, etc.) by
providing time delays of 2, 20, 50, or 100 milliseconds for all
serial modes except ASCII (Code 3 set to XX0).
The ASCII Mode uses message terminating characters:
* = 2 milliseconds.
$ = 50 milliseconds.
Address
The default address setting is 1, but can be set to anywhere
between 1 and 255.
9600.
19200.
38400.
Serial Communications Hardware
Pinouts & Interconnections
RS-232 Interconnections
Hardware Requirements
The following hardware is required to set the meter up for
simple RS-232 communications (see Figure 9):
DMC-A2 Series meter with RS-232 serial output module option
installed.
RJ-11 to DB-25 interface connector (and possibly a DB-25 to
DB-9 interface connector depending on PC serial port).
Standard 4-wire cable with male RJ-11 connectors (see Figure
10 and 11, and Tables 6 and 7 for a wiring diagram and pin
descriptions).
PC running a terminal program.
Printing Restrictions
When printing, any alphanumeric ASCII character can be used
within the following restrictions:
The $ and * characters are reserved for the terminating
character at the end of the string and cannot be used as part
of the text string.
The total string length must be no greater than 30 bytes long.
This includes spaces, tabs, carriage returns, line feeds, and
the terminating character. There must be a separator space
between the register address X and the start of the string.
This separator space does not have to be included in text
string length calculations.
Any number following a ~ character will be interpreted as a
register address. During a printout the register's current value
will be printed out in this position.
The ASCII character \ is treated as a special character in the
print string.When a \ is encountered, a * is printed in its place
(* is reserved as a terminating character and normally can
not appear anywhere in the text string). This allows the print
output of one meter to be connected to another meter that is
operating in the ASCII mode.
For example, if the print string reads:
swx sw3 ~5\ sw4 ~12\ sw6 ~2\$
The printer prints the following:
sw3 (current register value)* sw4 (current register
value)*
sw6 (current register value)*
Vista de pagina 19
1 2 ... 15 16 17 18 19 20 21 22 23 24 25 26 27 28

Comentarios a estos manuales

Sin comentarios