whoa!!!
ok, were to start...........
unfortunatly, there is poor documentation of the modbus/brains systems, but, I do recommend you also watch the videos on those subjects as well.....
there is NO VB that will interface with TCP/IP modbus, you can ONLY access Ether via Brains or a plugin.
Each config is it's OWN animal..........
i.e. lets say that you want to read in discrete inputs 1-10 in cfg 0, and you want to read in Analog inputs in cfg2.
In cfg0, you would put them as discrete inputs register numbers is 10, range starts at 0 (or what ever the start range is for the DI, that will need to be in its decimal equivelant).
in cfg2, that would be a input holding type of data, register number would be how ever many inputs anlog your brining in, also its start range would be where ever the start range for analog starts at, lets say if only 4 inputs where possible, and pin 43 was the First input you could bring in as analog. further lets say the analog input range started at 3000, so in your config, you would put your start range as 3000, and since you want the first analog that would be LOCAL var 0.
the Local vars do not increment up, based on the cfgs below it........ they each live in thier own universe, and local var "0" is the start address, local var 1, is start address + 1.
scott