AC75 AT Command Set

20.8 AT^SCCNT

s

<mode>(num)

0

Activates the Start-Stop counter mode.

 

After setting this mode, use AT^SSCNT and the <action> parameter to start

 

or stop the pulse counter or to read out the measured pulses.

1

Activates the Limit counter mode and immediately starts the pulse counter.

 

Parameter <limit> is mandatory for this mode.

 

 

<limit>(num)

 

1...65534

Number of pulses to be counted.

 

Parameter <limit> applies only to the Limit counter mode and is mandatory

 

for this mode. Once the given number of pulses is reached, the ME sends one

 

single URC "^SCCNT" which indicates the parameter <time>.

 

 

<time>(num)

 

1...4294967295

Time (in milliseconds) taken to count the number of pulses specified with

 

<limit>.

Note

Measurement accuracy: In Limit counter mode, the parameter <time> implies an inaccuracy <5ms.

20.8.1Using the Pulse Counter in Limit Counter Mode

This example assumes that a 1 kHz frequency is applied at the GPIO10 pin. Limit counter mode is enabled to request the time the pulse counter needs to count a specified number of pulses.

at^sccnt=1,1,1000

Open pulse counter, enable Limit counter mode, request the time

 

needed to count 1000 pulses.

OK

"^SCCNT" URC indicates the time taken to count 1000 pulses.

^SCCNT: 0000001047

at^sccnt=1,1,2000

Open pulse counter, enable Limit counter mode, request the time

 

needed to count 2000 pulses.

OK

"^SCCNT" URC indicates the time taken to count 2000 pulses.

^SCCNT: 0000002040

at^sccnt=1,1,10000

Open pulse counter, enable Limit counter mode, request the time

 

needed to count 10000 pulses.

OK

"^SCCNT" URC indicates the time taken to count 10000 pulses.

^SCCNT: 0000010043

at^sccnt=1,1,20000

Open pulse counter, enable Limit counter mode, request the time

 

needed to count 20000 pulses.

OK

"^SCCNT" URC indicates the time taken to count 20000 pulses.

^SCCNT: 0000020040

This example shows how to stop the Limit counter mode and close the pulse counter without waiting for the "^SCCNT" URC. Both methods have the same effect, it is up to you which one to use.

at^sccnt=0,0

Stop and close the pulse counter immediately, without "^SCCNT" URC

 

being indicated.

OK

Stop and close the pulse counter immediately, without "^SCCNT" URC

at^sscnt=3

 

being indicated.

OK

 

 

 

AC75_ATC_V01.002

Page 518 of 569

10/30/06

Confidential / Released

 

 

Page 518
Image 518
Siemens AC75 manual Using the Pulse Counter in Limit Counter Mode