We study how to apply the PLC (programmable logic control) in the control system of piston door on the railway passenger cars, by which we achieve the control of door system and realize guarding against extrusion and self-motion belock when the train velocity beyonds 5km/h.