Select your printer model

Parameters are refined by the selected printer.

addSound method


Adds buzzer sound setting to the command buffer.

Syntax

 
addSound(pattern, repeat, cycle);

Parameter

pattern

Value

Description

PATTERN_NONE

Stop

PATTERN_A

Pattern A (optional external buzzer)

PATTERN_B

Pattern B (optional external buzzer)

PATTERN_C

Pattern C (optional external buzzer)

PATTERN_D

Pattern D (optional external buzzer)

PATTERN_E

Pattern E (optional external buzzer)

PATTERN_ERROR

Error sound pattern (optional external buzzer)

PATTERN_PAPER_END

Paper empty sound pattern (optional external buzzer)

PATERN_0

Pattern 0 (built-in buzzer)

PATERN_1

Pattern 1 (built-in buzzer)

PATERN_2

Pattern 2 (built-in buzzer)

PATERN_3

Pattern 3 (built-in buzzer)

PATERN_4

Pattern 4 (built-in buzzer)

PATERN_5

Pattern 5 (built-in buzzer)

PATERN_6

Pattern 6 (built-in buzzer)

PATERN_7

Pattern 7 (built-in buzzer)

PATERN_8

Pattern 8 (built-in buzzer)

PATERN_9

Pattern 9 (built-in buzzer)

PATERN_10

Pattern 10 (built-in buzzer)

undefined

Pattern A (optional external buzzer)

repeat

Value

Description

0

Unlimited

1 to 255

1 to 255 times

undefined

Once

cycle

Value

Description

1000 to 25500

Specifies the buzzer sound cycle in milliseconds.

Return value

Return value

Object type

Printer object

Printer

HybridPrinter2 object

HybridPrinter2

Exception

Exception

Object type

Parameter " ... " is invalid

Error

Supplementary explanation

  • This API does not work in the page mode.
  • The buzzer function cannot be used with the drawer function.
  • Cycle is only available when PATTERN_0 to PATTERN_10 is specified in pattern.
  • When PATERN_0 is specified in pattern, specify a value in cycle within the range from 1000 to 6000.
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

Epson ePOS SDK includes patented or patent pending functions. The contents must not be disclosed to third parties.


Epson ePOS SDK for JavaScript

Jump to the top