Technical Forum

STEP 7 Additional Software

OB10 how to make it work ?

Erstellt von minipeddy am 06.08.2012 13:23 (8 Antworten)

« Vorheriges Thema Nächstes Thema »
Seite 1 von 1 (9 Objekte)
  06.08.2012, 13:23
Beigetreten am: 07.03.2012
Letzter Besuch: 15.05.2013
Beiträge: 59
Bewertung:
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Hi again, i guess u have seen my threds about my ob10.
Ive now achived to place my block into the ob10"Day of interupts". This is the and block on the attachment. 

How the "Day of interupts" should work for me, is give a positive edge (blinking pink line) to clean 1 block x4.

I would presciate any helpfull answers. this nut is really driving me mad!! =)
best regards
Oystein.

Dateianhang: diverse.jpg  (47 Downloads)

Top
  06.08.2012, 14:29
Beigetreten am: 28.05.2008
Letzter Besuch: 23.05.2013
Beiträge: 2187
Bewertung:
Bewertung: Herausragend [3,65 von 5 / 431 mal bewertet]. (431) 
Benutzer mit speziellen Fachkenntnissen, die einzelne Konferenzen betreuen
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
minipeddy wrote:
Hi again, i guess u have seen my threds about my ob10.
Ive now achived to place my block into the ob10"Day of interupts". This is the and block on the attachment. 

How the "Day of interupts" should work for me, is give a positive edge (blinking pink line) to clean 1 block x4.

I would presciate any helpfull answers. this nut is really driving me mad!! =)
best regards
Oystein.
Hello,
To enble executing OB10, you have to activate it in HW configuration and make the rule that the OB will be executed based on (When you want the OB 10 to be executed? Every minute, hour, once a day,...etc) and also the starting date and time for execution. Do not forget to adjust time and date of your CPU and also you have to mark the check mark "active"
Hope this helps.

Dateianhang: ob10.JPG  (48 Downloads)

Ayman Elotaify
MISC Egypt
www.miscegypt.com

Top
  06.08.2012, 15:07
Beigetreten am: 07.03.2012
Letzter Besuch: 15.05.2013
Beiträge: 59
Bewertung:
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
thanks for the tip, but clock and setup i hardware config is ok. My problem is (look at last attachment) the "and block" who triggers the bit, stays high all time. It dosent go false. What can be wrong ? 
Top
  06.08.2012, 15:43
Beigetreten am: 03.10.2008
Letzter Besuch: 02.05.2013
Beiträge: 522
Bewertung:
Bewertung: Herausragend [3,46 von 5 / 52 mal bewertet]. (52) 
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Hi,
you must change the input variable of the ADD block. Make a link between the output of the ADD block and an input of the ADD block and negate it.

Wüstenräuber
Top
  06.08.2012, 23:38
Beigetreten am: 07.03.2012
Letzter Besuch: 15.05.2013
Beiträge: 59
Bewertung:
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Like this ?
The problem is when the the time is reaced for the ob10 daily interupt nothings happens....
Hardware config is ok.
clock adjustment is ok.
what else can be wrong ?
I only need a positive edge into my block from the and block. 

Dateianhang: diverse2.jpg  (28 Downloads)

Top
  07.08.2012, 08:48
Beigetreten am: 28.05.2008
Letzter Besuch: 23.05.2013
Beiträge: 2187
Bewertung:
Bewertung: Herausragend [3,65 von 5 / 431 mal bewertet]. (431) 
Benutzer mit speziellen Fachkenntnissen, die einzelne Konferenzen betreuen
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Hello,
So if I am not wrong, you need a pulse on certain marker  to be high once per day (during time of day HW interrupt ) "OB10". Am I right?
And then this bit should be reset. And your problem now is that this bit is always high. Am I right?
So there are more than one solution assuming that the bit is "M15.0".
  • Write in any where OB1:
    R M15.0
    and write in OB10:
    S M15.0
    So M15.0 will be high when the program call OB10 and it will keep high until the program call reset instruction in OB1. So, the pulse width of this bit is less than one scan cycle. Is this acceptable for you?
Hope this helps.

Ayman Elotaify
MISC Egypt
www.miscegypt.com
Top
  07.08.2012, 14:50
Beigetreten am: 07.03.2012
Letzter Besuch: 15.05.2013
Beiträge: 59
Bewertung:
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Hi again!. THis seems to be the hardest nut ever.
Well i made myself a memory called M10.5 and stored it in the symbol table as " interupt memory".
Futher on in ob10 i have the following sentence: 

  
  S     "Interupt Memory"

and in the 
ob1 i have the 

  R     "Interupt Memory"            

In the CFC diagram i just make a connection to the memory "Interupt Memory" (attachment pink line)

It still Doesnt work ????? clock and interupt are check and uploded to the plc.

Dateianhang: diverse3.jpg  (14 Downloads)



=== Edited by minipeddy @ 8/7/2012 2:52 PM [GMT ] ===



Top
  08.08.2012, 00:27
Beigetreten am: 07.03.2012
Letzter Besuch: 15.05.2013
Beiträge: 59
Bewertung:
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Hi again people.
I've finaly come to end to my problem with my ob10. I guess the 24 Hours clock on my computer and the 12 hours clock on the cpu confused me.blush.


Anyway i really want to understand how the we can make this with the run mode in cfc chart.
Ive added a SR flip flop and want that to send out a signal when the ob10 time of interupt occurs (ex 10.00)
The SR flipflop are added in the ob10 Run mode in cfc chart. But nothings happens when the time of interupt occours.
Anyway when i go into the ob10 and see it online there is something that is set "true".
Can anybody help me understand whats is set "true" ?

Oystein.



Dateianhang: diverse4.jpg  (19 Downloads)

Top
  09.08.2012, 14:05
Beigetreten am: 07.03.2012
Letzter Besuch: 15.05.2013
Beiträge: 59
Bewertung:
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Hi does anybody have a example of a ob10 made in cfc ? no watter what file, i just need a example. =)
I would be gald if someone gave me an example =)
Best regards 
Oystein.
Top
Seite 1 von 1 (9 Objekte)
Aktionen