TCG120-4_R1.3
–
May 2022
Page 36
9.3.
List of HTTP API commands
TCG120-4 supports following HTTP commands (case sensitive):
Command
Description
r
n
=xxx
Turn relay
n
ON (xxx=on) or OFF (xxx=off)
(
n
is 1 or 2 for the respective relay)
R1=on
–
will turn relay 1 ON
R2=off
–
will turn relay 2 OFF
r1=on&r2=on
–
will turn all relays ON
r1=off&r2=off
–
will turn all relays OFF
r
n
=tg
Toggle relay
n
(
n
is 1 or 2 for the respective relay)
r2= tg
–
will toggle relay 2
r1=tg&r2=tg
–
will toggle relay 1 and 2
r
n
=pl
Pulse relay
n
(
n
is 1 or 2 for the respective relay)
R1=pl
–
will pulse relay 1
r1=pl&r2=pl
vn
f
=10.0
Set Min of analog input to 10.0
(
f
is 1 or 2 for the respective input)
vn1=10.0 will set Min for analog input 1
vx
f
=20.0
Set Max of analog input to 20.0
(
f
is 1 or 2 for the respective input)
vx2=20.0 will set Max for analog input 2
vy
f
=1.0
Set Hys of analog input to 1.0
(
f
is 1 or 2 for the respective input)
Vy1=1.0 will set Hys for analog input 1
sn
pt
=30.0
Set Min of sensor
to 30.0
(
p
is 1,2,3 or 4 for the respective sensor
t
is 1 or 2 for the respective parameter of sensor)
sn12=30.0 will set Min for sensor 1, parameter 2
sx
pt
=40.0
Set Max of sensor
to 40.0
(
p
is 1,2,3 or 4 for the respective sensor
t
is 1 or 2 for the respective parameter of sensor)
sx42=40.0 will set Min for sensor 4, parameter 2
sy
pt
=2.0
Set Hys of sensor
to 2.0
(
p
is 1,2,3 or 4 for the respective sensor
t
is 1 or 2 for the respective parameter of sensor)
sy31=2.0 will set Hys for sensor 3, parameter 1
delsen=xxxx
Notification delay for sensors
(xxxx is between 0 and 3600)
delanl=xxxx
Notification delay for analog inputs
(xxxx is between 0 and 3600)
deldig=xxxx
Notification delay for digital inputs
(xxxx is between 0 and 3600)
dda1=xxxx
Low to high delay for digital input 1
(xxxx is between 0 and 3600)
ddd1=xxxx
High to low delay for digital input 1
(xxxx is between 0 and 3600)
dda2=xxxx
Low to high delay for digital input 2
(xxxx is between 0 and 3600)
ddd2=xxxx
High to low delay for digital input 2
(xxxx is between 0 and 3600)
dataf=x
Data format XML/JSON for HHTP Post
–
0 XML, 1 JSON
Summary of Contents for TCG120-4
Page 1: ......
Page 46: ...TCG120 4_R1 3 May 2022 Page 46 Appendix C Fig 1 Fig 2...