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