1/13/2019 9:37 AM | |
Joined: 5/14/2012 Last visit: 10/9/2024 Posts: 5 Rating: (0) |
Hello, browsing for information I found your example. I need to control several Danfoss FC 302 drives already wired for Modbus RTU communication. I am thinking to use a S7-1200 PLC and I found your example very interesting. I was wondring if you can share a working example where is possible to understand how to setup more than one drive and how to set the commands, speed, etc.. Thanks Max ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 1/14/2019 7:52:43 AMNew subject after splitting |
|
1/14/2019 9:25 AM | |
Posts: 3093 Rating: (323)
|
Controlling several fans (ebm-papst) using the SIMATIC S7-1200 via Modbus RTU |
This contribution was helpful to1 thankful Users |
1/14/2019 8:45 PM | |
Joined: 2/22/2016 Last visit: 10/6/2024 Posts: 141 Rating: (30) |
Hi Maxi2570 Here is another example. Regards, Ola Attachmentdanfoss.zip (753 Downloads) |
Please use the contact form in the link below if you will like to come in contact with me. I don't check personal messages frequently. |
|
This contribution was helpful to1 thankful Users |
10/1/2020 7:52 PM | |
Joined: 2/22/2016 Last visit: 10/6/2024 Posts: 141 Rating: (30) |
For users reading this post in the future, I recommend using the latest version of the library, it may be downloaded here: https://github.com/rexhip/rexhip/releases |
Please use the contact form in the link below if you will like to come in contact with me. I don't check personal messages frequently. |
|
11/3/2020 12:28 PM | |
Posts: 5 Rating: (0) |
Hi Ola, problem with this particular Register is that it has inverse word order: and i really dont know how to implement this in Siemens rtu setup. |
11/3/2020 2:40 PM | |
Joined: 2/22/2016 Last visit: 10/6/2024 Posts: 141 Rating: (30) |
Hi Korro What I can see in your attachment is big endian, the most significant byte is frist in the first register. So you shouldn't need to swap any bytes. However you may try one of the following: #value2 := ROR(IN := #value, N := 16); #value2 := SWAP(IN := #value); #value2 := SWAP(IN := ROR(IN := #value, N := 16));
"value" is the combined two registers received from the modbus rtu. Please ask if you have any other question. Kind regards https://en.wikipedia.org/wiki/Endianness |
Please use the contact form in the link below if you will like to come in contact with me. I don't check personal messages frequently. |
|
11/3/2020 7:27 PM | |
Joined: 2/22/2016 Last visit: 10/6/2024 Posts: 141 Rating: (30) |
Updated version attached with a few improvements. Latest version will always be available at: Kind regards Attachmentdanfoss.zip (365 Downloads) |
Please use the contact form in the link below if you will like to come in contact with me. I don't check personal messages frequently. |
|
Follow us on