7/22/2015 11:28 AM | |
Joined: 3/5/2014 Last visit: 8/5/2022 Posts: 5521 Rating: (1051) |
hi Licarry, don´t you think you should do your test by your self? I don´t think it makes sense to let your work do by others... Maybe it sounds hard for you, but I think if you need to do this by others, like every thread of you before, you should do something else. I don´t think this forum should be a platform for such requests. regards, |
FCK WAR! |
|
This contribution was helpful to2 thankful Users |
7/22/2015 11:48 AM | |
Posts: 16 Rating: (0) |
Hi I am not a engineering professional and i am new for PLC programming. My background is Web programming field so only i need help from others. Meantime i tried my end also i didn't get solution This is my solution A I 0.0 I tried it but loop not working |
7/22/2015 11:56 AM | |
Posts: 16 Rating: (0) |
So please don't hurt others without know about him. Solution for this question not only help for me. It will help for lot of new Siemens step 7 learners also. |
Last edited by: Licarry63 at: 7/22/2015 11:58:55 AMLast edited by: Licarry63 at: 7/22/2015 12:02:57 PM |
|
7/22/2015 12:17 PM | |
Joined: 1/28/2009 Last visit: 5/19/2024 Posts: 6840 Rating: (1359)
|
Hello, Your question is very similar to the following old thread : 3s ON , 6s OFF timerTo do your task you need a timing diagram as I sketched .I think it is helpful while it is rough.You need a pulse signal from PLC internal pulse that can be parameterized in HW Config-->properties of CPU.Rung the counter with this pulse to count in up direction.Calculate in your diagram how many pule counting is enough to finalize the whole task and reset the counter that time.For each outputs, just use compares in series (or parallel) to activate them. I hope this helps, hdhosseini |
Last edited by: hdhosseini at: 7/22/2015 12:25:46 PMLast edited by: hdhosseini at: 7/22/2015 5:21:12 PM//attached file deleted because same diagram can be found in the mentioned thread. |
|
This contribution was helpful to2 thankful Users |
7/22/2015 12:30 PM |
|
Joined: 3/5/2014 Last visit: 8/5/2022 Posts: 5521 Rating: (1051) |
Dear Licarry, i don´t want to hurt you. I really like to help someone else. But I don´t think that it is a help for you, when someone else doing your homework or school test Almost everyone of us is earning money with programming, and we working hard. We are helping each other here in our free time. I ´m sorry to say you that the knowledge in plc-programming you to get your task done, probably is not enough to get it solved in a forum. I see that by the way you try to get your task solved. For example I give you one hint: Is your solution a ladder diagram? Sorry, I don´t want to be the bad guy for you. I just say what it seems to me, and what I think it is the truth. Maybe you are lucky, and there is one really nice guy, who is doing it for you. regards, |
FCK WAR! |
|
7/22/2015 1:07 PM | |
Posts: 16 Rating: (0) |
Dear mopS04, No one do like that if i have a question means i tried it so only i got it and this is not any company or project work . I starting to learn PLC My self. As a beginner every one need guide so i treat all this forum members are my guide. As a student i ask my question to my known people and who is willing they will help me and also your way of answer is not good if you have problem in providing full solution means give some hint and ask me to try it myself and also last previous questions i got only hints from others not a solution i did solution my end your are also helped me to get solution in my previous question. On that time i said my heart thanks to you. But i don't know why you get this much of tension... please cool and if you have time help me to learn it. |
This contribution was helpful to1 thankful Users |
7/22/2015 1:10 PM | |
Posts: 16 Rating: (0) |
Dear hdhosseini Thank you very much. I will try to complete it |
Last edited by: Licarry63 at: 7/22/2015 1:11:00 PM |
|
7/22/2015 3:28 PM | |
Joined: 6/24/2013 Last visit: 5/17/2024 Posts: 1605 Rating: (413) |
Hi Sequence requires 3 counters. it looks like mitsubishi (it uses addressing X,Y for inputs and outputs) project. counter C0 checks how many times we repeated the whole sequence counter C1 is sequence step counter counter C2 checks number of repeats for steps 1,2 copy counter to local variable allows us to compare counter against step number. if we can not use compare we can set counter C0 to 3 and count down until 0 the same with C2 and do sequencer using bit variables but this is less convenient. printout of siemens implementation (as FB) attached. AttachmentFB200_Sequence_Exercise.pdf (181 Downloads) |
This contribution was helpful to1 thankful Users |
7/22/2015 4:04 PM | |
Joined: 6/24/2013 Last visit: 5/17/2024 Posts: 1605 Rating: (413) |
Your request is inconsistent: Please give solution for following problem in STL code ASAP. Please help me to complete it asap
1- Using the relay, timer, counter, pulse, and set/reset instructions in your handout, write a PLC ladder (...) and 'give solution ASAP' shall stipulate immediate shipment of a nice case of wine to one who 'gave solution ASAP' ;-) ;-) ;-) |
7/22/2015 4:08 PM | |
Joined: 6/24/2013 Last visit: 5/17/2024 Posts: 1605 Rating: (413) |
S7 is a bit like F4U Corsair - difficult to fly but when mastered it is a deadly weapon;-) |
Last edited by: Piotr.M at: 7/22/2015 5:11:33 PM |
|
This contribution was helpful to1 thankful Users |
7/22/2015 4:59 PM | |
Posts: 5225 Rating: (1187) |
(OFF TOPIC)
x 2
Do remember that not all of us drink alcohol.. |
Last edited by: William_B at: 7/22/2015 4:59:53 PM |
|
This contribution was helpful to3 thankful Users |
7/22/2015 6:19 PM | |
Posts: 5225 Rating: (1187) |
Licarry, [unrelated to question] In the world of PC programmers you can find many examples and very many people trying to boost their egos with what they share with others. It may even be possible to build a program through others' contributions. We "roll" a bit different. Our focus are on teaching the guys how to fish. I for one get hot under the collar when someone asks me the answer without regard on how to get to the answer. Mr. Hosseini has been more wise than I with his answer - I would have given you an emotional response. It will help to know what your background is.. what PC language (only need one) you are familiar with. Knowing what you do know of PLCs also helps. Then we know what is our baseline to work from. [closer to the topic] As with any program task - start on designing a paper design. Something that is not depending on language. For example.. a flow diagram can be used to code JAVA or C++ or STL. I would suggest you work with LADDER instead of STL, if you have a choice. The SCL (not STL) language would also work nicely for you as it is close to PASCAL. SCL however needs an add-on module for the software... or you will have to use STEP7 V1x in TIA PORTAL. Remember that the PLC coding works in such a way that the whole code gets scanned every scan cycle.. with only the required code being executed. For a small program perhaps 5ms cycle. [on topic] The LOOP instruction you used in your example will not work. The PLC scans through-out the program.. it does not pause and wait for the condition to become true before it moves to the next condition. Not trying to be correctly specific to your problem, the portion you shared with us will look typically like..
Note that the code scans top to bottom and automatically restarts scanning from the top (as if using a repeat-until loop.) I hope this help an inch or two. w LATE NOTE (07h17 GMT, 23 July 2015) |
Last edited by: William_B at: 7/23/2015 7:08:11 AMThe human slipped in... Code corrections marked with ** Last edited by: William_B at: 7/23/2015 9:04:14 AMLast edited by: William_B at: 7/23/2015 9:21:13 AMThanks to mopS04 for telling me of all the mistakes I have made. Last edited by: William_B at: 7/23/2015 9:25:39 AM:-P if I missed this one.. there is bound to be more! |
|
This contribution was helpful to3 thankful Users |
7/23/2015 7:00 AM | |
Posts: 16 Rating: (0) |
Thanks Piotr.M I will try to complete it |
7/23/2015 7:03 AM | |
Posts: 16 Rating: (0) |
Thanks William_B You words are really impressed me i will try to complete and upload solution for this problem |
This contribution was helpful to1 thankful Users |
7/23/2015 10:30 AM | |
Posts: 16 Rating: (0) |
Thank you Piotr.M. I will try it in stl and learn all process step by step. This is my beginning surely i will improve my knowledge in Step 7 with the help of persons like you. |
7/25/2015 6:52 PM | |
Posts: 101 Rating: (0) |
Hi........... ...............Good day for all of you, Nice greeting for my friend William B. whom i always fond of his way of thinking and dealing with problems. Dear licarry63, i attached you a program that written in LAD hoping that it could help you.but i hope you as beginner to take into considerations the advises of all friends to put your legs on the write path. Hint: this program is written in (LAD/step7 v5.5). Greetings Attachmentsequence.zip (182 Downloads) |
This contribution was helpful to2 thankful Users |
Follow us on