
ZENO
®
-3200 USER MANUAL
Coastal Environmental Systems (206) 682-6048
Page 237
Determine exactly what is contained in a sensor's data message. If not completely certain, store
and/or view the entire sensor's message by storing the whole message in a single string.
What Are Power & Communication Requirements?
Determine the correct port type required (RS232, RS485, etc.), baud rate, number of start bits,
number of stop bits required to talk to the sensor. If the sensor requires a lot of power and total
power is limited, determine the necessary warm-up time for the sensor and its required voltage.
Establishing Basic Communication with the Sensor
Storing and/or Displaying A Received Sensor Message as a Single String
If there is difficulty in retrieving the data from a sensor, store the entire received string from the
sensor in a single string. If a string is received, this will indicate that the communication
parameters are valid and that the problem is in parsing the received string. If no message is
received, the problem is likely to be communication settings, timing, or hardware.
The following Script Record example illustrates capturing an entire message from a sensor (up to
50 characters) after a polling command is sent to it (in this case, a linefeed character).
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: STRING 1 ( 50 )
Line 2: SEND "\n"
Line 3: RECEIVE 1000, "%s", S1
>
Once you know you have communication with the sensor by receiving an entire message from the
sensor, you can modify the Script Record to parse the message further.
278
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: STRING 3 ( 50, 10, 10 )
Line 2: FLOAT 4
Line 3: SEND "\n"
Line 4: RECEIVE 1000, "%s", S1
Line 5: RECEIVE 0, "\r\n%6.0f,%9.4f,%9.5f,%9.5f,%s,%s", F1, F2, F3, F4,
S2, S3
>
278
Remember to add more Value Declaration Commands to store floating-point or long integer data or both.
Comentarios a estos manuales