A atiaust Active Member Licensed User Longtime User Jan 20, 2019 #1 Hi all, I am writting a small app to monitor a couple of inputs. I am using a looper to monitor the Inputs. When both inputs become true I use callsubplus to delay before switching on an output. My question is if both inputs remain true does the callsubplus get fired every loop? Thanks
Hi all, I am writting a small app to monitor a couple of inputs. I am using a looper to monitor the Inputs. When both inputs become true I use callsubplus to delay before switching on an output. My question is if both inputs remain true does the callsubplus get fired every loop? Thanks
Erel B4X founder Staff member Licensed User Longtime User Jan 20, 2019 #2 atiaust said: My question is if both inputs remain true does the callsubplus get fired every loop? Click to expand... Yes. Calls to CallSubPlus do not cancel previous calls. Upvote 0
atiaust said: My question is if both inputs remain true does the callsubplus get fired every loop? Click to expand... Yes. Calls to CallSubPlus do not cancel previous calls.
A atiaust Active Member Licensed User Longtime User Jan 20, 2019 #3 Thanks Erel. Can a callSubPlus be reset or cancelled? Thanks Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jan 20, 2019 #4 No. My guess is that it will be easier to implement your program logic without a looper. Either use a timer or CallSubPlus to call the next iteration each time. Upvote 0
No. My guess is that it will be easier to implement your program logic without a looper. Either use a timer or CallSubPlus to call the next iteration each time.
A atiaust Active Member Licensed User Longtime User Jan 20, 2019 #5 Thanks. I am trying to create a small PLC that runs continuously. Do you know of any examples to use a timer instead of a looper? Upvote 0
Thanks. I am trying to create a small PLC that runs continuously. Do you know of any examples to use a timer instead of a looper?
Erel B4X founder Staff member Licensed User Longtime User Jan 20, 2019 #6 Timers, Loopers and CallSubPlus Upvote 0
A atiaust Active Member Licensed User Longtime User Jan 20, 2019 #7 Erel, Does a timer keep repeating until it is disabled? ie timer1.enabled = false Thanks Upvote 0