The invention discloses a program-controlled pipeline pulp sampling apparatus and a sampling method thereof. The program-controlled pipeline pulp sampling apparatus comprises a maintenance valve, a pipeline washing valve, a backwash valve, a
pinch valve and a PLC, the maintenance valve is communicated with a pulp pipeline, and the maintenance valve, the pipeline washing valve, the backwash valve and the
pinch valve are connected through a cross joint, one end of the
pinch valve is connected with the cross joint, the other end of the pinch valve is connected with a sample
pipe, one end of the pipeline washing valve is connected with the cross joint, the other end of the pipeline washing valve is connected with a first pipeline, one end of the backwash valve is connected with the cross joint, the other end of the backwash valve is connected with a second pipeline, one end of the first pipeline far from the pipeline washing valve and one end of the second pipeline far from the backwash valve are respectively connected to two interfaces of a tee joint, the remaining interface of the tee joint is connected with a
water source, and the output end of the PLC is electrically connected with the pipeline washing valve, the backwash valve and the pinch valve respectively. The apparatus has the advantages of low cost, simple structure and accurate and reliable sampling.