Post by george32 on TCP Server
CODESYS Forge
talk
(Post)
Dear people, I would like to create a TCP server in my PLC program. The TCP server needs to communicate with an external device. I have been searching the internet and found that the libraries Syssocket or CAA NetBaseSrv are two possible solutions to create a TCP server. From what I have read, CAA NetBaseSrv is more user-friendly to implement than the Syssocket variant. However, I am still struggling to actually implement this library. Foremost is my little knowledge about creating a TCP server and how to read/understand each function block, especially the outputs of some blocks and the types, e.g. server has an output CAA.Handle, but I cannot find the explanation of CAA.Handle. I tried to find a good document that can help me understand how to implement a TCP server, but I could not find it. Thank you in advance, George
Last updated: 2025-02-20
Post by rmaas on TCP Server
CODESYS Forge
talk
(Post)
Hi George, I am no expert but recently tried and got it working using this example project: https://forge.codesys.com/prj/codesys-example/nbs/home/Home/#example-for-tcp-server-tcp-client BR, Rinie
Last updated: 2025-02-20
Post by ph0010421 on MODBUS TCP REGISTERS CODESYS V3.5
CODESYS Forge
talk
(Post)
hello Use FC3 instead of FC4
Last updated: 2024-10-11
Post by bartspako on Connection between Beijer PLC and Schneider Tesys-Island using Modbus TCP
CODESYS Forge
talk
(Post)
Last updated: 2024-10-16
Post by eschwellinger on v3.5 SP19 - Modbus TCP Devices - Channel Limit?
CODESYS Forge
talk
(Post)
Guess you could just add two modbus slaves with the same ip, to enlarge the 10 channel limit.
Last updated: 2023-08-28
Post by squiggleypuff on Can't Add New Version of Modbus TCP Master
CODESYS Forge
talk
(Post)
Bumping for visibility, still unable to get Modbus working on this thing.
Last updated: 2024-04-08
Post by eschwellinger on Modbus TLS Kommunikation
CODESYS Forge
talk
(Post)
aktuell bin ich mir nicht sicher ob das Modbus/TCP Security Protocol unterstützt, ich check das mal. Hast du ein Handbuch zu der Wallbox?
Last updated: 2025-11-06
Post by banialuk on Modbus TCP Server
CODESYS Forge
talk
(Post)
Hello, I have poroblem with define input in function block modbusFB.serverTCP 'dataModel', in my aplication I need starting Input Registers from 3000, and I must define this in 'data Model' but I dont now how exacly to do it. Anybody now somethin about this?
Last updated: 2024-10-19
Post by winki on Modbus TCP & RTU with Control for Linux SL
CODESYS Forge
talk
(Post)
Hello, Today I am able to test ma industrial computer in my test bench. I am able to do all the configuration throught my VPN, 100% remote. I can see the gateway & the Virtual PLC. Now I would like to do some Modbus TCP Client & Modbus RS485. But I am lost due to docker ! When I go to modbus TCP it only gave me the docker network, but not my eth0 & eth01 When I go to modbus rtu, how can I create the link between Com number & my /dev/ttyRS485 Loic,
Last updated: 2024-10-23
Post by fmon on Modbus TCP client reconnection problem
CODESYS Forge
talk
(Post)
Hello, I am using codesys Modbus TCP client (4.4.0.0) to communicate with a python modbus server (package pyModbusTCP). I first start my python server on the distant machine. After a fresh codesys compilation, a plc connection/transfer and a PLC run, the modbus connection is OK. Every time in this context the connection is created correctly. When I shut down the server, the modbus connection falls, that is normal. When I restart the python server, impossible to recreate the modbus connexion. With the client autoreconnection, I see on my server that the client tries to connect but unsuccesfully. I have the following message : DEBUG:pyModbusTCP.server:accept new connection from ClientInfo(address='192.168.1.20', port=33476) DEBUG:pyModbusTCP.server:Exception during request handling: NetworkError('recv return null') I tried to stop the codesys client and to restart it with these commands : Modbus_TCP_Client.xStop := True; // Or False Modbus_TCP_Client.Enable := True; // Or False Modbus_TCP_Server.Enable := True; // Or False I tried to confirm the error manually to force reconnection with: Modbus_TCP_Server_Motors.xConfirmError := TRUE; I tried also this command to STOP/RESET/START client and server (codesys side) but nothing happens : status_client := Modbus_TCP_Client.SetCommunicationState(eRequestedState := DED.DEVICE_TRANSITION_STATE.STOP); // .RESET & .START The answer of this function when executed is "status_client = NOT_SUPPORTED". Is it normal ? It seems that is a socket problem, but I do not understand if it is on the client or server side. I tried a modbus simulator called "ananas.exe" and the result is the same. Impossible to get a modbus client reconnection. What is different at the first client connection and at a reconnection attempt ? Thanks for your help
Last updated: 2025-03-17
TCP Client
CODESYS Forge
talk
(Thread)
TCP Client
Last updated: 2024-07-01
TCP Socket Client
CODESYS Forge
talk
(Thread)
TCP Socket Client
Last updated: 2024-09-11
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
UDP / TCP Verbindung
CODESYS Forge
talk
(Thread)
UDP / TCP Verbindung
Last updated: 2014-02-25
Ethernet (TCP/IP)
CODESYS Forge
talk
(Thread)
Ethernet (TCP/IP)
Last updated: 2022-06-02
Kommunikation über TCP-IP
CODESYS Forge
talk
(Thread)
Kommunikation über TCP-IP
Last updated: 2009-07-01
TCP Socket communication
CODESYS Forge
talk
(Thread)
TCP Socket communication
Last updated: 2021-08-26
TCP-IP Port öffnen
CODESYS Forge
talk
(Thread)
TCP-IP Port öffnen
Last updated: 2011-08-22
TCP Verbindung mit SysSockets
CODESYS Forge
talk
(Thread)
TCP Verbindung mit SysSockets
Last updated: 2015-01-22
TCP Verbindung mit Codesys
CODESYS Forge
talk
(Thread)
TCP Verbindung mit Codesys
Last updated: 2010-09-16
TCP Verbindung mit SysLibSockets
CODESYS Forge
talk
(Thread)
TCP Verbindung mit SysLibSockets
Last updated: 2006-02-09
raspberry tcp socket
CODESYS Forge
talk
(Thread)
raspberry tcp socket
Last updated: 2018-01-30
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.