Post by mil581 on Modbus TCP Server connection is ESTABLISHED but all holding registers are value 0?
CODESYS Forge
talk
(Post)
Hello everyone! I'm facing a weird issue with CODESYS Control Win V3 x64 on a fresh Windows install. The situation is as follows: CODESYS Modbus TCP Server (Slave) is running and I can see live values in the mapping display of Modbus settings: GVL (e.g., 32, 42, 50). Port 502 is LISTENING according to netstat. When connecting via Modbus Poll or Node-RED, the connection status changes to ESTABLISHED and everything reports as fine. The Problem: Despite the successful connection, all holding registers return 0 no matter what. It's like the OS accepts the TCP handshake, the request counter goes up but the data payload never reaches Modbus Client (in this case Node-RED or Modbus Poll). Quick Stats: Firewall: Completely OFF. Unit ID: Verified & Matching. IP: Tried 127.0.0.1 and 192.168.0.1. Interface: Correctly bound in Ethernet Device settings. I already tried absolutely everything from changing IP address, subnet, port, deleting the project and starting new one and even nuking my old Windows install. Since I am near completion of my bachelor thesis only thing left for me to do is connect SoftPLC to NodeRED via Modbus but this issue is driving me crazy for weeks. I do not know what to do anymore.
Last updated: 2025-12-25
Post by thieulam on Codesys access to DICTIONARY OBJECTS of ethercat (CoE ) Servo Drive
CODESYS Forge
talk
(Post)
Hello to all! How can I read or write, via my main code (ST), to the registers present in the DO of my ethercat CoE servo drive? These objects appear in the list of the INITIALIZATION page, and from here I can only access them at startup. How do I access it in run time from my main PLC_PROGRAM?
Last updated: 2024-06-19
Automatic parameter change with "Write all values"
CODESYS Forge
talk
(Thread)
Automatic parameter change with "Write all values"
Last updated: 2012-10-22
Write to File on soft PLC winV3x64
CODESYS Forge
talk
(Thread)
Write to File on soft PLC winV3x64
Last updated: 2023-10-24
IO-Link read/write parameters Ethernet/IP
CODESYS Forge
talk
(Thread)
IO-Link read/write parameters Ethernet/IP
Last updated: 2024-09-04
How to write multiple coils (Modbus FC15)
CODESYS Forge
talk
(Thread)
How to write multiple coils (Modbus FC15)
Last updated: 2024-11-17
Modbus Master read/write over Ethernet UDP/TCP libraries
CODESYS Forge
talk
(Thread)
Modbus Master read/write over Ethernet UDP/TCP libraries
Last updated: 2025-02-07
Script python for write in a file Project information
CODESYS Forge
talk
(Thread)
Script python for write in a file Project information
Last updated: 2025-04-28
Script python for write in a file Project information
CODESYS Forge
talk
(Thread)
Script python for write in a file Project information
Last updated: 2025-07-13
Recipe Manager - RecipeManCommands, load & write wrong values, Bug?
CODESYS Forge
talk
(Thread)
Recipe Manager - RecipeManCommands, load & write wrong values, Bug?
Last updated: 2025-09-16
Error using function block "Write alias address"
CODESYS Forge
talk
(Thread)
Error using function block "Write alias address"
Last updated: 2025-10-01
How to write a for loop in ladder?
CODESYS Forge
talk
(Thread)
How to write a for loop in ladder?
Last updated: 2025-10-06
Create and write data in a file text (csv)
CODESYS Forge
talk
(Thread)
Create and write data in a file text (csv)
Last updated: 2021-03-10
Write of address to slave not succesfull
CODESYS Forge
talk
(Thread)
Write of address to slave not succesfull
Last updated: 2020-02-11
Codesys and smartphone (read and write)
CODESYS Forge
talk
(Thread)
Codesys and smartphone (read and write)
Last updated: 2012-01-14
Error 10038, failed to write/update PPO
CODESYS Forge
talk
(Thread)
Error 10038, failed to write/update PPO
Last updated: 2021-02-26
CODESYS 3.5.16 - Profinet Acyclic data read/write services
CODESYS Forge
talk
(Thread)
CODESYS 3.5.16 - Profinet Acyclic data read/write services
Last updated: 2020-07-30
How to Read and Write SD card
CODESYS Forge
talk
(Thread)
How to Read and Write SD card
Last updated: 2016-12-01
Write and read WORD from I/O modules adress?
CODESYS Forge
talk
(Thread)
Write and read WORD from I/O modules adress?
Last updated: 2021-02-13
Free way to read and write CSV
CODESYS Forge
talk
(Thread)
Free way to read and write CSV
Last updated: 2021-06-27
Read/Write Modbus register from Scada/HMI
CODESYS Forge
talk
(Thread)
Read/Write Modbus register from Scada/HMI
Last updated: 2020-07-08
write e txt file with SysfileWrite ( Need help)
CODESYS Forge
talk
(Thread)
write e txt file with SysfileWrite ( Need help)
Last updated: 2020-06-23
CAA File: Read/write from shared folder or network drive.
CODESYS Forge
talk
(Thread)
CAA File: Read/write from shared folder or network drive.
Last updated: 2019-02-25
Write variables of a structure inside another structure with pointers
CODESYS Forge
talk
(Thread)
Write variables of a structure inside another structure with pointers
Last updated: 2022-01-27
Modbus TCP map read/write register to the same variable
CODESYS Forge
talk
(Thread)
Modbus TCP map read/write register to the same variable
Last updated: 2019-04-27
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.