Include classes from pictory module to package __init__.py.

This commit is contained in:
2020-08-17 19:52:16 +02:00
parent 507e407add
commit 5a0d88efe1
2 changed files with 75 additions and 76 deletions

View File

@@ -15,7 +15,8 @@ fuehrt das Modul bei Datenaenderung aus.
__all__ = [
"RevPiModIO", "RevPiModIODriver", "RevPiModIOSelected", "run_plc",
"RevPiNetIO", "RevPiNetIODriver", "RevPiNetIOSelected",
"Cycletools", "EventCallback"
"Cycletools", "EventCallback",
"AIO", "DI", "DO", "DIO",
]
__author__ = "Sven Sager <akira@revpimodio.org>"
__copyright__ = "Copyright (C) 2018 Sven Sager"
@@ -95,6 +96,7 @@ def consttostr(value) -> str:
# Benötigte Klassen importieren
from .pictory import AIO, DI, DO, DIO
from .helper import Cycletools, EventCallback
from .modio import RevPiModIO, RevPiModIODriver, RevPiModIOSelected, run_plc
from .netio import RevPiNetIO, RevPiNetIODriver, RevPiNetIOSelected

View File

@@ -18,7 +18,6 @@ __license__ = "LGPLv3"
# Can be used for :
# RevPi AIO 1.0 (RevPiAIO_20170301_1_0.rap)
class AIO:
OUT_RANGE_OFF = 0 # Off
OUT_RANGE_0_5V = 1 # 0 - 5V
OUT_RANGE_0_10V = 2 # 0 - 10V
@@ -93,7 +92,6 @@ class AIO:
# Can be used for :
# RevPi DI 1.0 (RevPiDI_20160818_1_0.rap)
class DI:
IN_MODE_DIRECT = 0 # Direct
IN_MODE_COUNT_RISING = 1 # Counter, rising edge
IN_MODE_COUNT_FALLING = 2 # Counter, falling edge
@@ -108,7 +106,6 @@ class DI:
# Can be used for :
# RevPi DO 1.0 (RevPiDO_20160818_1_0.rap)
class DO:
OUT_PWM_FREQ_40HZ = 1 # 40Hz 1%
OUT_PWM_FREQ_80HZ = 2 # 80Hz 2%
OUT_PWM_FREQ_160HZ = 4 # 160Hz 4%