It does Simon. I've been using this code for years but it was co-written by my predecessor and another software engineer. The time has come to write a new one. I've never really done much with mathematical calculations with PLC's before. Just simple data comparrison and movement.
Basically it's a code and anti-code generator. It gives you a 5 digit code and you must give it the correct 5 digit 'answer' back.