Jannell A,
you can not send data before a node has joined the network.
the ZDO state machine ONLY handles the joining and leave and has nothing to do with transmitting data or doing binding, so I can not recommend that you modify anything in it.
Do you modifications in Beeapp.c.
Secondly none of the demo application we provide do any kind of binding without you pressing a button, so what you need to re-write is whether you allow the button press to send the binding command.
I can only recommend that you read and do the steps in the Beestack Application Development user's guide in order to get some ZigBee programming experience. If you want to learn about how the buttons work then I would recommend that you read and do the steps in the ZigBee Application User's guide first.
BR,
Mads