Using the pulse counter in start-stop counter mode, Pulse, Value – Siemens AC75 User Manual

Page 520: Arameter, Ac75 at command set

Advertising
background image

AC75 AT Command Set

20.9 AT^SSCNT

s

AC75_ATC_V01.002

Page 520 of 569

10/30/06

Confidential / Released

3

The effect of value 3 depends on the selected counter mode:

If

AT^SCCNT

, parameter

<mode>

= 0 (Start-Stop counter mode), then

<action>

type 3 stops the pulse counter and displays, as "

^SSCNT

" URC, the

number of pulses counted until this time.

If

AT^SCCNT

, parameter

<mode>

= 1 (Limit counter mode), then

<action>

type 3 immediately stops the pulse counter without indicating the "

^SCCNT

"

URC. This action has the same effect as the command

AT^SCCNT

=0,0.

Measurement result of the pulse counter in Start-Stop mode, indicated within the "

^SSCNT

" URC, if

AT^SCCNT

,

parameter

<action>

=2 or 3. The value range of

<pulse>

is 32 bits (2

32

-1).

0...4294967295

Number of pulses counted.

Note

• Measurement accuracy: In Start-Stop mode, you can achieve 100% accuracy if you take care that pulse trans-

mission begins after the start command (

AT^SSCNT

=0 or 1) has returned OK and ends before the stop com-

mand (

AT^SSCNT

=3) is issued.

20.9.1

Using the Pulse Counter in Start-Stop Counter Mode

<pulse>

(num)

at^sccnt=1,0

Open pulse counter and enable Start-Stop counter mode.

OK

at^sscnt=0

Reset and start pulse counter from 0.

OK

at^sscnt=2

Request value.

OK

^SSCNT: 0000003254

"

^SSCNT

" URC indicates number of pulses counted.

at^sscnt=2

Request value.

OK

^SSCNT: 0000010024

"

^SSCNT

" URC indicates number of pulses counted.

at^sscnt=2

Request value.

OK

^SSCNT: 0000015134

"

^SSCNT

" URC indicates number of pulses counted.

at^sscnt=3

Request value and stop pulse counter.

OK

^SSCNT: 0000021020

"

^SSCNT

" URC indicates number of pulses counted until this time.

at^sscnt=2

Request value.

OK

^SSCNT: 0000021020

"

^SSCNT

" URC still indicates the count of the last run.

at^sscnt=1

Restart pulse counter at the value of the last run.

OK

at^sscnt=2

Request value.

^SSCNT: 0000022123

"

^SSCNT

" URC indicates number of pulses incremented from the last

run.

Advertising