It happened in the area of the Glenside station around 2:30 p.m.
Service on the Lansdale/Doylestown (R5) and Warminster (R2) Regional Rail lines was affected. Normal service has since resumed.
The conductor who was hit was taken to Abington Hospital in an unknown condition.
An identity has not been released.