6/4/2021 1:19 PM | |
Joined: 2/27/2021 Last visit: 7/5/2024 Posts: 12 Rating:
|
Hello Sirs, I am trying to communicate several plc 1200 (6ES7 214-1BG40-0XB0) with each other via modbus tcp. To begin with, I have added 2 devices, to the first one I have put the "MB_CLIENT" block and to the other the "MB_SERVER". I have carefully followed this video step by step but when I give values to MB_MODE = 1, MB_DATA_ADDR = 40001 and MB_DATA_LEN = 10 the STATUS output remains fixed at 7006(Receiving data), the BUSY output is also set to TRUE and ERROR to FALSE but I don't get anything in the server. I think everything is well parameterized. Would someone be so kind to help me? Regards. |
Last edited by: Jen_Moderator at: 06/07/2021 08:03:19Embedded video. |
|
6/4/2021 2:48 PM | |
Joined: 3/5/2014 Last visit: 8/5/2022 Posts: 5521 Rating:
|
hi JLOPEZ21, the parameter are only valid for one cycle. So an error that is just there for one cycle can´t be seen with eyes. Therefore you need to evaluate the status of the blocks like shown in this FAQ: How do you evaluate the status of system blocks in STEP 7 (TIA Portal)?The blocks usually ending thier request with DONE or ERROR. 7006 is not an error-status, it means "receiving data" Here you can find the meaning of the Status: hope this helps, regards, |
FCK WAR! |
|
6/4/2021 4:51 PM | |
Joined: 4/28/2015 Last visit: 2/7/2024 Posts: 10533 Rating:
|
Hello,
sry but I think that everything isn't well parametrized because you don't have data on Server. Pls ZIP screenshots from your cfg of Client and Server (blocks shows parameters) and data set and receive area structure. Also your info about idea of exchange data between devices is somehow ok but maybe also better description how you expect to do this is also required (between each of devices or only between some devices). Simply you can exchange data also via different comm channels/protocols. One important sugestion is use of not optimized access on possible DB blocks used on Servers side but question is what system you have set. Update: I also recommend tak a look to CLIENT block how it works. In case you set REQ to TRUE, block will work continuesly till you reset REQ input parameter. Only sugestion because you can maybe wrongly look at block parameters but functionality can be not clear to you. What standard Slave RTU address you've set to Client block? I recommend read carefully Help about Client block and especially about additional parameters (instance DB). I also recommend for first do read data from Server and not Write, only to be sure about functionality, also you can test better some PC app as MB TCP Server because then you can be sure that PC app is working correctly and with another PLC as Server you're not sure where problem is... Update2: that video is full of not useful steps, sometimes not correct cfg and therefore I see probably you have some problems what this video doesn't show. Pay attention especially to trigger of REQ of Client block. |
Last edited by: Duris_I at: 06/04/2021 16:52:34Last edited by: Duris_I at: 06/04/2021 17:04:13Last edited by: Duris_I at: 06/04/2021 17:06:47Last edited by: Duris_I at: 06/04/2021 17:15:43With best regards... |
|
Follow us on