12/9/2009 8:43 PM | |
Joined: 10/3/2008 Last visit: 8/28/2024 Posts: 961 Rating:
|
Hi, this is a very old version of modbus block. I suggest to use the current blocks (with more functionality). Go to this site and you can download the current demo version: www.siemens.com/s7modbus=> S7 OpenModbus/TCP, tab "Download". Wüstenräuber PS: I sent you a private message, have a look at the right side on this page. |
Last edited by: Wuestenraeuber at: 12/9/2009 8:53 PM |
|
12/10/2009 8:46 AM | |
Posts: 13 Rating:
|
Hi, thanks for all information. Ok let go to the project, I have made it. I successfully made connection and hardware settings. 1. In OB1 I did not change anything. 2. In OB100 I have set 2 parameters to my parameters : ID :=1 and LADDR:= W#100 , all other parameters like like ... data_types and other setup I did not change. Must I change any other parameter ? 3. I know I must set the parameters : UNIT, DATA_TYPE , START_ADDRESS , LENGHT and TI. These parameters are set in VAR it is right ? My configuration in Var is : UNIT :=1, DATA_TYPE:= W#16#03 , START_ADDRESS:=1, LENGHT:=40, and TI:=1 . My first goal is to collect data only from modbus holding registers 40001 to 40041. So The setting START_ADDRESS:=1 is good and LENGHT:=40 ?? But when I set ENQ_ENR to TRUE , STATUS get code W#16#8184 . Something I am doing wrong :( In attachment is my project Thanks for your help, John AttachmentProj_Mobus_client.zip (629 Downloads) |
12/10/2009 10:15 AM | |
Posts: 13 Rating:
|
Hi, thanks for response in attachment is project which you can open (neutral language) :). I have changed the START_ADDRESS := 0 in OB100, but now I have an STATUS error is now the same like first time W#16#8184. Something I am doing is wrong ... Thanks !!! AttachmentProj_Mobus_client.zip (574 Downloads) |
12/10/2009 11:20 AM | |
Joined: 10/3/2008 Last visit: 8/28/2024 Posts: 961 Rating:
|
Hi, I tested your project with my hardware configuration anda test server. I didn't get any errors, it works perfectly. I checked your hardware configuration: You use a CP, which is not released. Have a look at this site for hardware requirements: http://www.industry.siemens.com/industrial-services/it/en/products/simatic_add_ons/s7_open_modbus_tcp.htm, tab "Technical Data". It seems, that your CP has a problem with the functions AG_SEND/AG_RECV. Wüstenräuber |
Follow us on