modbus: added single port config for PC-based testing.
modbus: use readonly switches for discrete inputs.