Zhang Sixun, although innovative, built upon the efforts of those before him. It was Han dynasty scientist and engineer Zhang Heng (78-139 AD) who invented the first hydraulic-powered (i.e. with waterwheel and clepsydra) armillary sphere. In addition, it was the Tang dynasty era Buddhist monk and engineer Yi Xing (683-727 AD) who invented the first hydraulic-powered armillary sphere that incorporated the escapement mechanism. Yet Zhang Sixun applied some innovative ideas of his own in order for his hydraulic-powered armillary sphere to function. His astronomical armillary sphere and clock was much like that of the later statesman Su Song (1020-1101 AD), incorporating the scoop-bearing driving-wheel and gearing, together with 19 clock jacks to report and sound the hours. His device also employed the use of liquid mercury in the closed circuit of the clepsydra and waterwheel instead of water, because water would freeze easily during winter, while mercury could assure smooth and continual function and time-keeping during the cold season. Later Ming dynasty clocks had the same concern in mind when they employed the use of falling sand grains to push the wheel drive. The later Su Song wrote that after Zhang's death, no one could replicate what he had achieved, much like with Su Song himself and his astronomical clock tower after his own death.
At the beginning of the Thai-Phing Hsing-Kuo reign-period (+976) the Szechuanese Chang Ssu-Hsun , a student in the Bureau of Astronomy, invented an astronomical clock (lit. armillary sphere, hun i) and presented the designs to the emperor Thai Tsung, who ordered artisans of the Imperial Workshops to construct it within the Palace. On a kuei-mao day in the first month of the 4th year (+979) the elaborate machine was completed, and the emperor caused it to be placed under the eastern drum-tower of the Wen-Ming Hall.
The system of Chang Ssu-Hsun was as follows: they built a tower of three storeys (totalling) more than ten feet in height, within which was concealed all the machinery. It was round (at the top to symbolize) the heavens, and square (at the bottom to symbolize) the earth. Below there was set up the lower wheel (ti lun), lower shaft (ti chu), and the framework base (ti tsu). There were also horizontal wheels (heng lun), (vertical) wheels fixed sideways (tshe lun), and slanting wheels (hsieh lun, i.e. oblique gearing); bearings for fixing them in place (ting shen kuan), a central coupling device (chung kuan) and a smaller coupling device (hsiao kuan)(i.e. the escapement); with a main transmission shaft (thien chu). Seven jacks rang bells on the left, struck a large bell on the right, and beat a drum in the middle to indicate clearly the passing of the quarter(-hours).
Each day and night (each 24 hours) the machinery made one complete revolution, and the seven luminaries moved their positions around the ecliptic. Twelve other wooden jacks were also made to come out at each of the (double-)hours, one after the other, bearing tablets indicating the time. The lengths of the days and nights were determined by the (varying) numbers of the quarters (passing in light and darkness). At the upper part of the machinery there were the top piece (thien ting), upper gear(-wheel or -wheels)(thien ya), upper linking device (thien kuan; another part of the escapement), upper (anti-recoil) ratchet pin (thien chih), celestial (ladder?) gear-box (thien tho), upper framework beam carrying bearings (thien shu), and the upper connecting-chain (thien thiao). There were also (on a celestial globe?) the 365 degrees (to show the movement of) the sun, moon, and five planets; as well as the Purple Palace (north polar region), the lunar mansions (hsiu) in their ranks, and the Great Bear, together with the equator and the ecliptic which indicated how the changes of the advance and regression of heat and cold depend upon the measured motions of the sun.