Search found 268 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 27
by RevPiModIO
28 Sep 2022, 19:32
Forum: RevPiModIO
Topic: Python Code mit revpimodio auf einem Raspberry ausführen
Replies: 3
Views: 273

Re: Python Code mit revpimodio auf einem Raspberry ausführen

Moni iotec! Freut mich zu hören, dass ihr die erweiterten Funktionen nutzt! Ihr könnt bei der Instanziierung die Parameter "procimg" und "configrsc" verwenden um der Bibliothek einen Pfad des Prozessabbilds und der piCtory Konfiguration zu übergeben. Diese Parameter sind noch nic...
by RevPiModIO
27 Jun 2022, 16:05
Forum: RevPiModIO
Topic: Überschreiten der Zykluszeit
Replies: 6
Views: 708

Re: Überschreiten der Zykluszeit

Super grob, ohne weiteres Wissen wäre es mit dem .cycleloop z.B. so: # -*- coding: utf-8 -*- """Demo for @Pompowac.""" __author__ = "Sven Sager" __copyright__ = "Copyright (C) 2022 Sven Sager" __license__ = "GPLv3" import revpimodio2 def se...
by RevPiModIO
27 Jun 2022, 15:36
Forum: RevPiModIO
Topic: Überschreiten der Zykluszeit
Replies: 6
Views: 708

Re: Überschreiten der Zykluszeit

Könnt ihr mal eure CPU-Auslastung prüfen? Es scheint mir, dass ihr durch eure `while True:`s den Prozessor killt. Und dann kommt die IO Aktualisierung auch nicht mehr hinterher und die Warnungen erscheinen :O Ihr müsst da irgendwo `Verzögerungen` implementieren oder komplett mit dem reinen `.cyclelo...
by RevPiModIO
11 May 2022, 06:54
Forum: RevPiModIO
Topic: cycle time of 10 ms exceeded - can not hold cycle time!
Replies: 2
Views: 1249

Re: cycle time of 10 ms exceeded - can not hold cycle time!

Could it be, that the queue consumer is to slow? I can not see your value for `maxsize`, but could you try to set that to `0`. If the consumer of the queue is to slow, the `.put(...)` function will block inside of the cycle function. I would change the function parameter name `revpi` to `ct` or some...
by RevPiModIO
10 May 2022, 10:27
Forum: Software
Topic: RevPiPyLoad not sending MQTT? And some basic questions
Replies: 6
Views: 768

Re: RevPiPyLoad not sending MQTT? And some basic questions

Found the bug, will fix right now!

Sven
by RevPiModIO
03 Apr 2022, 10:04
Forum: RevPiModIO
Topic: Warning: Device offset ERROR in piCtory configuration!
Replies: 2
Views: 1010

Re: Warning: Device offset ERROR in piCtory configuration!

I think you are using a revpimodio version older than 2.5.8 on your first (running) device. The device offset checks was added in 2.5.8. The config.rsc section (generated by piCtory) for the MIO device may be wrong. I would like to investigate your config.rsc file. Background: RevPiModIO gets the de...
by RevPiModIO
11 Mar 2022, 15:17
Forum: RevPiModIO
Topic: RevPiModIO: RuntimeWarning: cycle time of 20 ms exceeded
Replies: 2
Views: 2316

Re: RevPiModIO: RuntimeWarning: cycle time of 20 ms exceeded

Hi saardrimer!

Your cycle loop function takes to long to execute - Maybe because of a .sleep or .wait or things like that. If you are using the cyclelooop, the cycle function must return in the given cycle time.

Do you have a code example you are using?
by RevPiModIO
11 Mar 2022, 15:14
Forum: RevPiModIO
Topic: runtime errors
Replies: 1
Views: 753

Re: runtime errors

Hi johnruk4670! That will happen, if your event function takes more time than the internal cycle time. If you register an event function it must be executed within a cycle, otherwise the functions will overlap. Example: You push a button, the function will start work, take 1 second. In that second y...
by RevPiModIO
11 Mar 2022, 15:06
Forum: RevPiModIO
Topic: PLC program remote start/stop
Replies: 3
Views: 1628

Re: PLC program remote start/stop

Hi Zsolt.

At the moment a start / stop of the program is only possible via XML-RPC call... But I think a signal for start/stop or something like that will be cool!

I'll add that on github.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 27