Quark-elec Manual
https://www.quark-elec.com
24 of 28
2018
V3
Switching relay & mode checking
Switching relay ON
DKYn
n=1, Relay 1; n=2, Relay
2;
n=3, Relay 3.
G031 will reply with the relay state information in
the following format:
‘
Port n ON
’,---working in self-lock mode
‘
Port n has been triggered’
---working in latching
mode
Where n is the relay number.
Switching relay OFF
GBYn
n=1, Relay 1; n=2, Relay
2
n=3, Relay 3.
G031 will reply with the relay state information in
the following format:
‘
Port n OFF’
, ---working in self-lock mode
‘
External triggered, no action on relay n’
, ---
working in latching mode
Where n is the relay number.
Check relay working
mode
RMODE
G031 will reply with the relay working mode
information in the following format:
‘
MMMM1MMMM2’
, where MMMM could be INCH
or SELF. INCH refers to Latching control mode
(relay will act for 3 seconds and then revert to the
normal position), and SELF refers to Self-lock
mode.
For example,
INCH1SELF2
means, relay 1 works
in Latching control mode and relay 2 works in
Self-lock mode.
Check relay working
status
WHOACTIVE
G031 will reply with the relay working status
information similar to the following
format:
‘
R1, R2, R3: ACTIVE; DEACTIVE; ACTIVE.
’
Where ACTIVE means the related relay has
been triggered (COM port connected to NO port),
DEACTIVE means the related relay is on the
normal status.
One-off relay switch
toggling
ONOFFRnxxx#
n=1, Relay 1; n=2, Relay
2.
xxx range from 001 to
999, indicating the delay
time in seconds.
*From Aug 2018, this
command has changed to
be ‘
ONOFFRnxxx#’
; this
allows the maximum time
can be 999 seconds.
For example, by receiving
ONOFFR175#
, the first
relay (Relay 1) will be triggered on for 75 seconds
and then switched off, whether G031 is working in
Latching mode or in Self-lock mode. G031 will
reply with the relay information in the following
format:
‘
Port 1 is ON and will be OFF 75 seconds
afterwards‘
.
This is a one-off command, only valid for one time
action. The APP does not support this command,
so the operator should use SMS to send this
message.