Timers, Counters, Error codes – 2N M2M Solution 2N SmartCom - User Manual 1.9.0 User Manual

Page 125

Advertising
background image

125

2N TELEKOMUNIKACE a.s., www.2n.cz

®

Timers

There are three ways how to make use of condition timing. See below.
Timer not set
The action is executed when the condition is evaluated as true. For re–execution, the
condition must be false and then true again.
Timer
Set the

string, where identifies a timer. Number

is the timer delay in

t[60]

t

60

seconds. The timer setting options are 5 – 4294967s.
The action is executed when the condition is evaluated as true. For re–execution, the
condition must be false and then true again, and the set timeout must be over.
Continuous timer
Set the

string, where identifies a timer, indicates a continuous timer and

t[c120]

t

c

number

is the timer delay in seconds. The timer setting options are 5 – 4294967s.

120

The action is executed when the condition is evaluated as true. The action is
re–executed after the timeout if the condition is true. The condition need not be
evaluated as false before re–execution.

Counters

There 5 virtual counters altogether in the terminal program for counting actions or
storing current values for later computation. The following two parameters are used for
control:

Counter incrementing
Enter string

The ' ' parameter defines that the counter value increases by the

d[1].

d

value included in the brackets (one step). You can enter 1, 5, 254, etc. and also
negative values, which will be subtracted from the set value.
Counter setting
Enter string

The ' ' parameter defines the counter setting value and number

s[4658].

s

sets the counter value.

4658

Error Codes

This table includes the error codes you can use for UDF setting. An incorrect command
is signalled by ERROR <err_code>. The table helps you identify the type of error.

<err_code>

Name

Description

1

UDF_RESP_ERROR

General error

2

UDF_RESP_ERROR_NO_FREE_SLOT

No space for new
record

3

UDF_RESP_ERROR_SYNTAX_ACTION_SEPARATOR

Separator ':' not
found

Advertising