Modbus protocol, specifications and in depth tutorial