10.5 Audio Player


Audio playing could play audio on HMI, it could support MP3 file in PI9000 series HMI. User needs to configure the relevant address, and triggers the address to play the MP3 audio file. The audio file need to be stored in the flash of 9000 HMI.

Operating procedures of configuration

1) Enabled audio set in [Project setting] -> [Extend]-> [Special expansion];

2) Click [Set] button to open [Audio settings] window, as below shows;

① File list: It shows the audio files added

② Operating buttons

 Add: Add a new audio file;

 Delete: Delete selected audio file;

③ Audio set: Click it to set all the audio files trigger mode;

3) Add new audio file as below picture shows;

① Audio file: Add the audio file into playlist

 MP3 file supported only

 The audio filesize should be less than 30MB

 The suffix .mp3 is necessary. The length of name should be less than 20(including .mp3)

 Audio file needs to be saved into the folder named mp3 in HMI flash, if not, it would not play. User could use the [CopyFile] script function to import audio files into the HMI flash.

② Priority

Configure the play priority of the audio file. When several audio files are triggered to play, it will be played according to the play priority. The smailler number has higher priority. When there is a audio with higher priority to be triggered, it will stop the current audio and play the audio has higher priority. After that, the lower priority file would be played.

③ Trigger mode: There are 3 kinds trigger mode to choose.

 Play according to time interval: set the interval time, for example 3 minutes, then it will play for each 3 minutes’ interval.

 Trigger to play: use a bit address (rising or falling signal) to play the audio file

 Play according to time: play the audio when the time is up.

④ Play settings: Set the play times and the cycle interval when it is triggered

4) Set control address for play audio;

① Address of audio playback

Below table describes each bit address function (including play, pause, etc). If the audio control address is HDW120, then specific function details are as shown in the table below.




Play control

HDX120.0 (0th bit)

Play control bit: Play the audio file when this bit address is triggered

HDX120.1 (1st bit)

Pause control bit: Pause play when this bit address is triggered, or resume playback after pause

HDX120.2 (2nd bit)

Stop control bit: Stop the play when this bit address is triggered

HDX120.3 (3rd bit)

Last audio: Play last audio when this bit address is triggered.

HDX120.4 (4th bit)

Next audio: Play next audio when this bit address is triggered.

HDX120.5 (5th bit)

Volume increase(not supported yet), increase by 10

HDX120.6 (6th bit)

Volume decrease(not supported yet), decrease by 10

Mode selection

HDX120.7 (7th bit)

once: Only play current audio file only one time

HDX120.8 (8th bit)

Single cycle: Repeat playing current audio file

HDX120.9 (9th bit)

Order: Play audio file orderly and stop as soon as the tas finished

HDX120.10 (10th bit)

Repeat in order: Repeat to play the audio file of the list

② Address of audio states

The audio play status address occupies a continuous 35 word addresses. If audio play status address is set as HDW200, the specific function allocation details are shown as below table





Play status

=0 : stop play

=1 : playing

=2 : pause play


Volume value

Range from 0 to 100(default value is 100, and it is not adjustable so fars


Audio file name

32 word addresses


1) The audio file needs to be stored in the flash of PI9000 series HMI.

2) Only PI9000 series HMI with audio module could support this function, and an external 3.5mm headphone is required.

Last updated