Before you do that, please explain what you mean by locking up?
simply changing the processor may not solve your issue.
Has the plc program been running without any issues?
has the program been changed?
has any maintenance been done lately?
has any sensors been changed?
is the processor faulting out?
I would go online with the plc and see what's going on and where the program is stopping.
the program may simply be looking for a sensor to make before going to the next step in the program. if the sensor is going bad, the machine will sit there forever until the sensor is made.
regards,
james