10/2/2013 12:24 PM | |
Joined: 9/23/2005 Last visit: 11/12/2024 Posts: 4352 Rating: (1452)
|
Hi, o As client, Active Established should be “Ture” and remote port should be set with the server port number · MB_DATA_PTR could has absolute or symbolic address: Typ: there are two "ID's" in this context: 1 - the ID that belongs to internal CPU communication resources. This number belongs just to the CPU. Should be an unique number in the CPU project (each communication has its own number). it stay on the CONNECT struct 2 - the ID that belongs to modbus tcp addressing. E.g. it is not used (let as default value). Some Modubs servers, however needs an specific ID to work. it stay to static variables of the MB_Client Block as MB_Unit_ID. Notes: In the post of 28/04/2018 I place a V15 project version + cast showing the project steps.
AttachmentC:\Users\z0008iwv\Documents\Bluetooth Exchange Folder\Modbus.zip (8760 Downloads) |
Last edited by: Pegaia at: 6/9/2014 12:39 PMLast edited by: Pegaia at: 6/9/2014 12:37 PMLast edited by: Denilson Pegaia at: 4/28/2018 3:40:29 PMLast edited by: Denilson Pegaia at: 2/20/2019 11:11:26 AMDenilson Pegaia |
|
This contribution was helpful to7 thankful Users |
10/2/2013 12:26 PM | |
Joined: 9/23/2005 Last visit: 11/12/2024 Posts: 4352 Rating: (1452)
|
... Configuration Printscreen
AttachmentC:\Users\z0008iwv\Documents\Bluetooth Exchange Folder\Modbus.zip (4954 Downloads) |
Denilson Pegaia |
|
This contribution was helpful to2 thankful Users |
3/5/2014 1:13 PM | |
Posts: 7 Rating: (0) |
Dear expert, I checked your tested program with modbus client simulator.But it is not working.It shows 8383 errror.(Error reading or writing data or access outside the address area of MB_DATA_PTR. The error can occur locally as well as with the instruction "MB_SERVER".).Please treat this urgent.Am expecting your prompt response. |
4/30/2014 10:58 AM | |
Posts: 1 Rating: (0) |
Hi, I tried this sample program and am having a few issues on TIA portal Pro v13 with a S7-1516-3 PN/DP, firmware v1.1.2. The s7-1500 PLC is a Modbus client and so I am only using "MB_CLIENT_DB". 1) MB_DATA_PTR didnt accept a struct as in your example, "MB_CLIENT_DB".STATUS = error 818B: "The MB_DATA_PTR parameter has an invalid pointer." However, no complain with an array[0..2] of Int. 2) if Client_Send_DB.InterfaceId is < 64, "MB_CLIENT_DB".STATUS = error 809B: "The element InterfaceId within the TCON_xxx structure does not reference a hardware identifier of a CPU or CM/CP interface or has the value "0"." 3) if Client_Send_DB.InterfaceId is >= 64, "MB_CLIENT_DB".STATUS = error 8086: "The ID parameter is outside the valid range." I also attached my sample project to this post for info. AttachmentProject1.zip (1489 Downloads) |
6/9/2014 12:43 PM | |
Joined: 9/23/2005 Last visit: 11/12/2024 Posts: 4352 Rating: (1452)
|
Hi, Here there is a very simple sample projects to illustrate how it works: · S7-1500 as MODBUS server with S7-1200 as MODBUS client AttachmentC:\Users\z0008iwv\Documents\Bluetooth Exchange Folder\S7-1500 MODBUSServer.zip (3605 Downloads) |
Denilson Pegaia |
|
This contribution was helpful to2 thankful Users |
6/9/2014 12:45 PM | |
Joined: 9/23/2005 Last visit: 11/12/2024 Posts: 4352 Rating: (1452)
|
Hi, Here there is a very simple sample projects to illustrate how it works: · S7-1500 as MODBUSclient with S7-1200 as MODBUS server AttachmentC:\Users\z0008iwv\Documents\Bluetooth Exchange Folder\S7-1500 MODBUSClient.zip (2827 Downloads) |
Denilson Pegaia |
|
This contribution was helpful to1 thankful Users |
Follow us on