
ZENO
®
-3200 USER MANUAL
Coastal Environmental Systems (206) 682-6048
Page 226
Examples of using Line Item #25 include:
Only collecting data from a sensor when a specific condition exists.
Using the General Serial Sensor type to send initialization commands to the sensor if no data is being
collected from the sensor.
12.2.3. The General Serial Script Menu (In Brief)
The General Serial Script Menu is accessed from the Zeno Program Menu by typing the command
G{ENTER}. Up to six independent scripts can be defined. Line Item #24 in the Sensor Menu refers to the
script number.
267
Each Script Record contains at least one Command Line, but it is more likely that a Script Record will
contain multiple Command Lines. A Script Record may look something like this:
GENERAL SERIAL SCRIPT MENU
(Cn/m) Change Line n to m (X) Delete this Script
(In) Insert Line n (Jn) Jump to Script n
(Rn) Remove Line n (N) Go to Next Script
(En) Erase Line n (P) Go to Previous Script
(L) Delete All Lines (XA) Delete All Scripts
(A) Insert After this Script (Z) Zeno Program Menu
(B) Insert Before this Script (H) Help
Script 1 of 1
Line 1: FLOAT 3
Line 2: LONG 1
Line 3: STRING 2 ( 6, 1 )
Line 4: SET_CHECKSUM SIMPLE, 256
Line 5: SEND “\r\n\CS%1s,DATA NOW:\CS%2x\x03”, sID, sCS
Line 6: WAIT 1000
Line 7: RECEIVE 1000, “\r\n\CS%*1s,%f,%f,%s,%ld,%f,%1s,\CS%2s”, F1, F2, S1,
L1, F3, S2, sCS
>
This Script Record example corresponds to the following actions for a sensor with address Q.
The ZENO sends the command <CR><LF>Q,DATA now:xx^C, where xx is a hexadecimal
checksum evaluated by summing the ASCII values of all characters from the Q to the final colon.
The ZENO waits 1000 ms before flushing the buffer.
The ZENO waits for up to 1000 ms further, and attempts to receive a string of the type:
<CR><LF>Q,15.2,55.999,YELLOW,256000,-15.3,F,xx^C
(For space-delimited, the RECEIVE command include spaces rather than commas in the format
specifier: “\r\n\CS%*1s %f %f.....”).
The ZENO tests that the checksum is correct.
267
Refer to Section 12.2.2.
Kommentare zu diesen Handbüchern