Eng] 15.2. [Dksf 48.5 Iu] The Control Of The Relay - NetPing 8/PWR-220 v4/SMS User Manual

Hide thumbs Also See for 8/PWR-220 v4/SMS:
Table of Contents

Advertisement

NetPing server room environmental monitoring solutions and IP power distribution units.

[ENG] 15.2. [DKSF 48.5 IU] The Control of The Relay

The interface of URL-encoded command in the device can be used for the integration with web applications without  the SNMP protocole. The
relay control is available via the interface of URL-encoded commands.
REQUEST OF THE RELAY STATE
http://192.168.0.100/relay.cgi?rN
where: 
N — the relay number is indicated after ?r.
RETURN VALUES
Error (wrong format of the request or wrong relay number):
relay_result('error');
Successful execution of the command
relay_result('ok', 1, 1);
where:
The first argument: always 'ok' (upon request error - 'error')
The second argument: the source of the relay control:
0 — OFF;
1 — ON.
The third argument: the instantaneous current state of the relay ("0" or "1"), considering  the functioning of the "
reset, impulse output, etc.
THE RELAY SWITCHING
Change of control source, as well as manual switching on and off of the relay:
http://192.168.0.100/relay.cgi?rn=s
After ?r the relay number is indicated, after = the number of mode is indicated (the source of the control).
where:
n — the relay number;
s — the relay operation mode:
0 — Off;
1 — On.
Switching (inverting) the relay, on <-> off
http://192.168.0.100/relay.cgi?rn=f
The relay should be in the mode «
Short-term switching of the relay to the inverse state (issuing a reset pulse):
Copyright © NetPing east Co., Ltd / E-mail:
:
Manual off
» or «
Manual on
».
support@netpingdevice.com www.netpingdevice.com
/
/ Phone: +886-2-23121582
Watchdog
" module, activation of a

Advertisement

Table of Contents
loading

Table of Contents