ZigBee is a wireless technology, which provides low power consumption of devices in personal area network (WPAN) for low data rate applications that require long battery life and secure networking. ZigBee gives effective ways of supporting of QoS (Quality of Service), functionality and manageability, because ZigBee devices can transmit data over long distances (more than 100 meters) by passing data through a mesh network of intermediate devices to reach more distant ones. In this paper is proposed a simulation framework for ZigBee technology. It implements modified algorithm for the construction of a priority-based and energy-balanced WPAN network and visualize the method of transmission. The results of the conducted experiments are given.