Examples of aM, aC and aD commands - WXT530

WXT530 Series User Guide

Document code
M211840EN
Revision
F
Language
English (United States)
Product
WXT530
Document type
User guide

The parameter order in messages:

Wind (M1): Dn Dm Dx Sn Sm Sx

PTU (M2): Ta Tp Ua Pa

Rain (M3): Rc Rd Ri Hc Hd Hi Rp Hp

Supv (M5): Th Vh Vs Vr Id

Comp (M): Wind PTU Rain Supv (parameters in above order)

The order of the parameters is fixed, but you can exclude any parameter from the list when configuring the transmitter.

The parameter order in SDI-12 mode:

Analog in (M4): Tr Ra Sl Rt Sr

The device address is 0 in all examples.

Example 1:

Start a wind measurement and request the data (all 6 wind parameters are enabled in the message):

0M1!00036<cr><lf>

(measurement ready in 3 seconds and 6 parameters available)

0<cr><lf>

(measurement completed)

0D0!0+339+018+030+0.1+0.1+0.1<cr><lf>

Example 2:

Start a concurrent pressure, humidity and temperature measurement and request the data:

0C2!000503<cr><lf>

(measurement ready in 5 seconds and 3 parameters available, for aC command device address not sent as a sign of a completed measurement)

0D0!0+23.6+29.5+1009.5<cr><lf>

Example 3:

Start a precipitation measurement and request the data:

0M3!00006<cr><lf>

(6 parameters available immediately, thus the device address is not sent)

0D0!0+0.15+20+0.0+0.0+0+0.0<cr><lf>

Example 4:

Start a supervisor measurement with CRC and request the data:

0MC5!00014<cr><lf>

(measurement ready in one second and 4 parameters available)

0<cr><lf>

(measurement completed)

0D0!0+34.3+10.5+10.7+3.366DpD<cr><lf>

Example 5:

Start a composite measurement and request the data. The configuration of the parameter set is such that 9 parameters are available. Thus start measurement command aM can be used. Due to the 35-character limit in response message, aD0 returns only 6 parameters. The remaining parameters are retrieved with aD1.

0M!00059<cr><lf>

(measurement ready in 5 seconds and 9 parameters available)

0<cr><lf>

(measurement completed)

0D0!0+340+0.1+23.7+27.9+1009.3+0.15<cr><lf>

0D1!0+0.0+0+0.0<cr><lf>

Example 6:

Start a composite measurement and request the data. The configuration of the parameter set is such that 20 parameters are available. Thus Start concurrent measurement command aC is used. Due to the 75-character limit in response message, aD0 returns only 14 parameters. The remaining parameters are retrieved with aD1.

0C!000520<cr><lf>

(measurement ready in 5 seconds and 20 parameters available, for aC command device address not sent as a sign of a completed measurement))

0D0!0+069+079+084+0.1+0.6+1.1+21.1+21.7+32.0+1000.3+0.02+20+0.0+0.0<cr><lf>

0D1!0+0+0.0+1.3+0.0+0+77.1<cr><lf>