124
repeat:(Optionalparameter,Objecttype:String)
Specifiesthenumberofrepeats.
cycle:(Optionalparameter,Objecttype:String,Whennotspecified:1000)
Specifiesthebuzzersoundingcycle(inunitsofmilliseconds)
Return value
Exception
Example
Setting Description
0 The buzzer does not stop.
1 to 255 Number of repeats
undefined
(When not specified)
One time
After“0”isspecifiedforrepeat,ifyouwanttostopthebuzzer,executethisAPIfunctionand
specifyPATTERN_NONEforpattern.
Setting Description
1000 to 25500 1000 to 25500 milliseconds
undefined 1000 milliseconds
PATTERN_AtoPATTERN_E/PATTERN_ERROR/PATTERN_PAPER_ENDisdisregarded.
Return value Object type
ePOS-Print Builder Object ePOS Builder
Exception Object type
Parameter " ... " is invalid Error
<script type="text/javascript" src="epos-print-3.x.x.js"></script>
<script type="text/javascript">
<!--
function buildMessage() {
var builder = new epson.ePOSBuilder();
builder.addSound(builder.PATTERN_A, 3);
}
//-->
</script>
To repeat the sound pattern A three times: