Turck has a programmable unit that can do exactly what you are requesting. They have an IP20 version that is very small and can communicate Modbus TCP to the main PLC. They can also communicate EIP as well. The IO is modular so you can select the IO combinations that you need. The BL20-PG-EN...