Specifications
Software Crestron SIMPL Windows
Toggle Example: Volume Mute
A Toggle symbol provides an easy way to implement a single-button volume mute.
Shown is a mute button being connected to the ‘clock’ input. Each press of this
button will cause the signal ‘Mute_On’ to alternate between logic high and low.
Typically this output signal would be routed to a muting relay inside of a volume
controller such as the ST-VC. Also note the use of the ‘reset’ input, which forces the
volume to unmute any time the user presses the volume up or down buttons.
Toggle Example: volume mute
Vol_Down
Vol_Up
Mute_State
Mute_Off
muteA
muteB
muteC
Volume Controller
Mute On/Off
set
reset
clock
out
out*
Toggle
in1
in2
out
OR
press1
press2
press3
press4
press5
press6
press7
press8
CNRFHT30
A
volA
volB
volC
One word of caution: using a Toggle symbol in this manner would not be
recommended when controlling a device that itself provides only a toggling mute
function. For example, if you were controlling an AV Receiver via IR, it may have a
mute function that will Toggle between mute and unmute each time the command is
sent. In this case, you would not want a latching on/off signal, but instead you should
connect the mute button signal directly to the IR command. You might then be
tempted to use the Toggle symbol to provide realistic feedback on a Touchpanel,
showing the user what state the receiver was in. Be careful here as well, because it is
generally not recommended to provide state feedback unless you can be sure that it is
correct. Thus if you suspect that the feedback and the actual state of the receiver can
become ‘out of sync’ with one another, it may be best to provide momentary
feedback.
Toggle Example: Device Power On/Off
The last example used only the ‘out’ output signal from the Toggle to control mute
status. Sometimes both the ‘out’ and ‘out*’ outputs are required. Take for example
an RS-232 controlled video projector. Often such devices will have separate
commands for power on and power off. The program shown uses both outputs of the
Toggle to drive these commands. On each successive rising-edge of the
‘vproj_power’ signal, one of the power commands will be sent. Note of course that
the Toggle outputs are latching, but because RS-232 commands are only sent on the
rising-edge of the driving signal, this does not present a problem. However, if the
video projector were IR controlled, we would not want to program like this, since the
corresponding IR command would be sent continuously to the device. Instead, we
could add additional logic to create a short pulse from the Toggle outputs. This will
be covered later on in this manual.
48 • Crestron SIMPL Windows Primer – DOC. 6253