in my .net application i’m accessing SNAP pack EB1 thought modbus since i will have a lot of migration to do, i whiling to make a tool to import acquisition rack configuration to my app using otg file.
for DIN and DOUT there is the module and channel number that allow me to guess modbus adress
but not for AIN/OUT
so my question is there a way to guess analogic modbus adresse from and otg file? or is there a better way ?
Once you have the memory map address of the analog point you want, then use the Modbus calculator in PAC Manager to resolve the Mobus address of your AIN/AOUT.
Here you can see the same MMP address from the unit in the calculator.
@bferlicot have you checked out the C++ or Python OptoMMP libraries?
They have to be able to calculate these memory addresses, so the math they use might be able to solve your problem too.
The OptoMMP protocol guide goes into even more detail, but basically once you know the base address and module / channel offsets it should be just one line of math to find the exact memory address – something like this:
Once you have found the Opto memory address just follow the conversion steps described by the Modbus calculator and you should have your unit ID and register for any given module / channel.