You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Reply
 
Thread Tools Display Modes
Old September 7th, 2023, 03:44 AM   #1
NoName
Member
Slovenia

NoName is offline
 
NoName's Avatar
 
Join Date: Sep 2003
Location: Domžale
Posts: 273
Connecting to PLC(S7-1200) via VPN

Hello all.


When I try to connect to a S7-1200 PLC (Tia Portal v17) which has a CP 1243-1 module that is connected to my clients network I get the popup window that an IP needs to be assigned.


If I click yes I get an error - Adding new IP address failed - Ip address allready in use, and the connection cant be established.
If I click no - the connection can not be established.

I checked what IP address my pc has and it's in the same subnet as the CP1243-1 module.
I also tried to add another IP address to the ethernet addapter so that the IP address of the PC is in the same IP range, but TIA portal always want's to set a new IP address?
If I try to ping the IP of the CP1243-1 module, it's no problem... I can ping it...


Any ideas what I could do to establish the connection to the PLC.
Thanks in advanced.
Cheers
  Reply With Quote
Old September 7th, 2023, 04:23 AM   #2
JesperMP
Lifetime Supporting Member + Moderator
Denmark

JesperMP is offline
 
JesperMP's Avatar
 
Join Date: Feb 2003
Location: ᚴᚬᛒᛅᚾᚼᚬᚠᚾ
Posts: 16,132
How is your PC connected to the VPN ? Via cable or wifi ?
If by wifi, try to disable the cabled interface, or change the cabled interfaces IP to a different subnet.
The online connection in TIA is via the VPN ?
Does the VPN software setup a route ?
Onsite, is the PLCs gateway set to the router that connects to the VPN ?
__________________
Jesper
NOTICE:
JesperMP has passive-aggressive tendencies, can be impolite and may even use sarcasm !
Also: ᛁᚠ ᚢᚬᚢ ᚴᚬᚾ ᚱᛅᚬᛏ ᚦᛁᛋ ᚦᛅᚾ ᚢᚬᚢ ᚼᚬᚠᛅ ᚴᚬᛁᚾᛅᛏ ᛘᚢ ᚱᛅᛋᛒᛅᚴᛏ
  Reply With Quote
Old September 7th, 2023, 04:50 AM   #3
NoName
Member
Slovenia

NoName is offline
 
NoName's Avatar
 
Join Date: Sep 2003
Location: Domžale
Posts: 273
Quote:
Originally Posted by JesperMP View Post
How is your PC connected to the VPN ? Via cable or wifi ?
If by wifi, try to disable the cabled interface, or change the cabled interfaces IP to a different subnet.
The online connection in TIA is via the VPN ?
Does the VPN software setup a route ?
Onsite, is the PLCs gateway set to the router that connects to the VPN ?



Hello.
I am connectin via Wifi.
I disabled all other network devices, only the wifi adapter enabled and it's still the same problem.


The online connection in TIA is via the VPN ? - Yes I am trying to connect through the virtual adapter that appears when VPN is connected - PANGP Virtual ethernet adapter
Does the VPN software setup a route ? - I think so, the device is pingable....
Onsite, is the PLCs gateway set to the router that connects to the VPN ? - Yes, I attached a screen shot if this is what you mean.
Attached Images
File Type: png vpn_conn.png (33.9 KB, 56 views)
  Reply With Quote
Old September 7th, 2023, 05:03 AM   #4
JesperMP
Lifetime Supporting Member + Moderator
Denmark

JesperMP is offline
 
JesperMP's Avatar
 
Join Date: Feb 2003
Location: ᚴᚬᛒᛅᚾᚼᚬᚠᚾ
Posts: 16,132
On the PC use IPCONFIG /ALL to diagnose if there is a conflict on your PC.
Onsite, try to disconnect the PLC from the VPN router, and ping again. This to see if there is a IP conflict onsite.
On the PC use TRACERT (IP of PLC) to see the router from the PC to the PLC. It may take some effort to interpret. One of the last entries should be the IP of the onsite router on the WAN side.
__________________
Jesper
NOTICE:
JesperMP has passive-aggressive tendencies, can be impolite and may even use sarcasm !
Also: ᛁᚠ ᚢᚬᚢ ᚴᚬᚾ ᚱᛅᚬᛏ ᚦᛁᛋ ᚦᛅᚾ ᚢᚬᚢ ᚼᚬᚠᛅ ᚴᚬᛁᚾᛅᛏ ᛘᚢ ᚱᛅᛋᛒᛅᚴᛏ
  Reply With Quote
