I'm using the Codesys HTTPClient function block. I have two instances in separate CFCs, each talking to a different IP address (2 x Raspberry Pi). It's been working ok, but yesterday the Codesys program was stuck waiting for replies from both devices.
Sanity check: is it ok to use multiple instances of the HTTPClient to talk to different IP addresses? Or do I need to use only one instance and somehow manage the different requests so they can't be simultaneous?
thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Before we , the community, can help you further you should provide exact more details on architecture and software setup, otherwise we are just guessing. Can you share your software project as a projectarchive?
regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Unfortunately I can't upload full projectarchive, but I've attached screenshot showing the 2 different instances (hTTPClient_0 and hTTPClient_1), based on the single Codesys example. I'm using HTTP client ver 1.0.1.2 in Codesys V3.5 SP15 Patch 4 on a Festo CPX-CEC-S1-V3.
I hope that helps. I haven't been able to recreate the issue so perhaps it was network fault. I'd just like clarification that two instances of the client block should/shouldn't be acceptable.
I'm using the Codesys HTTPClient function block. I have two instances in separate CFCs, each talking to a different IP address (2 x Raspberry Pi). It's been working ok, but yesterday the Codesys program was stuck waiting for replies from both devices.
Sanity check: is it ok to use multiple instances of the HTTPClient to talk to different IP addresses? Or do I need to use only one instance and somehow manage the different requests so they can't be simultaneous?
thanks
Hi,
Before we , the community, can help you further you should provide exact more details on architecture and software setup, otherwise we are just guessing. Can you share your software project as a projectarchive?
regards
Hi,
Unfortunately I can't upload full projectarchive, but I've attached screenshot showing the 2 different instances (hTTPClient_0 and hTTPClient_1), based on the single Codesys example. I'm using HTTP client ver 1.0.1.2 in Codesys V3.5 SP15 Patch 4 on a Festo CPX-CEC-S1-V3.
I hope that helps. I haven't been able to recreate the issue so perhaps it was network fault. I'd just like clarification that two instances of the client block should/shouldn't be acceptable.
thanks
Since both FB's are instantiated separately, they have individual memory allocated. None of that memory is shared by design.
I really cannot say more without a project.
Last edit: hermsen 2021-08-06
OK, thanks for your comments, it sounds like it should work. I'll see if the issue reoccurs.