Modbus tcp/ip master/slave simulation problem

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

kabouras_33
Posts: 74
Joined: Thu Jul 27, 2017 5:23 am
Has thanked: 7 times
Been thanked: 7 times
Contact:

Re: Modbus tcp/ip master/slave simulation problem

Postby kabouras_33 » Thu Sep 26, 2019 11:48 pm

Last note for today!! :mrgreen:
I used modbus poll software in various situations and i works perfect until now so i think that if we manage to communicate flowcode slave with modbus poll we are done :wink:
I stop now because brain salad.
Goodnight!!!

kabouras_33
Posts: 74
Joined: Thu Jul 27, 2017 5:23 am
Has thanked: 7 times
Been thanked: 7 times
Contact:

Re: Modbus tcp/ip master/slave simulation problem

Postby kabouras_33 » Fri Sep 27, 2019 11:04 pm

Hello!!!
Further update today i tried a flowcode master with simulation slave....the simulation could read coils correctly but not holding registers....
Well by now i dont know if i am helping or i am in completly the wrong direction...
Awaiting your feedback
Thanks again!!!

kabouras_33
Posts: 74
Joined: Thu Jul 27, 2017 5:23 am
Has thanked: 7 times
Been thanked: 7 times
Contact:

Re: Modbus tcp/ip master/slave simulation problem

Postby kabouras_33 » Sun Sep 29, 2019 7:35 pm

hello again,
i think that the check for incoming macro doesnt give correct responce...
i keep searching awaiting your feedback

User avatar
Benj
Matrix Staff
Posts: 14373
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4447 times
Been thanked: 4150 times
Contact:

Re: Modbus tcp/ip master/slave simulation problem

Postby Benj » Wed Oct 02, 2019 9:53 am

Hello,

I'll see if I can replicate this problem for you and hopefully provide a fix.

kabouras_33
Posts: 74
Joined: Thu Jul 27, 2017 5:23 am
Has thanked: 7 times
Been thanked: 7 times
Contact:

Re: Modbus tcp/ip master/slave simulation problem

Postby kabouras_33 » Sun Oct 20, 2019 7:26 pm

Dear Benj,
Hello!! So after some time, i could make the esp8266 work :wink:
The solution is tricky to explain but it looks like flow code components target the wrong index to retrieve or send data to other except flow code,
I wrote my own software in unity 3d and I could locate the problem.
No, the problem is with the w5500 which still I cannot understand why it doesn't work!! (a very simple example would be awesome!!!)
and secondly
I noticed in the slave Modbus TCP there is a macro GetLastIncoming.....
I believe I can retrieve specific info with that macro from the incoming message...
Well, I want to retrieve the address number from the incoming message (index 2) but I have no idea how???
any pointers?

kabouras_33
Posts: 74
Joined: Thu Jul 27, 2017 5:23 am
Has thanked: 7 times
Been thanked: 7 times
Contact:

Re: Modbus tcp/ip master/slave simulation problem

Postby kabouras_33 » Mon Oct 28, 2019 12:25 pm

Cannot make it work!
esp8266 works very good but w5500 just refuse to connect....am i missing something?
A little help please??
Attachments
SLAVE MODULE1.fcfx
(23.44 KiB) Downloaded 11 times

kabouras_33
Posts: 74
Joined: Thu Jul 27, 2017 5:23 am
Has thanked: 7 times
Been thanked: 7 times
Contact:

Re: Modbus tcp/ip master/slave simulation problem

Postby kabouras_33 » Mon Oct 28, 2019 4:18 pm

No go...i tried as Modbus TCP slave enc28j60,w5500,w5100 all of them no go
I can ping them but they do not appear on my routers or work of course...
ok, I am waiting for your kind assistance because at least the w5500 which says supported should work but no so I am doing something wrong definitely.

User avatar
Benj
Matrix Staff
Posts: 14373
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4447 times
Been thanked: 4150 times
Contact:

Re: Modbus tcp/ip master/slave simulation problem

Postby Benj » Mon Nov 04, 2019 11:20 pm

Thanks for letting us know of the problem, the W5500 should certainly be working so let me investigate this for you.

kabouras_33
Posts: 74
Joined: Thu Jul 27, 2017 5:23 am
Has thanked: 7 times
Been thanked: 7 times
Contact:

Re: Modbus tcp/ip master/slave simulation problem

Postby kabouras_33 » Tue Nov 05, 2019 11:20 am

Thank you Benj,
and if you need anything from me, test,or send you data please tell me!
i will be most happy if i can be of any assistance
These users thanked the author kabouras_33 for the post:
Benj (Tue Nov 05, 2019 2:53 pm)
Rating: 5.26%