Post by ragarcia on Error while using UpdateConfiguredIPSettings to change IP address
CODESYS Forge
talk
(Post)
Hello everyone, I am trying to change dynamically by code the IP address of a Weidmuller controller. So I am basically using IoDrvEthernet library to use UpdateConfiguredIPSettings function but I am getting constantly the 'INVALID_STATE' error. Even though I am following a procedure it should work: * First I added on the config file of codesys the following: [SysSocket] Adapter.0.Name="eth0" Adapter.0.EnableSetIpAndMask=1 Adapter.1.Name="eth1" Adapter.1.EnableSetIpAndMask=1 * Secondly I am first disabling the ethernet interface by using Ethernet_0.Enable = FALSE and then executing DED.Reconfigure. After that, I run the Ethernet_1.updateConfiguredIPSettings Code: Ethernet_1.Enable:= EnableDisable; Reconfigure(xExecute:= TRUE, itfNode:= Ethernet_1, xError=> ErrorReconfigure, eError=> ErrorCodeReconfigure); IF Reconfigure.xDone THEN ErrorCodeIP:= Ethernet_1.UpdateConfiguredIPSettings(IPAddress:= newIP, SubnetMask:= newMask, Gateway:= newGW); END_IF IF Reconfigure.xDone OR Reconfigure.xError THEN Reconfigure(xExecute:= FALSE); END_IF Ethernet_1.Enable:= TRUE; Reconfigure(xExecute:= TRUE, itfNode:= Ethernet_1); IF Reconfigure.xDone OR Reconfigure.xError THEN Reconfigure(xExecute:= FALSE); END_IF Can someone help me? Thank you. All I am trying is to find a way to change dynamically with code, the IP addresses of my controller (2 ethernet ports).
Last updated: 2023-12-11
Post by mibkid17 on Ethernet Adapter message: Adapter configured. Open all connections
CODESYS Forge
talk
(Post)
Trying to control 525 with codsys the info from C-4 section. i should input the value in user defined parameters? in the generic device
Last updated: 2024-04-09
Post by mc-fohn on WAGO 750-352 Ethernet Adapter
CODESYS Forge
talk
(Post)
Hello. I am quite new to Codesys so I don't know where to get the adapter written in the subject as an addable device for my project-tree. Are there any ideas?
Last updated: 2024-04-17
Post by tobim on IP-Change not alloed on this adapter ! PN-Device will operate with limitations.
CODESYS Forge
talk
(Post)
Hi viktorr, unfortunately not. Good luck to you!
Last updated: 2024-07-24
TCP/IP Problem
CODESYS Forge
talk
(Thread)
TCP/IP Problem
Last updated: 2009-11-23
TCP/IP Client
CODESYS Forge
talk
(Thread)
TCP/IP Client
Last updated: 2016-04-03
Kommunikation TCP/IP
CODESYS Forge
talk
(Thread)
Kommunikation TCP/IP
Last updated: 2012-07-02
TCP-IP communication
CODESYS Forge
talk
(Thread)
TCP-IP communication
Last updated: 2017-12-30
Modbus Slave IP address
CODESYS Forge
talk
(Thread)
Modbus Slave IP address
Last updated: 2017-07-21
Kommunikation über TCP-IP
CODESYS Forge
talk
(Thread)
Kommunikation über TCP-IP
Last updated: 2009-07-01
TCP-IP Port öffnen
CODESYS Forge
talk
(Thread)
TCP-IP Port öffnen
Last updated: 2011-08-22
IP adress
CODESYS Forge
talk
(Thread)
IP adress
Last updated: 2014-01-14
IP Kamera in visualisation
CODESYS Forge
talk
(Thread)
IP Kamera in visualisation
Last updated: 2016-08-30
IP Camera
CODESYS Forge
talk
(Thread)
IP Camera
Last updated: 2019-06-25
Profinet Device IP set
CODESYS Forge
talk
(Thread)
Profinet Device IP set
Last updated: 2017-09-06
IP adres gateway
CODESYS Forge
talk
(Thread)
IP adres gateway
Last updated: 2020-10-24
Daten Übertragung TCP/ip
CODESYS Forge
talk
(Thread)
Daten Übertragung TCP/ip
Last updated: 2008-09-17
TCP/IP Server Listening
CODESYS Forge
talk
(Thread)
TCP/IP Server Listening
Last updated: 2015-06-25
start webvisu with IP
CODESYS Forge
talk
(Thread)
start webvisu with IP
Last updated: 2014-10-21
TCP-IP Port öffnen
CODESYS Forge
talk
(Thread)
TCP-IP Port öffnen
Last updated: 2011-08-23
Gmail, obtaining IP
CODESYS Forge
talk
(Thread)
Gmail, obtaining IP
Last updated: 2023-02-26
TCP/IP example
CODESYS Forge
talk
(Thread)
TCP/IP example
Last updated: 2014-05-25
TCP / IP Kommunikation
CODESYS Forge
talk
(Thread)
TCP / IP Kommunikation
Last updated: 2009-08-19
Get device IP address
CODESYS Forge
talk
(Thread)
Get device IP address
Last updated: 2016-12-14
TCP/IP client
CODESYS Forge
talk
(Thread)
TCP/IP client
Last updated: 2023-12-20
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND
or OR
.