Aleksey Posted August 28, 2019 Report Share Posted August 28, 2019 Why it is not possible to insert P and N contacts inside a function? Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted August 28, 2019 MVP 2022 Report Share Posted August 28, 2019 Is this a UDFB? If so, keep in mind there is no retained memory of local variables after a UDFB executes. Transition contacts require retained memory in order to know a transition occurred. Quote Link to comment Share on other sites More sharing options...
Aleksey Posted August 29, 2019 Author Report Share Posted August 29, 2019 OK. How to organize the processing of the algorithm along the rise and fall inside UDFB? The structure in the image continues to be processed in a loop, even after setting the ON bit. I mistakenly inserted a coil instead of a contact, but even if there is a contact, the circuit repeats itself cyclically until the Alarm.Active bit is true Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.