WAGO Python WAGO PLC Library

module fb

Standard library. This module holds function blocks defined by the PLC programming norm DIN EN 61131-3. They can be imported and used in a PLC program.

  • CTU: up-counter
  • CTD: down-counter
  • CTUD: up- and down-counter
  • TP: impulse giver
  • TON: switch-on-timer
  • TOF: switch-off-timer
  • RS: RS latch
  • SR: SR latch
  • R_TRIG: trigger on rising flank
  • F_TRIG: trigger on falling flank

class FB

Generic superclass for a function block.

method __init__

__init__()

Configure any initial settings.


class CTU

An up-counter function block.

method __init__

__init__(pv: int = 0)

pv: when this limit is reached by cv, q is set to True (default 0)


class CTD

A down-counter function block.

method __init__

__init__(pv: int = 0)

pv: if a rising edge is registered for ld, cv is set to this value (default 0)


class CTUD

An up- and down-counter function block.

method __init__

__init__(pv: int = 0)

pv: when this limit is reached by cv, q is set to True


class TP

Create an impulse.

method __init__

__init__(pt: float = 0.0)

pt: the impulse time


class TON

Create a delay in switching on.

method __init__

__init__(pt: float = 0.0)

pt: the delay time


class TOF

Create a delay in switching off.

method __init__

__init__(pt: float = 0.0)

pt: the delay time


class RS

A RS latch (reset dominance).

method __init__

__init__()

class SR

A SR latch (set dominance).

method __init__

__init__()

class R_TRIG

Trigger on a rising flank.

method __init__

__init__()

class F_TRIG

Trigger on a falling flank.

method __init__

__init__()

This file was automatically generated via lazydocs.