Logo - časová presnosť.
Moderátor: Moderátoři
Logo - časová presnosť.
Nejsem specialista na logo, ale řekl bych, že i PLC logo má jakousi dobu cyklu, řekněme 100ms. Pokud chceš čítat "rychlé děje", měl bys na to použít rychlé vstupy a bloky, které to podporují. Tvůj signál má frekvenci 1/0.12=8.33Hz což je už docela rychlý děj (pro PLC)
edit 1. asi tam máš dva čítače, jeden rychlý s rozlišením 0.01s a jeden "hradlovací" s rozlišením 0.1s, podle mě odtud bude ta nepřesnost. Použij oba se stejným rozlišením a vyzkoušej, zda načítají správně.
2/ pohledem do dokumentace strana 182 píšou:
Up/down counter
The function counts the 0 to 1 transitions at input
Cnt. 1 to 0 transitions are not counted.
You can use the following as the input:
• inputs I3, I4, I5, and I6 for fast counting (only
LOGO! 12/24RCE/RCEo and LOGO! 24CE/24CEo):
max. 5 kHz, if the fast input is directly connected
to the up/down counter function block
• any other input or circuit component for counting
low frequency signals (typically 4 Hz)
Závěr. Pokud použiješ rychlé vstupy, můžeš čítat do 5kHz. Pokud použiješ cokoliv jiného, sorry max. 4 Hz
2/ Tvůj Asynchronní generátor má TH=30ms a TL=90ms. TH už je blízko "cycle time"
3/ Zkusil jsem u sebe Asynchronní generátor TH=60ms a TL=60ms. Výsledek: "Up/Down Counter" načítá správně za 120s je N=1000. Tj.. N=(1/0.12)[Hz]*120[s]=1000
4/ Pro rychlé děje, např. měření otáček, jsou zvášť určené rychlé vstupy a bloky, které za splnění určitých podmínek, pracují "rychleji" než onen "cycle time" (až 5kHz)
Restrictions
Signal status transitions 0 › 1/1 › 0
After a 0 to 1 or 1 to 0 transition, the signal must remain constant at the input at least for the
duration of one program cycle, so that LOGO! can detect the new signal status.
The size of the circuit program determines the program execution time. The appendix
"Determining the cycle time (Page 355)" contains a benchmark test routine that you can use
to determine the current scan cycle time.
Special features of LOGO! 12/24RCE/RCEo and LOGO! 24CE/24CEo
Fast digital inputs: I3, I4, I5 and I6
These modules include fast digital inputs (up/down counters, threshold triggers). The
restrictions mentioned earlier do not apply to these fast digital inputs.
