7/3/2019 5:58 PM | |
Joined: 8/14/2013 Last visit: 2/11/2021 Posts: 48 Rating:
|
Hi all I would be very grateful if you could help me in this matter. I have an et200sp (s1510) and I want to read some of its analog values from an external device that supports modbus rtu communication. I have many doubts and, of course, what I have tried does not work. I am not familiar with modbus although I have read the siemens forum documentation, but some things I still do not understand. In my plc, in ob100 I have programmed the mb_comm instruction and in OB1 the mb_slave. My external controller has configured it as a master (since it has a small scada where I will display the data of the PLC and I have configured the serial communication data (bit, speed, bit stop ...) The interface of the external controller is simple, apart from the serial parameters, it only asks for the address of the modbus slave (my plc), the mode of operation (my plc is a slave) and the modbus address of each record to be read (here's my problem) I have two important questions: 1) My external device asks me for the address (modbus) of each record to be read. Where do I find that address? I have read that DW0 would correspond to 40001 for the external "reader" master. It is right? 2) Since the et1500sp is a slave, it is not necessary to program the mb_master in any part of the plc program, it would only write the mb_slave, is it correct? Thank you very much for the help |
Last edited by: cesarinko at: 07/03/2019 17:59:56Last edited by: cesarinko at: 07/03/2019 18:01:07 |
|
7/3/2019 6:31 PM | |
Posts: 3093 Rating:
|
Hello cesarinko, You should evaluate the outputs of MB_SLAVE in your program. How do you evaluate the status of system blocks in STEP 7 (TIA Portal)? Here you can find the sample: Master-Slave Communication via a CM PtP using the Modbus RTU Protocol
Yes, DW0 correcsponds with 40001.
yes, you need only MB_SLAVE Regards, |
Last edited by: Kaulquappe at: 07/03/2019 18:31:32 |
|
This contribution was helpful to
1 thankful Users |
7/3/2019 8:40 PM | |
Joined: 8/14/2013 Last visit: 2/11/2021 Posts: 48 Rating:
|
You are absolutely right, it is important Before continuing I would appreciate it if I do not understand why the shape of the Thank you |
Last edited by: cesarinko at: 07/03/2019 20:40:31Last edited by: cesarinko at: 07/03/2019 20:42:50Last edited by: cesarinko at: 07/03/2019 20:43:57Last edited by: cesarinko at: 07/03/2019 20:44:37Last edited by: cesarinko at: 07/03/2019 20:46:59Last edited by: cesarinko at: 07/03/2019 20:49:35 |
|
7/3/2019 9:58 PM | |
Posts: 3093 Rating:
|
Hello, Regards, |
This contribution was helpful to
1 thankful Users |
7/4/2019 7:48 AM | |
Joined: 8/14/2013 Last visit: 2/11/2021 Posts: 48 Rating:
|
Hello I'm repeating the program again. My other question is: what are the Thank you |
Last edited by: cesarinko at: 07/04/2019 07:49:05Last edited by: cesarinko at: 07/04/2019 07:54:13 |
|
7/4/2019 8:33 AM | |
Joined: 9/21/2012 Last visit: 3/7/2025 Posts: 4320 Rating:
|
DW0 reserves 4 bytes, so the nex DW you can define is DW4, NOT DW1. DW1 will overlap with DW0, and create problems. As it is a Double Word, it contains 2x Words, and each Word contains 2x Bytes.
|
This contribution was helpful to
1 thankful Users |
7/4/2019 9:51 AM | |
Joined: 8/14/2013 Last visit: 2/11/2021 Posts: 48 Rating:
|
It is true, I understand what you tell me I ask it in another way. If, for example, Thank you |
Last edited by: cesarinko at: 07/04/2019 09:52:20 |
|
7/4/2019 10:50 AM | |
Joined: 8/14/2013 Last visit: 2/11/2021 Posts: 48 Rating:
|
This is error 16 # 8282. I have searched I attach error images and blocks in case Thank you |
7/4/2019 2:34 PM | |
Posts: 3093 Rating:
|
Hello cesarinko, Regards, |
This contribution was helpful to
1 thankful Users |
7/5/2019 6:07 PM | |
Joined: 8/14/2013 Last visit: 2/11/2021 Posts: 48 Rating:
|
Hello Thank you very much for the information. I would like to ask if someone can tell "Error in reading access to the periphery (address I 0) in FB 613" Thank you Attachmentmodbus5.pdf (677 Downloads) |
Follow us on