With <setdcdivedepthalarm> a dive depth in metres (given as a real number) is set at which the dive computer shall give a certain alarm. As many <setdcdivedepthalarm> elements as needed can appear one after the other to support different alarm signals at different dive depths.
<dcalarm>, <dcalarmdepth>
(see also <setdcdata>)
<!-- reaching a depth of 30 metres the dive computer shall give an acoustic signal -->
<setdcdivedepthalarm>
    <dcalarmdepth>30.0</dcalarmdepth>
    <dcalarm>
        <!-- alarm to be given for 10 seconds -->
        <period>10.0</period>
        <alarmtype>1</alarmtype>
    </dcalarm>
</setdcdivedepthalarm>
<!-- reaching a depth of 40 metres the dive computer shall give another acoustic signal -->
<setdcdivedepthalarm>
    <dcalarmdepth>40.0</dcalarmdepth>
    <dcalarm>
        <!-- this alarm is to be acknowledged -->
        <acknowledge/>
        <alarmtype>2</alarmtype>
    </dcalarm>
</setdcdivedepthalarm>