Schneider M221 POU scan

buderosdad

Member
Join Date
May 2015
Location
Pennsylvania
Posts
2
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
 
Revised post

I'm sorry I should have said a "free" POU that is being used as a subroutine. POUs in the Master task are not called but scheduled. I saw nothing in the referenced literature as to how they are implemented during a scan of a program.
 

Similar Topics

Hello, I need to access the bits from the fire system control panel through RS-485. So, I used Read Var block to read from the panel...
Replies
0
Views
187
Hi, I am stuck with these SE cartridges, I am trying to add a second serial port rs485 to a M221 PLC. What is the difference between TMC2CONV01...
Replies
1
Views
116
I am using a M221 PLC (TM221CE24R) which provides me 1 Rs485 port, which I am already using to communicate with a sensor (Rs485/Modbus). My...
Replies
1
Views
744
Hello, I am programming a schneider modicon M221 in machine expert basic. I am trying to calculate a value and then assign it to another memory...
Replies
3
Views
1,373
Hello, I am trying to detect when the PLC changes from STOP to START mode. This can be considered an edge case scenario, but I would to analyze...
Replies
4
Views
1,566
Back
Top Bottom