How can i do if I want to expose instead of words, real, dint, whatever.. should I pass all the data to word first? or there is some easier way to do it? also how can a create many different packages? I mean if a want to expose 10 reals from register 0 to 20 and then 5 int from register 20000 to 20005 and so on.. I say this because I was using Ecockpit and it is so easy, you can create expose the register and you put the register addres from it starts and then the type of data, it doesnt matter if it now just word data.
1. You need to convert all data to word (Integer types can convert automatically, so you may skip those) just use built in functions like _TO_WORD 2. Be careful when working with reals, since these are floating point formats, you may want to use multipliers. Word type does not understand floating point format 3. You can set the number of registers you want to expose, from the Slave device settings. See video at 5:26. However, i don't think you can expose just potions of the register buffer
Unfortunately i cant help you with this my own because of licencing issues, but you can download it from the internet. Just search Modbus Master Simulator