#script #blockly #buzzer #beep #sound #dropdown #list #toggle #switch #alarm
Buzzer - Pattern Control on Condition
A sample project which demonstrates sounding the buzzer when two Boolean variables are true. Good for simple or complex conditions where an audible alarm is required.
Select a buzzer pattern using the drop down list:
- Index 1 = Continuous
- Index 2 = Fast Beep (ON for 100ms, OFF for 100ms)
- Index 3 = Medium Beep (ON for 500ms, OFF for 500ms)
- Index 4 = Slow Beep (ON for 1000ms, OFF for 1000ms)
A beep label will also appear when the buzzer should be audible (visibility + converter).
Buzzer control and condition(s) via a Global script. Buzzer control is assigned to an internal Buzzer_Control variable:
- 0 = Buzzer OFF
- 1 = Buzzer Continuous ON
- 2 = Buzzer Oneshot
To allow an external device or PLC to control the buzzer condition, assign the Buzzer_Control variable to a device tag/address. If required also remove the Global scripts where indicated in the Global script comments.
Buzzer may not be audible in simulation depending on your PC environment.
Target Model:
GP4000, SP5000, SP5000X, ST6000, STM6000, PS5000, PS6000, PC/AT
Target Size:
Recommended for use of more than 480 by 272 pixels.


