11/28/2016 9:53 AM | |
Posts: 6 Rating:
|
Hi, Should I put the S7-1200 PLC as Server or Client? And what are the connections for each ports in the block? Thank you. Yours sincerely, Eric ------------------------------------------------------------------------------------------ |
Last edited by: Min_Moderator at: 11/28/2016 12:55:36 PMNew subject after splitting |
|
11/28/2016 10:21 AM | |
Joined: 2/27/2014 Last visit: 2/18/2025 Posts: 689 Rating:
|
Hello Eric, Why do you want to go with Modbus Communication Protocol? TIA Portal Help is good one to understand, how Modbus can be implement and use in S71200/S71500 PLC. Depending on Partner type, S71200 can define as Modbus TCP server or Client. Which type of HMI ? If it is Siemens then HMI will act as only Modbus TCP client. If you want to explore yourself in Modbus World then check the forum information from SIMATIC Modbus/TCP topic. Same forum topic, you can find Modbus TCP sample application of S71200 PLC . AttachmentModbusTCP.pdf (585 Downloads) |
With Best Regards, |
|
11/28/2016 11:08 AM | |
Joined: 2/27/2014 Last visit: 2/18/2025 Posts: 689 Rating:
|
Hello , Yes, You can define the S71200 PLC as Modbus TCP server by using Modbus Library " MB_Server " Block. I don't know about HMI part but there you need to add modbus tcp driver in HMI and define the necessary inputs. Ex Server IP address, port number, Function code type etc.
See the attached code for S71200 as Modbus TCP server. S71200 PLC : Modbus TCP Server, IP Address: 192.168.0.1 and port number 502 Remote (HMI) as Modbus TCP client, IP address: 192.168.0.10 same application, you can see 8 Holding Register (40001..8) are used for writing/reading from client. (PLC address mapping MW100 ..114) Same application you can check with Modscan simulator software , which is acting as Modbus TCP client. For more information about data type and function code, press F1 on MB_Server Block. AttachmentModbus TCP Server.zip (400 Downloads) |
With Best Regards, |
|
This contribution was helpful to
1 thankful Users |
12/13/2016 6:55 AM | |
Posts: 6 Rating:
|
Hi, May I know is there any updated documetation for the Modbus configuration example? Yours sincerely, |
12/13/2016 10:40 AM | |
Posts: 6 Rating:
|
Hi, Thank you for your reply. Do you have any idea how to configure the Modbus Server in Step7? Yours sincerely, Yi Hong |
Follow us on