Campbell Scientific PWS100 Present Weather Sensor User Manual

Page 73

Advertising
background image

Section 7. Operation

The Message_Interval parameter must also be defined from 0 second to 32767
seconds which is the rate at which the system will display the output message
and the period which statistics are calculated over (the factory and reset default
for ID 0 is 60 seconds). If the Message_Interval is 0 then it will set the
message polling mode (see Section 7.3.3, Message Polling for a description of
the manual data polling command). Setting the Message_Interval to less than
10 seconds will result in repeated data due to the 10 second measurement cycle
in the sensor (see Section 8.5).

The Message_Mode defines special functions and can be set to either 0 or 1.
Setting Message_Mode to 0 allows output to the serial port and stores the
‘MSET’ data history. Setting the Message_Mode to 1 prevents the output to the
serial port but stores the ‘MSET’ data. For message polling, mode the
Message_Mode should be set to 0.

By default (factory set and after reset of the system) the Message_Field
parameter for message_ID 0 is set up as described in Section 7.4.1.1, which is a
combination of message types. If no message field parameters are set, then no
output will be given, thus a particular ID can be cleared by using the above
method.

There are many fixed message types which are detailed elsewhere in Sections
7.4.1.1 to 7.4.1.40. Table 7-2 defines the possible message field parameters.

To view all current user messages set then leave all parameters blank as below:

MSET

The system will then output the current message in the form:

Message_ID Message_Interval Message_Mode Message_Fields
....
....

To view only the Message_ID of interest then leave all parameters blank apart
from Message_ID as follows:

MSET Message_ID

The system will then output the current message for that Message_ID in the
form:

Message_ID Message_Interval Message_Mode Message_Fields

e.g., for ID 0 set with a 10 second interval, serial port output and parameters
105 and 106 the output will be:

0 10 0 105 106

Note that the MSET command will output the parameters for all of the
message_IDs set. e.g if additional to ID 0 set above, ID 1 is set with a time
interval of 30 seconds, serial port output and with parameter 104 set the output
will be:

0 10 0 105 106
1 30 0 104

7-37

Advertising