Fixed bug in register addressing.  The config takes modicon addresses which are 1-based, and before the fix it treated these as the straight addresses.  The change makes it so that the 1-based modicon address is converted to a 0-based real register address.