beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 228

background image

B

EEP

(

FREQ

,

PERIOD

)

V

LINX

F

IELDBUS

G

ATEWAY

M

ANAGER

U

SER

M

ANUAL

P

AGE

212

B

EEP

(

FREQ

,

PERIOD

)

A

RGUMENT

T

YPE

D

ESCRIPTION

freq

int

The required frequency in semitones.

period

int

The required period in milliseconds.

D

ESCRIPTION

Sounds the terminal’s beeper for the indicated period at the indicated pitch. Passing a value of
zero for

period

will turn off the beeper. Beep requests are not queued, so calling the function

will immediately override any previous calls. For those of you with a musical bent, the

freq

argument is calibrated in semitones. On a more serious “note”, the Beep function can be a
useful debugging aid, as it provides an asynchronous method of signaling the handling of an
event, or the execution of a program step.

F

UNCTION

T

YPE

This function is active.

R

ETURN

T

YPE

This function does not return a value.

E

XAMPLE

Beep(60, 100)