S — set parameter – Vaisala WMT700 User Manual

Page 114

Advertising
background image

User's Guide ______________________________________________________________________

S — Set Parameter

The S command defines new data messages and changes values
of the WMT700 parameters. For parameter names and the
allowed and default values, see Appendix D, Configuration
Parameters on page 205.

You can also use the S command to configure data messages. For
instructions, see Appendix D, Configuration Parameters, on page
205.

If you try to set an invalid value for a parameter or an invalid item
for a data message, the response depends on the messages
parameter. If messages are enabled (messages parameter is set to
1), WMT700 responds with an error message. If the messages
parameter has been set to 0, WMT700 does not send any response
to set parameter command. You can also fetch the most recent
error data in the configuration mode with the ERRORS
command, see section ERRORS — Get Error Codes and Counts
on page 116.

NOTE

Do not switch the power supply off immediately after the S command.
Power should be on for at least 5 seconds after the S command, or the
updated parameters values are not saved.

S x,y

where

x

=

Any parameter in Appendix D, Configuration Parameters, on
page 205

y

=

Value of the parameter

Example 1

In this example the baud rate is set to 2400 bps, parity to even,
data bits to 8 bits, and stop bits to 1 bit. WMT700 needs to be
RESET before the communication settings take place.

S com1_baud,2

S com1_parity,1

S com1_data,8

S com1_stop,1

NOTE

You can also change or view the serial port settings with the BAUD
command. With the BAUD command the communication settings take
place immediately.

112 __________________________________________________________________ M211095EN-E

Advertising