Zykluszeit mit der Modicon M340 von Schneider

peterpan

Level-1
Beiträge
1
Reaktionspunkte
0
Zuviel Werbung?
-> Hier kostenlos registrieren
tachjen,

ich muss für ein projekt die zykluszeit von meinen Programm (in verschiedenen sektion unterteilt) messen. ich habe über den hilfe den baustein freerun gefunden. der gibt zwar werte aus, aber irgentwie nichts sinnvolles.

geh ich richtig in der annahme, dass ich zykluszeit über einen zähler messen muss? Wenn ja, wie muss der aussehen?

Danke schonmal

Gruss

PeterPan
 
Zycluszeit M340

Measuring the cycletime is done in three parts :

1. Create a pulse that switches from 1 to 0 every cycle (zb a closed contact in series with its own output) (M1 = Not M1)
2. Count 500 of these pulses (counter with preset value 500). Take care !! 500 counts give you 1000 scantimes !!!
3. Each time this counter reaches the preset value (1000) , reset a timer, and reset the counter. This timer gives you the time of 1000 scans, so if the timebase is in seconds this timer gives you the scantime in ms....Before resetting the timer, you need to copy the value of it to a memorylocation (move function) in order to keep the value visible.


Chris
 
Zurück
Oben