
Philipp Matthäus Hahn
The cylindrical calculating machines of the german clergyman Philipp Matthäus Hahn (biography) were the first fully functional four-species mechanical calculating machines. Hahn was a skillful mechanician, who was engaged in making clocks and planetariums. He needed a calculating device, in order to calculate parameters of his machines, that's why about 1770 he started to design a calculating machine, the first working copy of which was ready as in 1773, but was demonstrated as late in 1778. Till the end of his life, Hahn manufactured about 5 devices, only two of them survived to the present day After his death, several calculating machines by his design were created by his apprentices, in the photo below you can see a machine of Hahn, made by Johann Christoph Schuster.

A copy of the calculating machine of Hahn (made by Johann Christoph Schuster)
Hahn certainly has been acquainted with the described in Theatrum arithmetico-geometricum of Leupold machine of Leibniz, and that's probably the reason to use the stepped drum of Leibniz in the construction of his device. The arrangement of the device has also some similarities with the Leupold's calculating machine.
The first copies of the machine had 10 digital positions, the latter had 12 digital positions. The main part of the mechanism of each digital position is a small stpped drum, mounted on an axis, which can be moved upwards and downwards.

The calculating machine of Hahn, a drawing
During the rotation of the mechanisms of the machine by means of the handle in the middle of the lid, stepped drum will engaged with the wheel of the main counter, which are also attached to vertical axes, and according to the vertical position of the appropriate stepped drum, the wheel will be rotated to 0, 1, ... 9 teeth.
The dials are graduated with 2 scales. The outer ring of digits is black and is used during the adding and multiplication, the inner one is red, and is used during subtraction and division. The digits of the inner scale actually are complementing to 9 of those in the outer scale (i.e. below 0 is 9, below 1 is 8, etc.).
The entered in the input mechanism (the stepped drums) number is transferred to the main counter by rotating of the handler. There is also a additional counter, which counters the revolutions of the handle. The module of the additional and main counter is separated by the calculating module (module with the stepped drums) in separate ring. This means, that the calculating mechanism is separated by the displaying mechanism. Thus, rotating the ring of the counters, we actually can move the multiplier (divisor), during the multiplication (division). This moving can be controlled by a special arrow-pointer.
An adding operation can be done thus:
1. The dials must be set to 0 (if it is necessary). By rotating the axes of the main counter, we set the first addend in the bigger dial (with black digits).
2. Then by pulling the axes of the stepped drums we set other addend.
3. By rotating of the handle to 1 revolution, the number is transferred to the main counter and the result can be seen in the windows of dials.
The subtraction can be performed in similar way, but the minuend is set according to the red digits, while the subtrahend is set by pulling the axes of the stepped drums. After the rotating if the handle to 1 revolution the result can be seen in the windows of dials.
The multiplication can be done (by performing successive additions) thus:
1. The dials must be set to 0 (if it is necessary). The multiplicand is set by pulling the axes of the stepped drums.
2. The handle must be rotated to the revolutions, equal to the number of the units of multiplier (the number of the revolutions can be seen in the small dials).
3. Then we have to multiply the multiplicand by the tens of the multiplier, so we have to shift the multiplicand one digital position to the left, by rotating the ring with the dials.
4. The handle must be rotated to the revolutions, equal to the number of the tens of multiplier.
5. If it is necessary, the same actions must be repeated for hundreds, thousands... of the multiplier.
The division is done in the way, similar to the multiplication, but are used the red digits of the dials and is successive subtractions.
The calculating machine of Hahn became popular in Germany in the end of the XVIII century and was demonstrated to the Emperor and described in the press.