Old September 7th, 2023, 05:08 AM   #5
JesperMP
Lifetime Supporting Member + Moderator
Denmark

JesperMP is offline
 
JesperMP's Avatar
 
Join Date: Feb 2003
Location: ᚴᚬᛒᛅᚾᚼᚬᚠᚾ
Posts: 16,132
Quote:
Originally Posted by NoName View Post
I checked what IP address my pc has and it's in the same subnet as the CP1243-1 module.
I also tried to add another IP address to the ethernet addapter so that the IP address of the PC is in the same IP range,
What interface is it that you assign the IP address to ? The cabled interface or wifi ?
Your PCs physical interfaces must not be in the same subnet as the remote network. In that case routing will not work.
__________________
Jesper
NOTICE:
JesperMP has passive-aggressive tendencies, can be impolite and may even use sarcasm !
Also: ᛁᚠ ᚢᚬᚢ ᚴᚬᚾ ᚱᛅᚬᛏ ᚦᛁᛋ ᚦᛅᚾ ᚢᚬᚢ ᚼᚬᚠᛅ ᚴᚬᛁᚾᛅᛏ ᛘᚢ ᚱᛅᛋᛒᛅᚴᛏ
  Reply With Quote
Old September 19th, 2023, 11:37 AM   #6
NoName
Member
Slovenia

NoName is offline
 
NoName's Avatar
 
Join Date: Sep 2003
Location: Domžale
Posts: 273
Quote:
Originally Posted by JesperMP View Post
What interface is it that you assign the IP address to ? The cabled interface or wifi ?
Your PCs physical interfaces must not be in the same subnet as the remote network. In that case routing will not work.



Hello.

I have two machines at my partners location to where I connect through VPN.

To one machine TIA portal connects without prompting to set an additional IP, but to the other it insists to setting a new IP address.


Under Online access option I tried to reset project specific IP's for the this adapter but it isn't any difference...




I dont't understand what is the difference between the two that I can not connect.


The PLC's are even in the same IP range.
x.x.x.32 - can connect
x.x.x.31 - can't connect




Seiing that I can ping both Ip's the IT department says that the connectivity problem is not on their side and can't help me any further.
  Reply With Quote
Old September 20th, 2023, 04:35 PM   #7
NoName
Member
Slovenia

NoName is offline
 
NoName's Avatar
 
Join Date: Sep 2003
Location: Domžale
Posts: 273
Hello.
Was just thinking if there is some setting on the 1243-1 that has to be set in order to connect to it?
Cheers
  Reply With Quote
Old September 21st, 2023, 07:46 AM   #8
NoName
Member
Slovenia

NoName is offline
 
NoName's Avatar
 
Join Date: Sep 2003
Location: Domžale
Posts: 273
Indeed it was a setting on the CP.
See the attached picture.



Cheers.
Aleix
Attached Images
File Type: png CP_settings.png (24.8 KB, 20 views)
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Connecting Allen Bradley Micrologix 1200 to RPi via Rs485 jayeshpitale LIVE PLC Questions And Answers 3 December 4th, 2022 04:34 AM
connecting a micrologix 1200 to a panelview 1000 bpreissner LIVE PLC Questions And Answers 1 December 12th, 2016 02:43 PM
connecting to micrologix 1200 josesaucedo LIVE PLC Questions And Answers 2 April 14th, 2010 05:01 PM
Connecting a BCD Thumbwheel to a MicroLogix 1200 drwillson LIVE PLC Questions And Answers 2 January 13th, 2010 01:06 PM
connecting to remote CompactLogix+eweb without VPN italo2008 LIVE PLC Questions And Answers 9 April 1st, 2009 04:05 PM


All times are GMT -4. The time now is 07:51 AM.


.