"Distributed clocks are not synchronized, Rea time problem on hardware" ?
CODESYS Forge
talk
(Thread)
"Distributed clocks are not synchronized, Rea time problem on hardware" ?
Last updated: 4 days ago
Post by abuckie on i2c master not running
CODESYS Forge
talk
(Post)
Hello, I am trying to create an Ethernet/IP device that can read analog signals, do some basic logic on it and then hand communicate the results to an Ethernet/IP master. I am using the Raspberry Pi to experiment with this as I would ultimately like to drive a display as well. I have loaded up the runtime on the Pi and got the digital I/O working. I have an ADS1115 ADC to I2C board and I can't get it to work, I get a message telling me the i2c master is not running and I am not sure where to start with this. Is there a manual for running CODESYS on the Pi or something like that I am missing? I found this post and opening the project in CODESYS V3.5 SP21 it seems like tons of this wouldn't convert properly https://forge.codesys.com/forge/talk/Runtime/thread/f1400b71b6/ I have added in the library and device manually and copied the structured text program but lost at what to do if the core functionality of the master is not running. I appreciate any help, thanks.
Last updated: 2025-05-19
Set up the gateway and device by IP address and device address
CODESYS Forge
talk
(Thread)
Set up the gateway and device by IP address and device address
Last updated: 2022-05-04
Variables retain, graceful shutdown, csv configuration file and visu, logfile and web log connection
CODESYS Forge
talk
(Thread)
Variables retain, graceful shutdown, csv configuration file and visu, logfile and web log connection
Last updated: 2018-03-26
Post by yannickasselin on MQTT QoS 1 & 2
CODESYS Forge
talk
(Post)
Hello, After some more tests, here is what I found out. It seems we have to increase the uiKeepAlive and tPingInterval parameters. If I increase the uiKeepAlive value to 60s and the tPingInterval to 30s, then if I disconnect the ethernet cable from Codesys and publish some messages to which Codesys subscribes to and then reconnect within 30s, I will get the messages. If I don't reconnect the cable within 30s (ping interval), the client goes in error with "ACKNOWLEDGE_TIMEOUT". When this happens, it will not automatically reconnect after reconnecting the cable. I have to disable and re-enable the client but I will not get the published messages. I need to do more tests because there are a lot of weird things happening when playing with the ping interval and the keep alive. It is not clear to me what does what. I even ended up not receiving messages anymore, even if I disabled and re-enabled the mqtt client. The client did not give any error. The only way I was able to get messages again was by modifying my client ID. After that, if I try to re-use one of the old client IDs, nothing works (publish, subscribe) and I get a TCP_INIT_ERROR and sometimes a TCP_READ_ERROR. I need more explanation/documentation about these weird behaviors. Maybe it is the way I use it, maybe it is related to the broker (I am using Mosquitto with default parameters). When using a Node-Red client, everything works perfectly. I am trying to achieve the same behavior with Codesys but it seems impossible so far.
Last updated: 2024-10-30
Raspberry pi 3 and runtime 4.9.0.0
CODESYS Forge
talk
(Thread)
Raspberry pi 3 and runtime 4.9.0.0
Last updated: 2023-09-23
Pointers and online change
CODESYS Forge
talk
(Thread)
Pointers and online change
Last updated: 2010-12-13
Runtime User Managment and web-visu
CODESYS Forge
talk
(Thread)
Runtime User Managment and web-visu
Last updated: 2018-11-05
Codesys V3 and Enron Modbus
CODESYS Forge
talk
(Thread)
Codesys V3 and Enron Modbus
Last updated: 2022-11-09
Library download server and library update
CODESYS Forge
talk
(Thread)
Library download server and library update
Last updated: 2021-09-14
Raspberry PI2 and relay board
CODESYS Forge
talk
(Thread)
Raspberry PI2 and relay board
Last updated: 2015-12-06
CanOpen Manager and RawCan simultaneously?
CODESYS Forge
talk
(Thread)
CanOpen Manager and RawCan simultaneously?
Last updated: 2017-11-08
Read and Write variables through Visualization
CODESYS Forge
talk
(Thread)
Read and Write variables through Visualization
Last updated: 2017-05-18
OPCGatewayClient and csv file
CODESYS Forge
talk
(Thread)
OPCGatewayClient and csv file
Last updated: 2007-08-31
Network Variables and Device Change
CODESYS Forge
talk
(Thread)
Network Variables and Device Change
Last updated: 2021-09-24
Table and Dynamic Text property
CODESYS Forge
talk
(Thread)
Table and Dynamic Text property
Last updated: 2019-04-24
Codesys and SMS in RPi
CODESYS Forge
talk
(Thread)
Codesys and SMS in RPi
Last updated: 2023-09-29
Data storage and Export in Codesys
CODESYS Forge
talk
(Thread)
Data storage and Export in Codesys
Last updated: 2023-10-29
Mapping GPIO and adding GPIO configurations
CODESYS Forge
talk
(Thread)
Mapping GPIO and adding GPIO configurations
Last updated: 2023-11-16
Code Coverage and Test Manager
CODESYS Forge
talk
(Thread)
Code Coverage and Test Manager
Last updated: 2024-07-11
Code Coverage and Test Manager
CODESYS Forge
talk
(Thread)
Code Coverage and Test Manager
Last updated: 2024-07-11
Wago PLC Crashing and Cant Reconnect
CODESYS Forge
talk
(Thread)
Wago PLC Crashing and Cant Reconnect
Last updated: 2024-07-30
CODESYS 3.5 Testmanager and Jenkins
CODESYS Forge
talk
(Thread)
CODESYS 3.5 Testmanager and Jenkins
Last updated: 2024-08-07
CSV file and string manipulation.
CODESYS Forge
talk
(Thread)
CSV file and string manipulation.
Last updated: 2024-09-27
Shared memory between Python and Codesys
CODESYS Forge
talk
(Thread)
Shared memory between Python and Codesys
Last updated: 2024-10-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.