Write one dimensional array into two dimensional array
CODESYS Forge
talk
(Thread)
Write one dimensional array into two dimensional array
Last updated: 2022-02-25
Write/Read JSON data to communicate by TCP/IP
CODESYS Forge
talk
(Thread)
Write/Read JSON data to communicate by TCP/IP
Last updated: 2018-02-08
How To Read&Write RecipeManager BinFile Data
CODESYS Forge
talk
(Thread)
How To Read&Write RecipeManager BinFile Data
Last updated: 2020-04-06
Write CSV file to Revolution PI connect
CODESYS Forge
talk
(Thread)
Write CSV file to Revolution PI connect
Last updated: 2022-02-16
a program test write in chinese!
CODESYS Forge
talk
(Thread)
a program test write in chinese!
Last updated: 2008-07-25
read/write paramters to io-link sensor
CODESYS Forge
talk
(Thread)
read/write paramters to io-link sensor
Last updated: 2021-01-19
Preventing write access to variable declared as VAR_IN_OUT
CODESYS Forge
talk
(Thread)
Preventing write access to variable declared as VAR_IN_OUT
Last updated: 2014-09-13
How to write in a directory
CODESYS Forge
talk
(Thread)
How to write in a directory
Last updated: 2011-09-06
Write an Structure of Structures with pointers.
CODESYS Forge
talk
(Thread)
Write an Structure of Structures with pointers.
Last updated: 2022-01-28
How to WRITE to CSV file
CODESYS Forge
talk
(Thread)
How to WRITE to CSV file
Last updated: 2015-12-24
File Write and Read mit der CAA File Bibliothek
CODESYS Forge
talk
(Thread)
File Write and Read mit der CAA File Bibliothek
Last updated: 2018-02-22
file read/write doesn't work with CAA.File
CODESYS Forge
talk
(Thread)
file read/write doesn't work with CAA.File
Last updated: 2016-02-02
read and write a file to a raspberry folder
CODESYS Forge
talk
(Thread)
read and write a file to a raspberry folder
Last updated: 2020-11-01
OSCAT Network cannot write to disk [RESOLVED]
CODESYS Forge
talk
(Thread)
OSCAT Network cannot write to disk [RESOLVED]
Last updated: 2015-12-06
Issue with CAA File Write FB throwing error code 1
CODESYS Forge
talk
(Thread)
Issue with CAA File Write FB throwing error code 1
Last updated: 2020-06-08
V3 Network Variables with read/write access?
CODESYS Forge
talk
(Thread)
V3 Network Variables with read/write access?
Last updated: 2015-12-17
I have to write on the Raspberry and read
CODESYS Forge
talk
(Thread)
I have to write on the Raspberry and read
Last updated: 2022-02-10
"Multiple Write Access on Output" doesn't work
CODESYS Forge
talk
(Thread)
"Multiple Write Access on Output" doesn't work
Last updated: 2016-12-12
mobus tcp slave device. read/write holdings with 2 variables.
CODESYS Forge
talk
(Thread)
mobus tcp slave device. read/write holdings with 2 variables.
Last updated: 2024-03-20
How to write variable by name
CODESYS Forge
talk
(Thread)
How to write variable by name
Last updated: 2024-06-04
Post by egr99 on Modbus TCP Server connection is ESTABLISHED but all holding registers are value 0?
CODESYS Forge
talk
(Post)
Hi there, Read the above description and experienced the same: Reading coil/discrete input/input register/holding register doesn't fill the mapped I/O variable. Any suggestions? Defined (see attachment): - Ethernet (with parameters according to the used Ethernet adapter of my Windows 11 laptop) - -Modbus TCP Client - - -LOGO231 as Modbus TCP Server - - -WS242 as Modbus TCP Server (WaveShare Modbus TCP <-> RTU converter) - - - -WS242_01 as Modbus Server, COM port (slave-id 1 RTU) - - - -WS242_03 idem (slave-id 3 RTU) - - - -WS242_11 idem (slave-id 11 RTU) Writing coil/holding register works from a mapped I/O variable works fine. Verification of Modbus traffic with WireShark: QUERY to and the RESPONSE of all slave-ids are correct Status of all defined is CONNECTED, RESPONSE_SUCCESS, RUNNING etc. Request counters increase with expected frequency. Error counter = 0. (To have all counters works fine I had to change Modbus TCP Client's parameter OptimizationON to FALSE). LOGO231 works fine: values in mapped I/O conform expectation WS242 without Modbus Server, COM port and with defined channels (for only 1 slave-id possible) works fine. PLC Settings: Update I/O while in stop: I see xBusy changing from FALSE to TRUE and vice versa. Always update variables: Enabled 1
Last updated: 2026-04-05
Post by garrian on How to write multiple coils (Modbus FC15)
CODESYS Forge
talk
(Post)
Thanks for your reply. I belive it is contiguous, I'm writing to adress 0 to 4. Or, do you mean something else? Well, something is happening. If I on the client set adress 1,2,3 to true, only 1 is set to true on the server side. On the client side, the data is array of word. But on the server side, the coils are array of bool. Holding register is array of word on server side. Can this be a problem? Attached screenshot of how it looks at the server side.
Last updated: 2024-11-17
Post by artem1223 on Synaxis of library declarations in the ST
CODESYS Forge
talk
(Post)
Codesys 3.5 17.30, plc - crevis GN-9373. I need to use RTC of pls for write in registers (need to check difference of writen 100 and 200 registers). For this i try to use SysTimeRtc (SysTimeRtc.SysTimeRtcGet) but its not working. After it i tryed to use SysTimeGetMs and something like this but still not working. Library? Mb but check project, SysTime with SysTimeRtc already, all what i know - already is here. Its my first try to learn ST (early used fbd and ladder, yeah), pls help with it. Mb problem with a syntaxis, but im not sure.
Last updated: 2025-11-26
Post by egr99 on Modbus TCP Server connection is ESTABLISHED but all holding registers are value 0?
CODESYS Forge
talk
(Post)
You're absolutely right. Sorry for that. In the meantime I wrote a Function block to handle the reads and writes to the different attached RTU-devices. It processes the parameter like (str_Modbus:=(usiSlave:=1, uiFC:=5, uiLEN:=1, uiOFFSET:=0, uiInterval:=500)) and the corresponding output, waits for the response and processes next request in a 5-state procedure. It's working for 2 gateways (stable without errors, although error recovery is included). But nevertheless it should be possible with the Channel definitions of Codesys. Much easier to maintain :)
Last updated: 2026-04-08
Post by husarz17 on Pi as Modbus TCP slave. Errors
CODESYS Forge
talk
(Post)
Hi, I have similar issue. Is that possible to use more than 4096 registers with Modbus RTU slave?
Last updated: 2026-04-29
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.