Mr Daniel Posted October 4, 2017 Report Share Posted October 4, 2017 Hi. I'm an experienced PLC programmer but I'm new to the unitronics universe. I'm wondering if anybody can give me an example on how I can send and receive text strings over TCP client interface? I'll be using a UNIStream PLC to communicate with a robot arm using a TCP connection. I would like to connect to the robot on port 29999 to send different commands. The robot will then come with a reply. For example: Command sent to robot: "load <robotprogram.file>" Return value on success: "Loading program: <robotprogram.file>" Return value on failure: "File not found: <robotprogram.file>" "Error while loading program: <robotprogram.file>" The Ladder functions "TCP Client Tx", "TCP Client Rx" and "TCP Client Connect" is not documented in the help file... What's the correct way to use string data as buffer source or buffer destination? I will appreciate any support! Quote Link to comment Share on other sites More sharing options...
Guy Sela Posted October 8, 2017 Report Share Posted October 8, 2017 Hi Daniel, you can find example projects on many subjects that could assist you including TCP IP communication: To download UniLogic example folder see the next link: https://unitronicsplc.com/Download/Support/UniLogic/UniLogic Examples_V1.19 Rev 80.7z Please follow the next link to download an example project that will be helpful for you (communicating with a 3rd party device via TCP). https://unitronics.exavault.com/share/view/ju4o-219xdl5i Please see the the next tutorial on how to use "Message Composer": 1 Quote Link to comment Share on other sites More sharing options...
Mr Daniel Posted October 9, 2017 Author Report Share Posted October 9, 2017 Thank you for the tips! I think this will work out smoothly. Quote Link to comment Share on other sites More sharing options...
NickT Posted October 14, 2019 Report Share Posted October 14, 2019 Hi, is the "example project that will be helpful for you (communicating with a 3rd party device via TCP)" still available? The link is no longer working Quote Link to comment Share on other sites More sharing options...
Cara Bereck Levy Posted October 17, 2019 Report Share Posted October 17, 2019 On 10/14/2019 at 11:31 PM, NickT said: Hi, is the "example project that will be helpful for you (communicating with a 3rd party device via TCP)" still available? The link is no longer working Sorry--just saw this! I will check into the link issue. Quote Link to comment Share on other sites More sharing options...
Xavier Posted November 4, 2020 Report Share Posted November 4, 2020 Is there any exemples in Unilogic we can download somewhere ? The links are not available any more. thanks Quote Link to comment Share on other sites More sharing options...
DanT Posted November 4, 2020 Report Share Posted November 4, 2020 Hi; www.unitronicsplc.com Software - UniLogic, Just below the UniLogic Download is a Zip File Full of Example Programs DanT Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.