Home (version 1) discussion
khalfaoui
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-10-31
Home (version 1) discussion
therocyn
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-10-31
Home (version 1) discussion
monteta
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-10-31
Home (version 1) discussion
devizz
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-10-31
Home (version 1) discussion
mibik
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-10-31
Home (version 1) discussion
icbm
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-10-31
Home (version 1) discussion
monw
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-10-31
Post by farren on How to stay in a method until something is finished.
CODESYS Forge
talk
(Post)
I know I'm thinking about this wrong -- too many decades of procedural and event-driven programming and only a few months of PLC ST programming...... I've created a visualization with a button that when pushed calls a method. I want the method to take a pressure reading, wait one minute and then take another pressure reading. I'm looking for leaks. I'm using TON for the delay. It seems like what is happening is that the method gets called once and it takes the first reading and starts the TON. But then execution continues, leaves that method call, and the second reading never happens. I can force the method to keep running until the whole thing is done with a While loop, but I understand that is considered BAD in PLC programming. If it push the button again to call the method again, it picks up where it left off and if the timer is complete then it runs the remaining code. How do I keep that method running until it is complete with just one call without using a while loop that ties up the PLC for a minute? Thanks! -Farren
Last updated: 2025-10-31
Home (version 1) discussion
dotolinjames
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-10-31
Home (version 1) discussion
damoogman
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-10-31
Home (version 1) discussion
cer-wa
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-10-31
Home (version 1) discussion
uluking
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-10-31
Home (version 1) discussion
albertobueno
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-11-01
Home (version 1) discussion
jamalafraz
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-11-01
Home (version 1) discussion
hubstation
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-11-01
Home (version 1) discussion
robodrill
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-11-01
Home (version 1) discussion
armf59
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-11-01
Home (version 1) discussion
nchau
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-11-01
Home (version 1) discussion
clyde
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-11-01
Home (version 1) discussion
andyg
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-11-01
Home (version 1) discussion
mechatronics-br
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-11-01
Home (version 1) discussion
naturaloils
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-11-01
Home (version 1) discussion
roparipai
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-11-01
Home (version 1) discussion
vjjimenez
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-11-01
Home (version 1) discussion
richard
wiki
(Thread)
Home (version 1) discussion
Last updated: 2025-11-01