7/3/2013 10:52 PM | |
Joined: 5/28/2013 Last visit: 2/1/2023 Posts: 112 Rating:
|
Hello, This attached program, is a sample of a Modbus network between a S7-200 PLC (master), a V20 Inverter (Slave addr 2) and a Indicator (Slave addr 3). The program starts with a Input 2.0, than the PLC reads the Frequency of the V20 inverter and saves it on VW100, the program copy its value to VW200 and sends it to the Indicator. So far so good. But, there's always a but, until now my PLC is acting like a master, but i got and SCADA software with a Modbus driver that needs that PLC as a Slave to read its holding registers... (right?) To enable the reading of the holding registers of my PLC from my SCADA system, the only thing that i have to do is add on my program MBUS_INIT and MBUS_SLAVE turning my PLC as a slave for a moment? Thanks!
AttachmentAttachment.zip (274 Downloads) |
This contribution was helpful to
1 thankful Users |
7/4/2013 2:25 PM | |
Posts: 6 Rating:
|
This will help me get started thx
|
7/8/2013 1:48 PM | |
Posts: 6 Rating:
|
I read a PC simulating an slave device, but i just cant comunicate with V20.. Is this program working for you? Thx
|
7/8/2013 2:04 PM | |
Posts: 6 Rating:
|
This parameter is 0 for me |
7/8/2013 2:16 PM | |
Joined: 5/28/2013 Last visit: 2/1/2023 Posts: 112 Rating:
|
You got no communication, check wires, baudrate, address, and PARITY V20 inverter has a default even parity
|
7/8/2013 2:17 PM | |
Joined: 5/28/2013 Last visit: 2/1/2023 Posts: 112 Rating:
|
Pegaia just helped me with this! |
7/8/2013 3:31 PM | |
Posts: 559 Rating:
|
Hii BBPrudente, I am putting your post to below link. Demo Projects |
7/8/2013 5:44 PM | |
Joined: 5/28/2013 Last visit: 2/1/2023 Posts: 112 Rating:
|
ok |
Follow us on