Hi Miha,
Please take as reference the KW41 MyWirelessAPP beacon enabled example. You can set the beacon enabled modifying the c and h files.

KW41 MyWirelessApp Beacon Enabled example. app.c
C:\NXP\MKW41Z_ConnSw_1.0.2\boards\frdmkw41z\wireless_examples\ieee_802_15_4\mwa_coordinator_be

KW01 Coordinator example app.c
C:\Freescale\KW01_Connectivity_Software_1.0.0\ConnSw\examples\ieee_802_15_4\MyWirelessApp
Hope it helps.Please let me know if you have more questions.
Best Regards,
Mario