12-05-2018 04:46 AM
Hi everyone, i'm acquiring a data for interval of 1 sec and injecting the data into database for 5 min interval , for these two different kind of need, i went for master slave concept, this combination working perfectly.
But i have to transfer this data to third party application via modbus server.Third party application read the data only when it continuously transferring the input.
Datatype i'm injecting into database and datatype i transferring via modbus server is different. so in this case i'm not able to use the modbus server block as separate slave loop.
So i'm try to use this server block in master loop itself, due to continuous data transferring notification is not going to slave loops, I'm struggling lot here. Suggest me an idea to solve this issue.
Thanks in advance
12-05-2018 06:41 AM
@praveenrajk wrote:
Datatype i'm injecting into database and datatype i transferring via modbus server is different. so in this case i'm not able to use the modbus server block as separate slave loop.
Different how? If it is the same data, just formatted differently, then use the same Notifier in another loop to handle the Modbus. The Modbus loop can do the translation as it receives the data/
12-05-2018 11:52 PM
It is the same data, but i have to send the data before swapping, that means the raw data i'm getting from meter.
If in case the only way is swapping again, please tell me how to swap it back as original value.
I tried to my knowledge but it send empty data at destination, tell me where i'm doing mistake.
I attached vi of re swapping. Suggest me any other idea also if that makes program, i will be thankful for you.
12-06-2018 07:02 AM
Normally, you have to do some math to get the data into the 16 bits, typically a simple scale and maybe an offset to apply. Where is the specification for how the data is stored in the Modbus registers?
12-06-2018 10:49 AM
Here i attached the data format to be register in modbus register and the currently i'm getting values.