PLC control biscuit machine