Post by shrikantp007 on new to codesys help on modbus with ardunio modbus rtu
CODESYS Forge
talk
(Post)
Hello , I am new to codesys ,working with it for just 15-17 days so ,i think i am able to installed it and configure it ,not i want to use ardunio program (smart dustbin ,college project using motor and Ultrasonic Module HC-SR04 and servo motor). i use ardunio program to write code with chatgpt to work ardunio as a modbus rtu as i dont have ethernet or wifi shild ,i wrote program in ariduno but now don have idea what change i have to make in codesys to comunicate as modbus slave it give error with bus error ,where i can get all errors ? Thanks in advance :)
Last updated: 2024-07-21
Post by timvh on Problem Reading Registers via Modbus from non Codesys device
CODESYS Forge
talk
(Post)
According to the documentation: https://wiki.teltonika-networks.com/view/RUT956_Modbus You need to create a Channel to read 2 registers from address 143 to get the lattitude. It doesn't specify if you need to read it as a Holding Register or as an Input Register. You could try both. So in the Teltonika router, you need to enable it as being a Modbus Server. Then in CODESYS add an Ethernet Adapter, then a Modbus Client (Master) and to the Client (Master) add the Modbus Server (Slave). Set the IP address and add the Channel. The please consider that CODESYS doesn't update any variables when they are not used in the application. In the I/O mapping tab of your I/O configuration, you can set the "Always update" to enabled.
Last updated: 2025-03-08
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
Post by sinameshksar on TCP Socket Client
CODESYS Forge
talk
(Post)
Hello I'm looking for a TCP socket client project example. Can you assist?
Last updated: 2024-09-11
Eine Nummer (Data Type=Double) Schicken mit TCP Client Server Codesys
CODESYS Forge
talk
(Thread)
Eine Nummer (Data Type=Double) Schicken mit TCP Client Server Codesys
Last updated: 2021-09-08
How can i program a TCP/IP communication on softlinkARM?
CODESYS Forge
talk
(Thread)
How can i program a TCP/IP communication on softlinkARM?
Last updated: 2011-06-28
Eine Nummer (Data Type=Double) Schicken mit TCP Client Server Codesys
CODESYS Forge
talk
(Thread)
Eine Nummer (Data Type=Double) Schicken mit TCP Client Server Codesys
Last updated: 2021-09-08
Send Data to a specified Register with TCP/IP Cleint Server
CODESYS Forge
talk
(Thread)
Send Data to a specified Register with TCP/IP Cleint Server
Last updated: 2021-08-25
can I send data over udp/tcp in simulation mode?
CODESYS Forge
talk
(Thread)
can I send data over udp/tcp in simulation mode?
Last updated: 2016-06-05
CAA net base TCP client cause PLC to crash - Kernel message : N0HZ_local_softirq_pending 80
CODESYS Forge
talk
(Thread)
CAA net base TCP client cause PLC to crash - Kernel message : N0HZ_local_softirq_pending 80
Last updated: 2024-01-12
Post by ryabukhun on Ruspberry PI and working with profinet slave.
CODESYS Forge
talk
(Post)
I'm trying to connect a profinet slave, but the AR сmi timeout error appears, what could be the reason?
Last updated: 2024-07-30
gear over gear (2 masters,1 slave) - how to do it?
CODESYS Forge
talk
(Thread)
gear over gear (2 masters,1 slave) - how to do it?
Last updated: 2024-08-19
Change IO-Link Device Interface connected to a Profinet-Slave at Runtime
CODESYS Forge
talk
(Thread)
Change IO-Link Device Interface connected to a Profinet-Slave at Runtime
Last updated: 2025-03-19
Servo motor as an slave and AC motor as an Mster
CODESYS Forge
talk
(Thread)
Servo motor as an slave and AC motor as an Mster
Last updated: 2025-07-14
Post by timvh on Ethernet Adapter issues
CODESYS Forge
talk
(Post)
Maybe your slave device didn't properly closed its socket port and CODESYS is unable to reconnect? Did you restart your slave device?
Last updated: 2025-08-26
I want to control a industrial machine with "CODESYS Control Win V3" and a Profibus_DP slave
CODESYS Forge
talk
(Thread)
I want to control a industrial machine with "CODESYS Control Win V3" and a Profibus_DP slave
Last updated: 2018-09-24
Connect a I/O module (EAP Module 2020) as a slave to Revolution PI
CODESYS Forge
talk
(Thread)
Connect a I/O module (EAP Module 2020) as a slave to Revolution PI
Last updated: 2018-03-09
ModbusTCP, can i know when i get requests from slave side?
CODESYS Forge
talk
(Thread)
ModbusTCP, can i know when i get requests from slave side?
Last updated: 2018-11-19
Warning: the number of slave has changed or is different from the configuration
CODESYS Forge
talk
(Thread)
Warning: the number of slave has changed or is different from the configuration
Last updated: 2017-09-11
How to know the admissible devices in the master/slave hierarchy
CODESYS Forge
talk
(Thread)
How to know the admissible devices in the master/slave hierarchy
Last updated: 2017-02-16
K-Bus Klemme an Ethercat Slave einbinden. Gerät konnte nicht hinzugefügt werden.
CODESYS Forge
talk
(Thread)
K-Bus Klemme an Ethercat Slave einbinden. Gerät konnte nicht hinzugefügt werden.
Last updated: 2021-11-28
How to test Slave-Hardware without having the Master-Hardware in Codesys?
CODESYS Forge
talk
(Thread)
How to test Slave-Hardware without having the Master-Hardware in Codesys?
Last updated: 2021-03-05
Configure PLC as CanOpen Slave want the TPDO to be triggered on event..
CODESYS Forge
talk
(Thread)
Configure PLC as CanOpen Slave want the TPDO to be triggered on event..
Last updated: 2020-04-14
Generic CiA402 dirve AL Status read from slave address 1001 status 16#1A: Synchronization error
CODESYS Forge
talk
(Thread)
Generic CiA402 dirve AL Status read from slave address 1001 status 16#1A: Synchronization error
Last updated: 2022-01-13
exporting or copying the COE online data from an ethercat slave device
CODESYS Forge
talk
(Thread)
exporting or copying the COE online data from an ethercat slave device
Last updated: 2019-10-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.