Application of macro control PLC in the durability test of displacement sensor