Hello,
I am programming an application using CODESYS CODESYS V3.5 SP18 Patch 2. The application must receive JSON messages of length 700 bytes using TCP/IP. But the application does not catch these messages. How can I solve that?
I attach my code (jpg).
Thank you
Input long JSON messages
- Attachments
-
- 2.jpg (203.04 KiB) Viewed 7762 times
-
- 1.jpg (361.32 KiB) Viewed 7762 times
-
- 0.jpg (311.83 KiB) Viewed 7762 times
Hi gerard,
Your application sounds exciting. KUNBUS has no shares in application development via Codesys, so I can only help you to a limited extent.
If I were you, I would leave Codesys out for the moment and check if the data arrives at the RevPi.
You can execute the following command to enable an incoming connection on port 8080:
On the sending device, you can run the following command:
Your application sounds exciting. KUNBUS has no shares in application development via Codesys, so I can only help you to a limited extent.
If I were you, I would leave Codesys out for the moment and check if the data arrives at the RevPi.
You can execute the following command to enable an incoming connection on port 8080:
Code: Select all
ncat -l -p 3000 > /tmp/json.txt
Code: Select all
nc -w 3 <RevPi IP> 3000 < json.txt
Hi gerard have you thought about posting your question Codesys Forge?
https://forge.codesys.com/neighborhood
https://forge.codesys.com/neighborhood
I checked that my application receives the JSON message sent from Hercules but not from other software. This problem occurs running the application on the RevPi and also with the Codesys virtual PLC.
I will post my question in the forum that you suggest, thank you very much
I will post my question in the forum that you suggest, thank you very much
Hi gerard, thanks for your positive feedback and good luck in the future.