Adcon A720 User Manual
Page 44

CHAPTER 4
Performing Advanced Functions
44
•
The Command Code specifies the operation that will be 
applied to the selected channel. They are described in the 
table below:
Table 3. Command Code Definitions for the Analog Command
Code
Description
Parameters
Returns
0000
RSM – Read Sampling Method. This command reads the current 
programmed sampling method for all analog input channels.
None.
The current sampling methods and the 
result (OK or ERROR). See also the table 
that follows.
0001
SSMMI – Set Sampling Method to Minimum. The specified ana-
log channel will be instructed to store the lowest sampled value.
The channel number.
Result (OK or ERROR).
0010
SSMMA – Set Sampling Method to Maximum. The specified ana-
log channel will be instructed to store the highest sampled value.
The channel number.
Result (OK or ERROR).
0011
SSMS – Set Sampling Method to Sum. The specified analog chan-
nel will be instructed to store the sum of all sampled values.
The channel number.
Result (OK or ERROR).
0100
SSMAA – Set Sampling Method to Arithmetic Average. The speci-
fied analog channel will be instructed to store the arithmetic 
average of all sampled values.
The channel number.
Result (OK or ERROR).
0101
SSMCA – Set Sampling Method to Circular Average. The specified 
analog channel will be instructed to store the circular average of 
all sampled values.
The channel number.
Result (OK or ERROR).
0110
SSMF – Set Sampling Method to First. Only the first sampled 
value will be stored in each slot.
The channel number.
Result (OK or ERROR).
0111
SSML – Set Sampling Method to Last. Only the last sampled 
value will be stored in each slot.
The channel number.
Result (OK or ERROR).
1000
RNS – Read Notification Status
a
. If no notification was pending,
this command should return an error. If one was pending, the 
notification is cleared.
The channel number.
Returns the time when the threshold 
was reached (in standard time format) 
and the result (OK or ERROR).
1001
RPNNER – Read the Pending Notifications and the Notification 
Enable Register. This command returns the 16-bit Pending Notifi-
cations and the Notification Enable Registers; the Port Number 
has no significance for this command.
None.
Two 16-bit integers (first the PN and 
then the NE register) and the result (OK 
or ERROR).
1010
DAN – Disable Any Notification.
The channel number.
Result (OK or ERROR).
1011
RNTTL – Read Notification Type and Thresholds/Limits.
The channel number.
One 8-bit char (Notification Type), two 
16-bit integers (first the lower limit and 
then the higher limit) and the result (OK 
or ERROR). If only a threshold was set, 
then the second 16-bit integer is irrele-
vant.
