Adcom A723, A720 manual Code Description Parameters Returns

Page 44

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 16-bit integers (first the PN and

 

Enable Register. This command returns the 16-bit Pending Notifi-

 

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 8-bit char (Notification Type), two

 

 

 

16-bit integers (first the lower limit and

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 16-bit integer is irrele- vant.

Image 44
Contents ADC N ADC N Contents Contents Introduction What are addIT devices?Installation issues Conventions ItalicsChapter Using the Base Station Opening the packagesInstalling the base station Installing the receiverInstalling the power supply AddIT Power SupplyReplacing the fuse Configuring the softwareUsing the RTU Installing the RTU Shows an addIT RTUShows what a typical RTU field installation looks like More about the LED tool Configuring an addIT RTU in the addVANTAGE software RTU batteryMaintaining and servicing the RTU Changing the battery Chapter Chapter Performing Advanced Functions Device series Understanding connectorsReceiver connector RTU connectors Pins on an I/O Connector Top ViewAddIT RTU Power Connector Top View Configuring the devicesGeneral format of an answer General format of a commandSerial communication protocol SET Ownid nnnn Using terminal commandsSeries 1 devices SET Ownid SET PMP bl bhSET PMP 63 SET Slot 3600SET Rssi value SET Freq freq stepSET Freq 467112500 Querying the actual configuration parameters SET RssiSeries 2 and 3 devices CmdsFreq Freq 433925000Freq Freq 433925000 25000Slot PMP PMP 65 72 193 cm193 CM 1 SSTDEV ReplDEL Repl 5667DEL Data 5666 12/12/1998 Data b1 b2 b3 ... bnDd mm yyyy hh mm ss si ft d1 d2 ... dn dd mm yyyy Dn csFrame 38 description Data 6367 30/4/1999 Frame 39 descriptionRoute DataImme Fdev InfoTemp = internalTem p Anlg Info 255 0 18/4/1999 21511 1.3 0 0 0 91146 900 Code Description Parameters Returns Sampling methods are defined by three bits, as follows Return result depends on the control byte see table. However A720B and A723, but see also the comments in Remote on Performing Advanced Functions Command Code Definitions Port 193 TX 6789 Port 7/5/1999 183422193 RX 6789 B #234 BA#7851 BA 15190 BBlst 30/8/2001 160341 VERVER 1.3 VER 2.0Notifications Returned errors list Command line interpreterDevice descriptors and storage handler Real time clockNotifications Chapter Appendix. Specifications Parameter Min Typ Max UnitTransmitter all measurements made on a 50 Ω resistive load Chapter Chapter Index INFO, 41 OWNID, 26 PMP PMP What a base station contains Xmit Colophon Credits and ColophonCredits