Chapter 5  ________________________________________________________________ Operation 
 
VAISALA _______________________________________________________________________ 57 
Message Polling 
In the polled (CLOSE) mode, PWD22/52 sends a data message when the 
host computer transmits a polling command. The message polling mode 
is selected with the following command: 
AMES Message_number 0 
Valid range 0 ... 7. Selects the corresponding 
message as the default
 polled message. 
Negative message numbers are converted to 0. 
Use the negative or zero interval to disable 
automatic sending when messages are polled. 
 
For example: 
AMES 0 0 
 
The above command selects message 0 for default answer for the polling 
and cancels the automatic sending. 
The polling command format is the following: 
C
R
E
Q
PW id message_number
C
R
 
R
ASCII character 13 hex (Carriage Return) 
Q
ASCII character 05 hex (CTRL-E). 
Selected in the configuration. 
R
ASCII character 13 hex (Carriage Return) 
 
When the PWD22/52 unit number one (ID=1) is polled for message 
number 3 (status), the command format is the following: 
C
R
E
Q
PW 1 3 
C
R 
 
This format can be used in all cases. 
Use character 1 as the ID if the ID has not been set but a specific 
message type is polled. This allows the PWD22/52 software to 
distinguish the ID from the message number. 
Use the 
C
R
E
Q
PW
C
R
 command only if one PWD22/52 unit is on the line (no 
ID is set) and the default message is wanted.