![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
|
![]() |
#1 |
Member
|
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 |
![]() |
![]() |
#2 |
Lifetime Supporting Member + Moderator
|
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: ᛁᚠ ᚢᚬᚢ ᚴᚬᚾ ᚱᛅᚬᛏ ᚦᛁᛋ ᚦᛅᚾ ᚢᚬᚢ ᚼᚬᚠᛅ ᚴᚬᛁᚾᛅᛏ ᛘᚢ ᚱᛅᛋᛒᛅᚴᛏ |
![]() |
![]() |
#3 | |
Member
|
Quote:
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. |
|
![]() |
![]() |
#4 |
Lifetime Supporting Member + Moderator
|
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: ᛁᚠ ᚢᚬᚢ ᚴᚬᚾ ᚱᛅᚬᛏ ᚦᛁᛋ ᚦᛅᚾ ᚢᚬᚢ ᚼᚬᚠᛅ ᚴᚬᛁᚾᛅᛏ ᛘᚢ ᚱᛅᛋᛒᛅᚴᛏ |
![]() |
![]() |
#5 | |
Lifetime Supporting Member + Moderator
|
Quote:
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: ᛁᚠ ᚢᚬᚢ ᚴᚬᚾ ᚱᛅᚬᛏ ᚦᛁᛋ ᚦᛅᚾ ᚢᚬᚢ ᚼᚬᚠᛅ ᚴᚬᛁᚾᛅᛏ ᛘᚢ ᚱᛅᛋᛒᛅᚴᛏ |
|
![]() |
![]() |
#6 | |
Member
|
Quote:
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. |
|
![]() |
![]() |
#7 |
Member
|
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 |
![]() |
![]() |
#8 |
Member
|
Indeed it was a setting on the CP.
See the attached picture. Cheers. Aleix |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
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 |