background image

"G" :: Get AP-16 Status

Syntax:

"!AP16", 

address

, "G"

Reply:

Single byte that indicates the AP-16+ status. See below.

AP-16+ status byte:

Bit

When 1

When 0

7

AP-16 is playing

AP-16 is idle (or ambient)

6

Playing looped mode

Playing single-shot mode

5

Playing named WAV file

Playing SFX or AUX file

4

Playing AUX file

Playing SFX file

3

BIT3 of file #

2

BIT2 of file #

1

BIT1 of file #

0

BIT0 of file #

Prop-1 Example:

  SEROUT Sio, OT2400, ("!AP16", %00, "G")
  SERIN  Sio, OT2400, ap16Status

"PS" :: Play SFX##.WAV File

Syntax:

"!AP16", 

address

, "PS", 

#

loops

Reply:

None

The 

"PS"

 (play SFX) command is used to play a specific SFX##.WAV file (0 to 15). The 

loops

 parameter is

used to specify the number of times to play the file (0 to 255); typically once (1).  To continuously repeat the
specified file until another play or reset command, use zero (0) as the 

loops

 parameter.

Prop-1 Example

  SEROUT Sio, OT2400, ("!AP16", %00, "PS", 1, 1)         

In this example, the AP-16+ at address %00 will play SFX01.WAV one time.  If the ambient Loop switch (

) is

closed and AMBIENT.WAV is on the SD card, it will restart when SFX01.WAV has finished playing.

"P?" :: Play Random SFX##.WAV File

Syntax:

"!AP16", 

address

, "P?", 

#

loops

Reply:

None

The  

"P?"

  (play random SFX) command is used to play a random SFX##.WAV file (00 to 15). The  

#

  para-

meter limits the file selection, which always begins with zero (SFX00.WAV).  For example, to randomly play
one of the files from SFX00.WAV through SFX04.WAV, the 

#

 parameter would be set to four (4).  As with the

"PS"

 command, the 

loops

 parameter specifies the number of times to repeat the file.  

Note that the AP-16+ maintains an internal play list so that – if using the same limit 

#

 in the 

"P?"

 command –

no file will be repeated until all within the range have played.

EFX-TEK  

  www.efx-tek.com  

  [email protected]

7

Summary of Contents for AP-16+

Page 1: ...l scale industrial control FEATURES BENEFITS Plays stereo WAV files 16 bit PCM up to 44 1kHz Files stored on standard SD card FAT or FAT32 format 24 stand alone files under manual control Optional aut...

Page 2: ...trol for speaker output D SD card socket N Speaker output 4 8 E Start input dry contact O Line level output F Start input 12 to 24 VDC P Pre play delay potentiometer G Start input PIR Q Post play dela...

Page 3: ...e g MP3 up sampling is not recommended as it can lead to audio artifacts in the form of clicks pops and noise in the up sampled file It is best to maintain or even lower the sample rate when from com...

Page 4: ...switch For example if the Random option switch is set to ON and the AUDIO SELECT switch is set to 7 the AP 16 will play one of the files in the range SFX00 WAV through SFX07 WAV Note that the Random...

Page 5: ...table below describes the function of each switch BR Sets the baud rate for serial control see below When OFF the baud rate is 2400 Prop 1 when ON the baud rate is 38400 Prop 2 Prop SX A1 Controls th...

Page 6: ...00 baud e g Prop 1 when the BR option is set to ON the AP 16 uses 38 4k baud e g Prop 2 Prop SX The following section details the serial commands for the AP 16 X Reset Syntax AP16 address X Reply None...

Page 7: ...lay or reset command use zero 0 as the loops parameter Prop 1 Example SEROUT Sio OT2400 AP16 00 PS 1 1 In this example the AP 16 at address 00 will play SFX01 WAV one time If the ambient Loop switch i...

Page 8: ...med WAV file command is used to play a WAV file by name which must conform to the DOS 8 3 file naming convention When using the PW command the WAV file extension is optional but the file name must be...

Page 9: ...k speed 50 to 200 Note that the maximum sample rate is 44 1kHz so a 44 1kHz file cannot be made to play faster Prop 1 Example SEROUT Sio OT2400 AP16 00 S 75 In this example the AP 16 at address 00 wil...

Page 10: ...is the major version number and YY is the minor version number If you have a Parallax Prop Plug and the Propeller Tool Software you may load this file and download it into the AP 16 the programming c...

Page 11: ...n Unit Min Typical Max Supply Voltage VIN 12 18 VDC Supply Current IIN 150 mA Output Power 18VDC 4 PO 18 20 W Output Power 18VDC 8 PO 10 12 W Output Power 12VDC 4 PO 13 W Output Power 12VDC 8 PO 8 W O...

Reviews: