2/9/2013 6:33 PM | |
Joined: 12/4/2009 Last visit: 5/3/2024 Posts: 452 Rating: (135) |
igor62il, use OB100 to set some user-defined bit, or useOB1_SCAN_1 information. More about OB1_SCAN_1 on thislink. Hope this helps, Regars. |
If this post actually helped, you may consider using the Rate button above. |
|
2/9/2013 6:37 PM | |
Joined: 1/28/2009 Last visit: 5/19/2024 Posts: 6839 Rating: (1359)
|
Hello , I have not worked on OMRON PLCs but I guess you want to find out how S7 CPUs executes after power on. Organization blocks are the interface of user's program to hardware.OB100 (OB101,OB102 with some differences which explained in STEP7 online manual) is available to determine your program reaction to CPU restart.In practice resetting some bits(or set some), making loops in manual,initialize communication and initializing production sequences are implemented. Best regards Hamid Hosseini Attachmentneu_start.zip (322 Downloads) |
Last edited by: hdhosseini at: 2/9/2013 6:44 PM |
|
This contribution was helpful to1 thankful Users |
2/9/2013 7:17 PM | |
Joined: 3/21/2006 Last visit: 4/25/2024 Posts: 10228 Rating: (1181) |
Read suggested manuals too. Best regards, Hristo Mihalev
|
2/9/2013 8:01 PM | |
Joined: 5/27/2012 Last visit: 8/17/2023 Posts: 177 Rating: (0) |
To hdhosseini Yes,I want only one short puls only after power up on or reset PLC |
2/9/2013 9:07 PM | |
Joined: 5/27/2012 Last visit: 8/17/2023 Posts: 177 Rating: (0) |
Yes,Write me an example how to us this type var if you can. |
2/9/2013 9:40 PM | |
Joined: 5/27/2012 Last visit: 8/17/2023 Posts: 177 Rating: (0) |
Very thanks,now I begin understand. Best regards. |
This contribution was helpful to1 thankful Users |
2/11/2013 7:37 PM | |
Posts: 197 Rating: (3) |
Dear hdhosseini, I understand there are 2 scenarios here: 1) set M100.0 in OB100 and then reset it in OB1 (your scheme) or 2) In OB100 --> AN M100.0 --> = M100.1 (by igor62il) Is it that case 1 will keep M100.0 "true" for one scan cycle ; where as case 2 will generate an impulse signal of M100.1for as long as OB100 is active? By the way,is there aneed to count the values through C1? I mean why can't we just SET and CLR the markerbit in OB100 and OB1 respectively? Regards |
2/11/2013 7:57 PM | |
Joined: 1/28/2009 Last visit: 5/19/2024 Posts: 6839 Rating: (1359)
|
Hello , To summarize what were the scenarios: 1-I proposed generating a short pulse in each restart(Execution of OB100) of CPU.This was made sense for me because in some PLC we have same pulse available in system memories. 2-Codes provided by igor62il is just toggling a memory when OB100 executed.I have not seen this case in practice.I personally prefer the short pulse case. Using the counter is symbol of body of program and ensures me that the pulse is generated by incrementation. Best regards Hamid Hosseini |
This contribution was helpful to2 thankful Users |
Follow us on