File Write and Read using Codesys
CODESYS Forge
talk
(Thread)
File Write and Read using Codesys
Last updated: 2014-11-28
read/write to XLS file
CODESYS Forge
talk
(Thread)
read/write to XLS file
Last updated: 2015-03-11
EtherCAT SDO Data Read/Write
CODESYS Forge
talk
(Thread)
EtherCAT SDO Data Read/Write
Last updated: 2021-02-03
Write variable of type TIME
CODESYS Forge
talk
(Thread)
Write variable of type TIME
Last updated: 2018-04-27
File Write and Read using Codesys
CODESYS Forge
talk
(Thread)
File Write and Read using Codesys
Last updated: 2018-09-17
Modbus read/write, PI as slave
CODESYS Forge
talk
(Thread)
Modbus read/write, PI as slave
Last updated: 2018-10-02
write new IP address from Codesys
CODESYS Forge
talk
(Thread)
write new IP address from Codesys
Last updated: 2020-09-08
PFC200 (8208) Com port write
CODESYS Forge
talk
(Thread)
PFC200 (8208) Com port write
Last updated: 2022-09-21
Codesys read and write with MicroLogix1100
CODESYS Forge
talk
(Thread)
Codesys read and write with MicroLogix1100
Last updated: 2021-12-14
Problem mit Canopen SDO Write
CODESYS Forge
talk
(Thread)
Problem mit Canopen SDO Write
Last updated: 2019-10-31
Read xml and write values
CODESYS Forge
talk
(Thread)
Read xml and write values
Last updated: 2014-07-04
I2c write is BeforeWriteOutputs needed?
CODESYS Forge
talk
(Thread)
I2c write is BeforeWriteOutputs needed?
Last updated: 2024-02-07
CANOpen SDO to write VISIBLE STRING
CODESYS Forge
talk
(Thread)
CANOpen SDO to write VISIBLE STRING
Last updated: 2024-04-29
Modbus write via FB failure
CODESYS Forge
talk
(Thread)
Modbus write via FB failure
Last updated: 2025-11-06
Post by kumareasu on Code Size
CODESYS Forge
talk
(Post)
Hello, How to find the following for for my application when I want to switch over to "Application Based Licence"... Code Size. IO size When I use Analog IO. IO size when I use AC inverter(Drive for AC induction motor). For example we read/write few EtherCAT registers.
Last updated: 2023-09-07
Post by kurtk on Modbus TCP Server
CODESYS Forge
talk
(Post)
ditto I'm just getting my codesys wheels on and the modbus stuff is confusing. I am re-platforming an existing PLC application On that platform one could simply tag variables to register numbers and the whole shooting match could be accessed via modbus and typically holding registers and input registers were treated the same way... On codesys I see there is a modbus TCP server Device I/O mapping tab and a Modbus TCP server IEC objects tab I get the sense that one can configure the serving of variables both/either way but am unclear about the optimum/necessary path. Apparently in the IEC Objects tab one can "ADD" something or other - presumeably channels. I have created a preliminary function block but the Select Function Block window shows nothing to select WTH ? I exported the Device mapping and was surprised to see the entire Device IO map - complete with all the bit-mapped holding/input registers!! WTH!!?? Bit-mapped words are strictly a nichey special purpose application. I am targetting making a couple hundred variables available which would turn into hundreds of pages of IO/mapping Is the FUnction Block IEC objects thingy an alternative to that ? I notice that CODESYS shows the tags which the PLC used to specify the register address... are tags used in CODESYS for any specific hard-core purpose ?
Last updated: 2025-08-19
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 timvh on Modbus Extended Registers
CODESYS Forge
talk
(Post)
Maybe the following helps: https://forge.codesys.com/prj/codesys-example/modbus/home/Home/
Last updated: 2023-08-26
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 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: 2 days ago
Post by ben1 on How to write multiple coils (Modbus FC15)
CODESYS Forge
talk
(Post)
When you say it does not work, does nothing happen or do you get an error? I have not used this function in codesys but from my past experience with Modbus I believe the coils need to be contiguous, which may be why yours is failing? Have you tried using Write Registers (16) to do the job? Or is their data in-between you do not want to edit in the transaction?
Last updated: 2024-11-17
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
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.