Campbell SAT ARGOS Manual de usuario Pagina 242

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 394
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 241
ZENO
®
-3200 USER MANUAL
Coastal Environmental Systems (206) 682-6048
Page 234
The checksum Special Value, sCS, may not be referenced before the
SET_CHECKSUM command is used.
If a Special Value (checksum sCS or the sensor address sID) is referenced in the value list, the
ZENO
®
-3200 will check that the value was received correctly. If a specified Special Value is not
properly received, the received sensor data line will be rejected.
If the string is not received in the specified time, the ZENO
®
-3200 will flag an error and quit the
Command Line. If no values are received by a Script Record, the ZENO
®
-3200 may retry the
Script Record if the Sensor Retry Count was specified within the Sensor Menu.
275
For asynchronous sensors, a RECEIVE statement is specified with no prior SEND statement.
Special Values
sID
The sensor address, from Line Item #17 the Sensor Menu.
276
This is read-only. It is treated as a
string value, so the format field in the Format Specifier string must also be a string format field;
otherwise, a syntax error will be declared.
In
SEND commands, the sensor address is formatted as specified, and transmitted.
In a RECEIVE command, the ZENO
®
-3200 checks that the value read from the received string
equals the sensor address specified in Line Item #17 of the Sensor Menu.
277
If the values are
different, the ZENO
®
-3200 flags an error, and quits the Comma.
An example of the RECEIVE Command Line might look something like this:
RECEIVE 1000, “\r\n\CS%1s,%f,%f,%s,%ld,%f,%1s,\CS%2s”, sID, F1,
F2, S1, L1, F3, S2, sCS
This RECEIVE Command Line instructs the ZENO
®
-3200 to check that the first comma-
delimited field matched the sensor ID.
sCS
The checksum calculated according to the SET_CHECKSUM command. If no SET_CHECKSUM
command has been used in a previous Command Line, it is not valid to use the “\CS” codes
within a script format string. The sCS identifier is used with a long integer data field within a
Format Specifier in a
SEND Command Line; but can only be used with string data fields in
RECEIVE Command Lines.
In a
SEND Command Line, the checksum is calculated as a long integer, formatted as specified,
and transmitted.
In a
RECEIVE Command Line, the checksum is read from the received string, and checked
against a calculated value. If the values differ, the ZENO
®
-3200 does not use the rejects the
received sensor data and quits the Command Line.
Format Specifier
The Format Specifier is a string used to describe the format of a message to be transmitted from the
ZENO
®
-3200 using the SEND command, or received from a serial sensor using the RECEIVE command.
The techniques used to describe the format are based upon those used in the C programming language.
275
Refer to Section 10.3.5.
276
Ibid.
277
Ibid.
Vista de pagina 241
1 2 ... 237 238 239 240 241 242 243 244 245 246 247 ... 393 394

Comentarios a estos manuales

Sin comentarios