buderosdad
Member
Hi everyone,
I am an old AB guy who knows how their PLCs at least execute a program. I have just programmed a couple of Modicon M221s and have a question on how they handle a POU (their version of a subroutine). Seems to me that when you call a POU they don't execute it at that moment but set a flag? and then run the POU after the MAIN program scan? Or? Results that the POU would set are not available during the calling scan, to me kind of weird.
Think this why you can't nest POUs and maybe why they don't even call them subroutines? Pretty sure they handle timers, counters, etc in a similar manner.
Thanks
I am an old AB guy who knows how their PLCs at least execute a program. I have just programmed a couple of Modicon M221s and have a question on how they handle a POU (their version of a subroutine). Seems to me that when you call a POU they don't execute it at that moment but set a flag? and then run the POU after the MAIN program scan? Or? Results that the POU would set are not available during the calling scan, to me kind of weird.
Think this why you can't nest POUs and maybe why they don't even call them subroutines? Pretty sure they handle timers, counters, etc in a similar manner.
Thanks