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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 28
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 17
18
Macro Sensors Tel. (856) 662-8000
11 May, 2006 DMC-A2 Series (ALD-00029)
www.macrosensors.com
Multiple Write
The multiple write feature of the DMC-A2 meter allows multiple
registers to be written to in a single ASCII command string. It is
similar to a normal write command but with the following
differences:
After the first data value, a separator character is inserted
instead of the message terminator. The next register address is
then specified, followed by another separator character and the
next data value. This procedure is repeated for each new
register. The message terminator is added after the last data
value in the string.
Any number of registers can be written to using the multiple write
feature, as long as the total length of the command string does
not exceed 73 ASCII characters, including spaces and the
message terminator.
Figure 8 shows two examples of the multiple write command.
Start
Character
Meter
Address
Read/Write
Command
Register
Address
Separator
Character
Data
Value
Message
Terminator
SW6,10000,7,20000,8,30000$
Start
Character
Meter
Address
Read/Write
Command
Register
Address
Separator
Character
Data
Value
Message
Terminator
Start
Character
Meter
Address
Read/Write
Command
Register
Address
Separator
Character
Data
Value
Message
Terminator
S6wL -32766 M 32766*
Figure 8 – Examples of Multiple Write Command
Serial Communications (cont.)
Note:
The multiple write feature cannot be used with special
ASCII registers (H to X).
Special ASCII Registers
DMC-A2 Series meters can have 6-digit displays using 15-
segment display LEDs. Table 5 shows which characters can be
used with a 15-segment display LED along with the associated
ASCII value.
Registers H to W – Display Customizing
Text can be customized on the following text displays to suit a
particular application:
Register H – Text display for peak.
Register I – Text display for valley.
Register J – Text display for total.
Register K – Text display for sub-total.
Register L – Text display for setpoint 1.
Register M – Text display for setpoint 2.
Register N – Text display for setpoint 3.
Register O – Text display for setpoint 4.
Register P – Text display for setpoint 5.
Register Q – Text display for setpoint 6.
Register R – Text display for overrange.
Register S – Text display for underrange.
Register T – Text display for channel 1.
Register U – Text display for channel 2.
Register V – Text display for channel 3.
Register W – Text display for channel 4.
The text string displayed by the meter can be 6 ASCII characters
long.
If a text string is read in the usual manner. For example, SRT$,
where:
S for the start character.
R for the read character.
T for the text display for Channel 1.
$ for the message terminator.
The meter responds by displaying the stored string: CH_1.
To customize the text string of the text display for Channel 1,
from CH_1 to Hello, issue the following command:
SWT Hello$
When the text display for Channel 1 is displayed on the meter,
instead of CH_1 being displayed, Hello is now displayed.
Register X – Print String
The print mode allows the meter to print data from any meter
register directly to a serial printer, or to a PC where it can be
imported into a spreadsheet.
Register X is a special register that allows you to specify the text
and data stored in specific registers to be printed out when a
print command is issued by the meter while in the print mode.
Through the serial port, register X can be either written to or
read from using a terminal program on a PC.
Writing To Register X
Writing to register X tells the meter to print the data stored in one
or more of the meter's registers when the print command is
issued. To get the meter to print, the printer must be connected
to the meter through the serial port and the meter must be
programmed to [XX3] in Code 3.The data to be printed depends
on how the meter has been programmed, for example, to display
a flow rate and total.
The total length of a write string can be up to 30 ASCII
characters long
See Printing Restrictions below.
Reading From Register X
Reading from register X allows you to check your settings prior
to removing the PC from the serial port and connecting to a
printer. Register X can be read in the normal manner (i.e.
SRX$).
Example of Writing To Register X
The following example shows a write to register X with the meter
set to display flow rate and total flow of channel 1 in Code 2.
swx Rate = ~2 (add carriage return and line feed)
Total = ~16$
The above write to register X means the following:
swx: Start writing to register X.
Rate =: Tells the meter to print the word Rate =.
Vista de pagina 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 27 28

Comentarios a estos manuales

Sin comentarios