The design and implementation of "teaching-reproduction" algorithm for servo motor based on RFC 470 PLC