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? Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted August 28, 2019 MVP 2023 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. 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now