-
Alain Klotz authoredAlain Klotz authored
Guitastro Device SIEMENSAE02 library
GUITAstro stands for General Use of Instruments and Telescopes in ASTROnomy.
GuitAstro is a Python module that provides classes and methods to write easily Python scripts for astronomical observations.
GIT repository: https://gitlab.in2p3.fr/irap-omp/guitastrolib/guitastro.git
Guitastro device Siemensae02 complete Guitastro to provide access to SIEMENSAE02 PLC drivers:
GIT repository: https://gitlab.in2p3.fr/irap-omp/guitastrolib/guitastro_device_siemensae02.git
Few basic examples of use
First example: To connect a Siemensae02 controler and drive a PLC:
import guitastro
import guitastro_device_siemensae02
name = "AE02"
delay_put_read = 0.1
end_of_command_to_receive = "@"
hostname = "192.168.10.59"
port = 4002
dev = guitastro_device_siemensae02.Device_Siemensae02("TCH_TCP", transport="TCP", port=port, hostname=hostname, delay_put_read=delay_put_read, end_of_command_to_receive=end_of_command_to_receive, name=name)
dev.open(False)
state = dev.commandstring("relays DO STATE")
state = dev.commandstring("relays DO ACTION 'Close TOIT_SUD'")
Guitastro functionalities
GuitAstro device Siemensae02 wraps the driver functions dispatched into the classe:
- Device_Siemensae02: Manage device Siemensae02 drivers.
This class inheritate from the classes Component* of Guitastro. As a consequece, it is needed to install Guitastro before using Guitastro Siemensae02.
A complete documentation can be generated from .rst files in the folder doc/doc_rst
Support and contact
The main author is alain.klotz@irap.omp.eu