Post by julianramirez on ModbusFB write update
CODESYS Forge
talk
(Post)
Hello everyone, I am testing the ModbusFB library tcp server and so far I am able to create holding registers successfully, however, I am trying to identify after each write which registers got updated (i.e. function code, write value). I can even see the var udiNumWriteRequests, which increases with every write. I noticed that there is logging with the LogStatusInfo method. After I call it I am able to read in the console stuff that I want. Nevertheless, this is only available at the logs and is not easy to decode because it consists on several messages, I would like to know if there is a way for me to retrieve this information from the function itself with pointers or if there is any way to copy the logs messages (assuming that I can filter them with the LoggingOptions to only show what I need) inside the runtime code and not in the console. Thanks for your help :)
Last updated: 2024-09-16
Post by struccc on Problem Reading Registers via Modbus from non Codesys device
CODESYS Forge
talk
(Post)
Hi, Might be a good idea first to try out the connection and the device with some handy software, like Modbus Poll. There you can see better, what's really going on... - Is it really connected? - What error code does it return? - Can it read from the register address? - Maybe try Input registers and Holding Registers - can make a difference - Sometimes register addresses are messed up: shifted +-1 (mixing of 2 standards) - Sometimes register addresses start with offset 30000, 40000 ... - Are you using the right protocol? - Is it RTU or TCP? Maybe ASCII? - Can even have a look at the data packets, etc... All this is easier to figure out first with some modbus utility... and then to set it up in CODESYS should not be an issue. P.
Last updated: 2025-03-09
Post by jens on Modbus tcp - channel
CODESYS Forge
talk
(Post)
Help wanted This is the first time i'm doing a Modbus Tcp project. I have some VLT with a extension module MCA-122. i'm currently unable to write to the VLT slave, but i can read from status word parameter=1603 and address := 16029 where the address is calculated from parameter is ((id x 10)-1). in the manual the functions that are supported are 3 hex, 6 hex, 10 hex, b hex and 11 hex. read holdin registers, write single register, write multiple registers, get comm. event counter, report slave id. i'm only using the Modbus Slave Channel is this wrong when trying to write to the vlt ?
Last updated: 2024-06-13
Post by xiaolo on Raspberry Pi 5
CODESYS Forge
talk
(Post)
Does Ver. 4.12 support Raspberry Pi 5? I have three issues. The first issue is that Codesys cannot detect the RPI 5 when I want to download the runtime. When assigning the IP Address manually then I can download the runtime. The second issue is that I cannot connect to the RPI to download a program. Sometimes the window pops up and it ask for the user credentials, but it is still not connecting. The third issue is that I cannot connect to an ESP32 configured as a Modbus Slave with a Raspberry Pi 4B. I can connect to the ESP32 via a Radzio! Modbus Master Simulator. I am also missing the function Write Holding Registers in the setup of the slave. Are this known issues and when it will be solved?
Last updated: 2024-07-12
Read and Write variables through Visualization
CODESYS Forge
talk
(Thread)
Read and Write variables through Visualization
Last updated: 2017-05-18
Write in a file
CODESYS Forge
talk
(Thread)
Write in a file
Last updated: 2011-08-12
Read/Write access of Axis parameters
CODESYS Forge
talk
(Thread)
Read/Write access of Axis parameters
Last updated: 2018-09-27
Function Block to Write Persistent Variables
CODESYS Forge
talk
(Thread)
Function Block to Write Persistent Variables
Last updated: 2019-07-26
CSV Utility write file problems
CODESYS Forge
talk
(Thread)
CSV Utility write file problems
Last updated: 2023-03-07
I2C_Master read/write to specific register
CODESYS Forge
talk
(Thread)
I2C_Master read/write to specific register
Last updated: 2021-03-09
CODESYS RPI, read/write iSocket
CODESYS Forge
talk
(Thread)
CODESYS RPI, read/write iSocket
Last updated: 2017-11-07
string write to txt file
CODESYS Forge
talk
(Thread)
string write to txt file
Last updated: 2023-08-09
Write on a input modbus tcp
CODESYS Forge
talk
(Thread)
Write on a input modbus tcp
Last updated: 2020-02-20
CANopen Manager, SDO Write Error
CODESYS Forge
talk
(Thread)
CANopen Manager, SDO Write Error
Last updated: 2021-01-28
How to use CSV utility write?
CODESYS Forge
talk
(Thread)
How to use CSV utility write?
Last updated: 2019-10-31
write data to the CSV file
CODESYS Forge
talk
(Thread)
write data to the CSV file
Last updated: 2018-01-20
To write a binary file
CODESYS Forge
talk
(Thread)
To write a binary file
Last updated: 2018-12-10
Write and read in sd
CODESYS Forge
talk
(Thread)
Write and read in sd
Last updated: 2021-03-01
Read/write variables Codesys <> Python script
CODESYS Forge
talk
(Thread)
Read/write variables Codesys <> Python script
Last updated: 2020-10-24
Modbus Read/Write Function 23 Problem
CODESYS Forge
talk
(Thread)
Modbus Read/Write Function 23 Problem
Last updated: 2020-08-12
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
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
.