OMNITEXT-240 User Manual
P a g e
|
17
Step 2 - the server responds with HTTP response message, which contains
“
set dc1=100
”
command as a brief text in the message body
Step 3 - new HTTP POST request is sent to the server to confirm the reception of the
“
set dc1=100
”
command.
Step 4 - the server sends new HTTP response, which includes
“set FIN”
in the message body.
This indicates that there are no pending commands and the session can be closed.
Step 5 - when the Push period timer expires, OMNITEXT-240 sends new HTTP POST request to
the server
Step 6
–
the server answers with
“set
FIN”
–
there is no pending commands and the session
can be closed.
HTTP Post command format: set yyy=xxx
Where:
yyy is the command; xxx is the parameter.
TCG240 supports following HTTP commands, they are case sensitive:
Command
Description
m
n=
x
Digital inputs mode
n
is 1-:-4,
x is 0-:-3, where
0 for Discrete (Open/Closed) mode 1 for Counter(Rising edge)
2 for Counter(Falling edge) 3 for Counter(Both edges)
dsam
n
=xxxx
Delay in samples for digital inputs
where
n
is 1-:-4 , xxxx is between 0 and 255
dc
n
=xxxx
Set initial value for counter,
n
is 1-:-4, xxxx is between 0 and 1 999 999
psseconds=
x
Set wakeup and polling interval, where x is
0 for 0.0625s
1
1 for 0.25s
2
2 for 0.5s
3
3 for 1s
4
4 for 2s
5
5 for 3s
6
6 for 4s
7
7 for 5s
8
8 for 6s
9
9 for 10s
10
10 for 15s
11
11 for 20s
12
12 for 30s
Logen=x
Enable/disable logger
–
0 disable, 1 enable
Logmode=x
Logger mode
–
0 Time, 1 Alarm, 2 Time&Alarm