MesCom
– Workshop Manual – D6000/i14/V10
© Dycon Ltd 2014
-
25
7.2.2 SWITCH
Change the start of an output and report the latest status of the
listed points.
Access Level: Control
9876 SWITCH <pointA> <pointB> <pointC> <value>
<pointA>
Output name or number.
ALL supported: No
<pointB>
Optional output name or number.
Upto 3 points
<pointC>
Optional output name or number.
<value>
Value to set the output to, state name can also be
used.
9876 SWITCH Op1 Op2 Off
Set Op1 and Op2 to the Off state
MesCom: Op1: Off Op2: Off 04/04/12,16:15:25
9876 SWITCH Op1
Default action toggle Op1 (if on switch off and vice versa)
MesCom: Op1: On 04/04/12,16:15:25
9876 SWITCH 10 11 1
Set point 10 and 11 to a value of 1
MesCom: Op1: On Op2: On 04/04/12,16:15:25
9876 SWITCH Op1 elephant
Op1 doesn’t have a state labels elephant
MesCom: Failed 04/04/12,16:15:25
Notes
Attempting to switch an input will have no effect unless it is a timer/counter in
which case it will set the input value to the given number.
Outputs can be configured to notify on changes so all users will get a message,
therefore when sending this command it is likely you will get multiple responses.
If the last value is not a number or a valid state name for the first input, then a
fail message will be returned by the MesCom.
If only a single point is given with no value, the default action is to toggle the
output (if on switch off and vice versa).