class Cycletools

Toolbox which is given to the called cycle function on each call by .cycleloop() .

revpimodio2.helper.Cycletools()
Classattributes

  • .first
    Contains the value True in the first cycle at program start, otherwise always False.

  • .flag1c
    Changes the status between True and Falseon each cycle.

  • .flag5c
    It is 5 cycles False and 5 cycles True.

  • .flag10c
    It is 10 cycles False and 10 cycles True.

  • .flag15c
    It is 15 cycles False and 15 cycles True.

  • .flag20c
    It is 20 cycles False and 20 cycles True.

  • .flank5c
    It is Truein the first cycle, then False and in every fifth cycle True.

  • .flank10c
    It is Truein the first cycle, then False and in every tenth cycle True.

  • .flank15c
    It is True in the first cycle ,then False and in every fifteenth cycle True.

  • .flank20c
    It is True in the first cycle, then False and in every twentyth cycle True.

classfunctios

.get_tofc(name)

Gets the value of the power-off delay.

  • name
    Name of the power-off delay.

.set_tofc(name, cycles)

Starts the Switch-off delay whose value must be called via .get_tofc(name) .

  • name
    Name of the power-off delay.
  • cycles
    Number of cycles that the power-on delay should return True when  .get_tofc(Name) is called, after .set_tofc(name, cycles)was not called in the cycle anymore. The cefault cycletime is 50 milliseconds.

.get_tonc(name)

Gets the value of the power-on delay.

  • name
    Name of the power-on delay.

.set_tonc(name, cycles)

Starts the power-up delay whose value must be retrieved via .get_tonc(name) .

  • name
    Name of the power-on delay.
  • cycles
    Number of cycles the on-delay should return the value Falsewhen calling .get_tonc(Name), if .set_tonc(name, cycles)is called in each cycle. Only after the cycle number has been reached, .get_tonc(Name)returns the value True. The default cycletime is 50 milliseconds.

.get_tpc(name)

Gets the value of the pulse.

  • name
    Name of the pulse.

.set_tpc(name, cycles)

Starts a pulse whose value must be retrieved via .get_tpc(name) .

  • name
    Name of the pulse.
  • cycles
    Number of cycles the pulse should return the value True at call of .get_tpc(name), regardless of other .set_tpc(name, cycles) calls! After reaching the number of cycles, .get_tpc(name) then returns  False . The default cycletime is 50 milliseconds.