L
We are trying to connect an Janitza energy meter with Simulink on the pc to retrieve it's data that it is measuring. We've already been able to make a connection between the 2, but we don't get the right answer back. We don't really know how ModBus TCP/IP works.
We searched a lot on the internet and we know it exists of:
- a transaction identifier
- protocol identifier
- length field
- unit identifier
- function code
- data bytes
The only thing that the Janitza manual says is that for example the address for retrieving the frequency of the grid is 800. We tried using a constant in Simulink and were able to retrieve an answer but not the answer we needed so de encoding went wrong.
So now we are trying to figure out what we have to fill in the above parameters in order to address the frequency. I will use Velamod to check if it works before I implement it in Simulink.
I think explaining with some screenshots would be better but I can't find how to do it here. So if anybody thinks he could help I could send him these screenshots.
Thanks for reading.
Louis Casteleyn
<b>Moderator's Note:</b> At present you cannot upload screenshots to the forum. I suggest you use something like Dropbox and upload the screenshots there for people to download.
We searched a lot on the internet and we know it exists of:
- a transaction identifier
- protocol identifier
- length field
- unit identifier
- function code
- data bytes
The only thing that the Janitza manual says is that for example the address for retrieving the frequency of the grid is 800. We tried using a constant in Simulink and were able to retrieve an answer but not the answer we needed so de encoding went wrong.
So now we are trying to figure out what we have to fill in the above parameters in order to address the frequency. I will use Velamod to check if it works before I implement it in Simulink.
I think explaining with some screenshots would be better but I can't find how to do it here. So if anybody thinks he could help I could send him these screenshots.
Thanks for reading.
Louis Casteleyn
<b>Moderator's Note:</b> At present you cannot upload screenshots to the forum. I suggest you use something like Dropbox and upload the screenshots there for people to download.