Hello, Walt ...
Here's some more info ... It seems that there were three main Royal Bavarian lines. The Maximillian Line ran to Salzburg which is only about 24 miles from Ampflwang. Ampflwang produced coal which was hauled out by train. So, it's possible that this loco would have been used for that purpose.
The Three Bavarian Main Lines
With the nationalisation of the Munich-Augsburg route in 1844 the Bavarian state railway era began. In the beginning the Royal Bavarian State Railways concentrated on the construction of 3 main lines:
* Ludwig's South-North Line (Ludwig-Süd-Nord-Bahn), 548 km long and built between 1844 and 1853. It ran from Lindau near Lake Constance via Kempten, Augsburg, Nuremberg and Bamberg to Hof near the present Czech border and linked to the Saxon railway network.
* Ludwig's Western Line (Ludwigs-West-Bahn), which was 100 km long, built from 1852 to 1854 and opened in sections. It ran from Bamberg via Schweinfurt and Würzburg to Aschaffenburg with a link into the state of Hessen.
* Maximilian's Line (Maximilians-Bahn) which ran from Ulm to Augsburg and from Munich to Kufstein with a branch to Salzburg in Austria. It was built from 1853 to 1860 and was 188 km long.
In the following years the state railway network was continually expanded. Gaps were closed and from the middle of the 1880s the countryside was connected up with an extensive branch line network. These were generally known as the Lokalbahnen or 'local lines'.
All the best,
Richard
see attachment