This chart, which you can import into any 9.4 Basic (or better) strategy, uses this newer integration kit (from 2015) and just one subroutine call: O22Modbus04ReadInputRegistersAsInt to get you started.