Basic python module to control the input and output ports of a WAGO CC100 (751-9301). Module can be used native on WAGO CC100 or in Docker Container running on WAGO CC100.
This repository is a development repository that was created as part of a student project and is not regularly maintained. It is neither a stable version nor an official repository of WAGO GmbH & Co. KG.
- Maik Rehburg maik.rehburg@wago.com
- Konrad Holsmoelle konrad.holsmoelle@wago.com
- Bjarne Zaremba bjarne.zaremba@wago.com
- Tobias Pape tobias.pape@wago.com
- Tobias Schaekel tobias.schaekel@wago.com
- Mattis Schrade mattis.schrade@wago.com
- Bekim Imrihor bekim.imrihor@wago.com
- Nele Stocksmeyer nele.stocksmeyer@wago.com
- Sascha Hahn sascha.hahn@wago.com
- Danny Meihoefer danny.meihoefer@wago.com
- Firmware Version >= 21(03.09.04)
- Python >= 3.7 on WAGO CC100
pip install CC100IO
import CC100IO
def armHoch():
CC100IO.digitalWrite(3, True)
if CC100IO.digitalReadWait(4, False):
CC100IO.digitalWrite(3, False)
return True
-
- output: Digital output to be switched (1-4)
- value: Value which the selected output should be set to (True or False)
- Function switches the output to the specified value.
- Function does not check the current value of the output.
- Function returns True if value is written, returns False if an error occured.
-
- output: Analog output to be switched(1 or 2)
- voltage: Voltage which the selected output should be set to (0 - 10000 mV)
- Function switches the output to the specified voltage.
- Function does not check the current value of the output.
- Function returns True if value is written, returns False if an error occured.
-
- input: Digital input to be read (1-8)
- Function reads the input.
- Function does not check the current value of the output.
- Returns True or False depending on the value.
-
- input: Digital input to be checked (1-8)
- value: State to be queried at the input
- Reads the specified input until the desired state is reached, by another Function or external factors and then returns True.
- Function runs until the state is reached.
-
- input: Analog input to be read (1 or 2)
- Function reads the input and returns the calibrated value in mV as an Integer.
-
- Function makes the programm in a period of time late or slow. (in ms)
-
- input: PT input to be switched ("PT1" or "PT2")
- Function reads the input and returns the calibrated value in °C as an Integer.
-
- Reads incoming message on RS485 Port till eol
-
- n: number of bytes to read
- Reads n incoming message on RS485 Port
-
- message: String to write
- Write message to RS485 serial interface
- returns number of written bytes
Examples can be found in directory sample-scripts