curtharrington1 Posted December 7, 2022 Report Share Posted December 7, 2022 Hello, I have an application that requires sending an email when an event is triggered on a 7" UniStream modular PLC. I bench tested the application with an ethernet cable from my router and the 7" UniStream, that worked great. We have since deployed the application and pivoted to using an industrial PC for WiFi connectivity which then connects to the PLC's ethernet port. I updated the DNS setting with what I polled from ipconfig/all and cannot get the email to send. The function block returns a -1 (check connections). I have checked that everything is physically connected but there is definitely something I am missing. I've tried the WiFi dns info and that did not. I'm not sure where to go at this point. Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted December 8, 2022 MVP 2023 Report Share Posted December 8, 2022 I think a little drawing of all the connections/layout might help. The bit where I'm getting a little lost is "PC for Wifi". Is this for WAN access or just connecting to the plc? Link to comment Share on other sites More sharing options...
curtharrington1 Posted December 9, 2022 Author Report Share Posted December 9, 2022 On 12/7/2022 at 7:50 PM, Ausman said: I think a little drawing of all the connections/layout might help. The bit where I'm getting a little lost is "PC for Wifi". Is this for WAN access or just connecting to the plc? We use the industrial PC to remote into the site to look at the machines PLCs in runtime. The 5" UniStreams are on the production machines and the 7" UniStream is to gather data via modbus from the machines and then send an email in the event of an alarm. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted December 9, 2022 MVP 2023 Report Share Posted December 9, 2022 In my experience, the wired Ethernet and WiFi Ethernet on a PC default to different subnets. Have you inspected both addresses to confirm they're on the same subnet? Easiest to enter IPCONFIG in a Command window. Link to comment Share on other sites More sharing options...
Gabriel Franco Posted December 9, 2022 Report Share Posted December 9, 2022 Set up a network bridge on the PC side between WiFi and LAN adapters. I´ve done it to share internet connection to devices without WiFi using a laptop, however I´ve never tried connecting a PLC to it. It should work, I guess. 1 Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted December 12, 2022 MVP 2023 Report Share Posted December 12, 2022 Both Flex and Gabriel have good suggestions. I'm sure there's a good reason for it, but why the industrial PC in the first place? I've never done it in this situation, but I have used a wifi adapter like a Vonets VAP11G to get something with just a network port onto the local wifi. Totally transparent and easy to do. cheers, Aus Link to comment Share on other sites More sharing options...
curtharrington1 Posted December 12, 2022 Author Report Share Posted December 12, 2022 On 12/9/2022 at 3:34 PM, Gabriel Franco said: Set up a network bridge on the PC side between WiFi and LAN adapters. I´ve done it to share internet connection to devices without WiFi using a laptop, however I´ve never tried connecting a PLC to it. It should work, I guess. I am heading on site tomorrow to set up the bridge. 1 hour ago, Ausman said: Both Flex and Gabriel have good suggestions. I'm sure there's a good reason for it, but why the industrial PC in the first place? I've never done it in this situation, but I have used a wifi adapter like a Vonets VAP11G to get something with just a network port onto the local wifi. Totally transparent and easy to do. cheers, Aus Industrial PC is used for remote monitoring of PLC's and pushing updates Link to comment Share on other sites More sharing options...
curtharrington1 Posted December 16, 2022 Author Report Share Posted December 16, 2022 UPDATE Bridging the ethernet and Wi-Fi together worked. All of my DNS settings were correct and the system is working as intended, thank you Gabriel and Ausman for the great suggestions. Link to comment Share on other sites More sharing options...
Gabriel Franco Posted December 16, 2022 Report Share Posted December 16, 2022 Thanks for letting us know. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now