(0)| 1/13/2019 9:37 AM | |
|
Joined: 5/14/2012 Last visit: 12/21/2025 Posts: 5 Rating:
|
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:
|
Controlling several fans (ebm-papst) using the SIMATIC S7-1200 via Modbus RTU |
This contribution was helpful to
|
|
| 1/14/2019 8:45 PM | |
|
Joined: 2/22/2016 Last visit: 4/15/2025 Posts: 142 Rating:
|
Hi Maxi2570 Here is another example. Regards, Ola Attachmentdanfoss.zip (912 Downloads) |
|
I don't check personal messages frequently, please send an email to modbuslibrary@sn7.no |
|
This contribution was helpful to
|
|
| 10/1/2020 7:52 PM | |
|
Joined: 2/22/2016 Last visit: 4/15/2025 Posts: 142 Rating:
|
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 |
|
I don't check personal messages frequently, please send an email to modbuslibrary@sn7.no |
|
| 11/3/2020 12:28 PM | |
|
Posts: 5 Rating:
|
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: 4/15/2025 Posts: 142 Rating:
|
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 |
|
I don't check personal messages frequently, please send an email to modbuslibrary@sn7.no |
|
| 11/3/2020 7:27 PM | |
|
Joined: 2/22/2016 Last visit: 4/15/2025 Posts: 142 Rating:
|
Updated version attached with a few improvements. Latest version will always be available at: Kind regards Attachmentdanfoss.zip (516 Downloads) |
|
I don't check personal messages frequently, please send an email to modbuslibrary@sn7.no |
|
Follow us on