Post by rmaas on Strange Behavior on Raspberry Pi
CODESYS Forge
talk
(Post)
Hello, what you are seeing is not strange behavior. The problem is that everyting is happening in the same program cycle. After the variable Stepnumber is changed from 10 to 20 for example then you want the program to wait with the next EQ until the next program cycle. Else every EQ will be be true because in every line the variable Stepnumber is increased. When the program arrives (still in the same cycle) at the line with the timer, the Stepnumber has been increased to 30 in the meantime and the timer will allway be ON because even though the variable is written to 10 in this line in the next cycle it starts with 10 and will be 30 again before reaching the timer in line 8. Not very good at explaining stuff but i hope you get the problem. See screenshot below for an example of one way you could solve this...
Last updated: 2024-06-18
unpassword for Codesys libarary
CODESYS Forge
talk
(Thread)
unpassword for Codesys libarary
Last updated: 2021-03-22
for beginner
CODESYS Forge
talk
(Thread)
for beginner
Last updated: 2006-03-24
HMI For BBB
CODESYS Forge
talk
(Thread)
HMI For BBB
Last updated: 2019-08-27
FOR Schleife
CODESYS Forge
talk
(Thread)
FOR Schleife
Last updated: 2008-01-23
Control for Linux SL
CODESYS Forge
talk
(Thread)
Control for Linux SL
Last updated: 2019-02-08
Example for CAA_RealTimeClock.library (timezones)
CODESYS Forge
talk
(Thread)
Example for CAA_RealTimeClock.library (timezones)
Last updated: 2016-09-14
Documentation export for libraries
CODESYS Forge
talk
(Thread)
Documentation export for libraries
Last updated: 2022-01-28
Description for IoConfigParameter.wType
CODESYS Forge
talk
(Thread)
Description for IoConfigParameter.wType
Last updated: 2013-12-25
Unexpected For Loop Operation
CODESYS Forge
talk
(Thread)
Unexpected For Loop Operation
Last updated: 2017-04-13
For loops
CODESYS Forge
talk
(Thread)
For loops
Last updated: 2012-06-11
Request for Ladder Improvements
CODESYS Forge
talk
(Thread)
Request for Ladder Improvements
Last updated: 2015-06-09
Licence for Control Win ....
CODESYS Forge
talk
(Thread)
Licence for Control Win ....
Last updated: 2014-03-13
pdf documentation for libraries
CODESYS Forge
talk
(Thread)
pdf documentation for libraries
Last updated: 2019-09-04
Control for Linux SL
CODESYS Forge
talk
(Thread)
Control for Linux SL
Last updated: 2019-02-07
CODESYS for UniPi
CODESYS Forge
talk
(Thread)
CODESYS for UniPi
Last updated: 2016-09-03
git for Codesys 3.5
CODESYS Forge
talk
(Thread)
git for Codesys 3.5
Last updated: 2019-11-25
Pragma for REAL view
CODESYS Forge
talk
(Thread)
Pragma for REAL view
Last updated: 2018-05-28
CODESYS for BeagleBone Black
CODESYS Forge
talk
(Thread)
CODESYS for BeagleBone Black
Last updated: 2020-10-07
Initial values for structures
CODESYS Forge
talk
(Thread)
Initial values for structures
Last updated: 2018-09-18
value for alarms
CODESYS Forge
talk
(Thread)
value for alarms
Last updated: 2018-04-18
ID for textList
CODESYS Forge
talk
(Thread)
ID for textList
Last updated: 2020-05-20
Analog output for PWM
CODESYS Forge
talk
(Thread)
Analog output for PWM
Last updated: 2022-03-01
Check for null pointer
CODESYS Forge
talk
(Thread)
Check for null pointer
Last updated: 2021-05-19
IEC variable for jitter
CODESYS Forge
talk
(Thread)
IEC variable for jitter
Last updated: 2019-03-27
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
.