There is free PLC book here. Based on Allen Bradley PLC's but also has good general theory.