Instructions
UM-0085-B09  DT80 Range User Manual  Page 360 
RG 
  Output to Serial Printer/ Display 
The serial channel can also be used to output selected channels to a serial printer or display. This job will measure two 
voltages once a minute and print the values to a serial printer: 
  BEGIN"SOUP" 
   RA1M 
   1V(W,=1CV) 2V(W,=2CV) 
   1SERIAL("{%9.3f[1CV] mV %9.3f[2CV] mV^M^J}",W) 
  END 
  Output to Another DT80 
You can also connect a serial channel to the RS232 host port on a second DT80 (or other dataTaker model). 
The following job will send commands to a second logger to read two immediate channels, then interpret its fixed format 
response, which will be similar to: 
  D,000043,"",2006/02/13,18:16:54,0.191528,0;*,0,22.2172,-12.2002;0063;F2F3 
  BEGIN"LAMBDA" 
   PS=RS232,57600 
   RA30S 
   1..2CV(W)=-999 
   1SERIAL("\e{/H/R 1*TK 1+TK^M}\m[,0;*,0,]%f[1CV],%f[2CV]",W) 
   1..2CV("~degC") 
   LOGON 
  END 
In this case we first send /H/R to ensure that the other logger is in fixed format mode and has data returns enabled, then 
the three immediate channel definitions. When parsing the response, we look for the exact string ",0;*,0," followed 
immediately by two comma separated floating point values. 
  Schedule Triggering (1) 
In this example a barcode reader transmits a packet consisting of an STX character (ASCII 01) followed by a 7 digit 
ASCII integer. Once a valid barcode packet is received, the job will measure three voltages and log these, along with the 
barcode. 
  BEGIN"ZAMBESI" 
   PS=RS232,9600 
   RA1SERIAL"\001" 
   1SERIAL("\001%7d") 'read and log barcode 
   1..3V 'log voltages 
   LOGON 
  END 
  Schedule Triggering (2) 
In this example a GPS unit produces an NMEA 183 data stream, e.g.: 
  $GPGLL,4250.5589,S,14718.5084,E,092204.999,A*2D 
This job will read and log the latitude degrees (positive for north), latitude minutes, longitude degrees (positive for east) 
and longitude minutes. Each read is triggered by the $GPGLL header at the start of each transmission. 
  BEGIN 
   PS=RS232,38400 
   RA1SERIAL"$GPGLL" 
   1SERIAL(",%2d[1CV]%f[2CV],%c[3CV],%3d[4CV]%f[5CV],%c[6CV]",2,W) 
   IF(3CV><82.5,83.5){1CV=-1CV} 'S = ASCII 83 
   IF(6CV><86.5,87.5){4CV=-4CV} 'W = ASCII 87 
   1CV("Lat deg",FF0) 2CV("Lat mins",FF4) 
   4CV("Long deg",FF0) 5CV("Long mins",FF4) 
  END 
Note: Remember that if DeTransfer is used to send commands then two backslash characters must be sent each time a backslash is 
required. (see 
Control String – Example (P355)). 










