11 - 8 11 - 8
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
BEEP
Instruction
BEEP
• The buzzer sounds from the console’s built-in speaker.
Syntax
BEEP
Examples
BEEP
Description
• The BEEP instruction rings the buzzer for a certain duration as executing PRINT CHR$(7).
• The BEEP instruction can be executed only by the port specified as a console by the DIP
switch of the communication module’s main system. It is not for the output destination
switching by the ZODV instruction.
Program Example
10 ' Rings the buzzer 10 times
20 FOR I=1 TO 10
:
' Repeats 10 times
30 BEEP
:
' Rings the buzzer
40 PRINT I;"times"
:
' Displays the count
50 FOR J=0 TO 200
:
' Pauses by looping
60 NEXT J
70 NEXT I
80 END