Buddy123 Posted November 26, 2020 Report Share Posted November 26, 2020 Hi Has anyone got some knowledge with reading the Public IP address on a Unistream PLC, I am wanting to record what the public IP is at any time into my program. Regards Phil Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted November 27, 2020 MVP 2022 Report Share Posted November 27, 2020 I fired up a UniStream to see if DHCP was an option - it is not. The IP address of the panel (which does the heavy lifting) is set in the project definition. If you want to see the panel IP value, look in under System->General->Panel IP Address. Then I tried to access this variable and put it on the screen and found it is not part of the System Data struct. I got the same result when I tried to access it via the ladder editor. So it's there, but we can't seem to access it. I think you are out of luck. I would ask this question officially by sending a request to support@unitronics.com. Let us know what you find. Joe T. Quote Link to comment Share on other sites More sharing options...
DanT Posted November 27, 2020 Report Share Posted November 27, 2020 Hi; Under Screens, Numeric Elements, there are 2 IP Address Options IP Address Edit -- you can select which IP Address to view and edit ( IP Address Type) IP Settings Edit -- Panel, CPU, DNS -- View and edit These are all editable from the screen In the Ladder - Strings -- IP to String and String to IP ( no info in Help for explanations) IP to String allows an ASCII Variable ASCII to String -- does not allow setting a Panel IP -- from what I can see. ( Don't have UniStream to play with right now - else I would test them out ) DanT Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted November 27, 2020 MVP 2022 Report Share Posted November 27, 2020 @DanT - I did see the screen object edit choices but I didn't think about the IP to string function. Which is dumb of me because I use that in Vision. Good thing your brain is engaged! @Buddy123 - That made me dig a little deeper into the system variables, and I found my first post to be in error. I was expecting the IP information to be in the System Data struct, but it's actually in the General struct. So I need to bone up on UniLogic system names. Using the system tag "General.Panel IP Address" as a source you can indeed save off the IP address. I've attached my test project. Joe T. 7 inch IP test.ulpr 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.