Un driver ASCOM Alpaca que habla por Modbus TCP con tu PLC Siemens LOGO! y confirma cada orden leyendo el PLC.
ESTE DRIVER MUEVE UN TECHO Y CORTA LA ENERGÍA DE EQUIPOS REALES. Un error de configuración puede mover el techo con el telescopio debajo o apagar un equipo en uso.
- Enclavamientos: los de seguridad (fines de carrera, tiempos máximos, lluvia, montura aparcada) tienen que estar en el programa del LOGO! y en el motor. El driver solo pide y comprueba: no los reemplaza.
- Simulación primero: después de instalarlo, el driver arranca en modo simulación y no habla con el PLC. Prueba todo así antes de pasar al PLC real, y haz la primera maniobra real con el techo a la vista.
- Lee docs/SEGURIDAD.md entera antes de la primera maniobra real.
Se distribuye sin ninguna garantía (licencia MIT). Lo usas bajo tu responsabilidad.
Driver PLC es un driver ASCOM Alpaca para Windows que deja a N.I.N.A. abrir y cerrar un techo corredizo y prender y apagar salidas de energía a través de un PLC Siemens LOGO! 8.FS4, por Modbus TCP.
Publica un dispositivo Dome ("Driver PLC Techo") y uno o más dispositivos Switch ("Driver PLC Energía …"). Así N.I.N.A. usa sus propios ítems de domo e interruptores, sin complementos. Cada orden se confirma leyendo el PLC: el driver escribe una marca M y espera ver el fin de carrera o el punto de estado que corresponde; si no llega a tiempo, informa un error.
- Techo (Dome) con apertura y cierre por pulso en marcas M y confirmación con los fines de carrera.
- Energía (Switch) por nivel, con confirmación de cada salida.
- Página de configuración
/setupcon estado en vivo, validación, respaldos y vuelta atrás. - Modo simulación, varios PC y servicio de Windows.
- Techo: abre y cierra con un pulso en una marca M de orden (una para abrir y otra para cerrar) y confirma con los fines de carrera del PLC (entradas I o marcas M).
- Energía: prende y apaga salidas por nivel (M = 1 encendido, M = 0 apagado) y confirma cada orden con su punto de estado.
- Solo Escribe Marcas M: entre M1 y M64, y solo las que elijas en la configuración. Nunca escribe salidas Q, entradas ni registros.
- Abortar Cierra: no hay orden de "detener"; abortar lleva siempre al estado seguro (techo cerrado).
- Página de Configuración:
http://localhost:11111/setup, con estado en vivo, edición con validación, respaldos y vuelta atrás. - Varios PC que comparten el techo (hasta 4): un solo driver en el PC anfitrión, con un Switch por PC y "cierra el último".
- Modo Simulación con un LOGO! simulado, para probar N.I.N.A. y tu secuencia sin tocar el PLC.
- Servicio de Windows ("Driver PLC"): arranca con Windows, sin que nadie inicie sesión.
- No es la lógica de seguridad del techo ni un monitor meteorológico o de seguridad.
- No cambia el programa del LOGO! ni su configuración: eso lo haces tú con LOGO!Soft Comfort. El driver no trae un programa para el LOGO!.
- No sabe dónde está la montura: no tiene sensor de montura aparcada.
- Windows 10 u 11 de 64 bits, con permisos de administrador para instalar. No hace falta instalar .NET: el instalador lo trae.
- N.I.N.A. 3.2 o posterior (encuentra el driver por descubrimiento Alpaca).
- Siemens LOGO! 8.FS4 con el servidor Modbus TCP habilitado, una conexión de servidor libre e IP fija en la red local.
- Un programa del LOGO! con marcas M de orden y puntos de estado (fines de carrera, confirmación de cada salida). Cómo prepararlo: docs/PROGRAMA_LOGO.md.
Lista completa: docs/REQUISITOS.md.
- Descargar: ve a Releases (Lanzamientos) y baja
Setup-DriverPLC-1.0.0.exeySHA256SUMS.txt. - Comprobar: en PowerShell, en la carpeta de la descarga:
El valor de
Get-FileHash .\Setup-DriverPLC-1.0.0.exe -Algorithm SHA256
Hashtiene que ser igual al deSHA256SUMS.txt(sin importar mayúsculas). Si no coincide, no lo ejecutes: descárgalo de nuevo. - Instalar: ejecútalo como administrador y sigue el asistente (docs/INSTALACION.md).
- Simular: abre
http://localhost:11111/setupy prueba con N.I.N.A. en modo simulación (docs/SIMULACION.md). - Pasar al PLC real: prepara tu programa del LOGO!, configura el driver y haz la primera maniobra con el techo a la vista (docs/INICIO.md).
⚠️ Nota sobre Windows Defender / SmartScreen: El instalador no está firmado con un certificado de firma de código, así que Windows puede mostrar "Windows protegió tu PC" o "Editor desconocido", y algunos antivirus pueden advertir.
- Si comprobaste la suma SHA-256, haz clic en "Más información" y luego en "Ejecutar de todas formas".
- Los textos exactos cambian con la versión de Windows.
Toda la documentación está en docs/, empezando por docs/INICIO.md.
- ¿Encontraste un fallo o tienes una idea? Mira primero docs/PROBLEMAS.md y, si no se resuelve, abre un Issue con la versión del driver, de Windows y de N.I.N.A., y las líneas del registro del momento del problema (
%ProgramData%\AscomLogo\logs\). - Antes de publicarlo, quita lo que no quieras hacer público: direcciones IP, nombres de equipos, rutas con tu nombre de usuario y la ubicación de tu observatorio.
- Antes de participar, lee el Código de Conducta y Cómo Colaborar.
- Problemas de seguridad: en privado, según SECURITY.md. Accesibilidad: ACCESSIBILITY.md.
An ASCOM Alpaca driver that talks Modbus TCP to your Siemens LOGO! PLC and confirms every command by reading the PLC back.
THIS DRIVER MOVES A ROOF AND CUTS POWER TO REAL EQUIPMENT. A configuration mistake can move the roof with the telescope underneath or switch off a device that is in use.
- Interlocks: the safety interlocks (limit switches, maximum times, rain, mount parked) must live in the LOGO! program and in the motor. The driver only requests and checks: it does not replace them.
- Simulation first: after installation the driver starts in simulation mode and does not talk to the PLC. Test everything that way before going to the real PLC, and do the first real move with the roof in sight.
- Read docs/SEGURIDAD.md (Spanish) in full before the first real move.
Provided without any warranty (MIT license). Use it at your own risk.
Driver PLC is an ASCOM Alpaca driver for Windows that lets N.I.N.A. open and close a roll-off roof and switch power outlets through a Siemens LOGO! 8.FS4 PLC over Modbus TCP.
It exposes a Dome device ("Driver PLC Techo") and one or more Switch devices ("Driver PLC Energía …"), so N.I.N.A. uses its own dome and switch items, with no plugins. Every command is confirmed by reading the PLC: the driver writes an M flag and waits for the matching limit switch or status point; if it does not arrive in time, it reports an error.
The program, the setup page and the documentation are in Spanish only.
- Roof (Dome) opened and closed with a pulse on M flags, confirmed by the limit switches.
- Power (Switch) by level, with confirmation of every output.
/setupconfiguration page with live status, validation, backups and rollback.- Simulation mode, multiple PCs and Windows service.
- Roof: opens and closes with a pulse on a command M flag (one to open, one to close) and confirms with the PLC limit switches (I inputs or M flags).
- Power: switches outputs by level (M = 1 on, M = 0 off) and confirms each command with its status point.
- Writes M Flags Only: between M1 and M64, and only the ones you choose. It never writes Q outputs, inputs or registers.
- Abort Closes: there is no "stop" command; aborting always goes to the safe state (roof closed).
- Setup Page:
http://localhost:11111/setup, with live status, validated editing, backups and rollback. - Multiple PCs sharing the roof (up to 4): a single driver on the host PC, one Switch per PC and "last one closes".
- Simulation Mode with a simulated LOGO!, to test N.I.N.A. and your sequence without touching the PLC.
- Windows Service ("Driver PLC"): starts with Windows, with nobody logged in.
- It is not the roof's safety logic, nor a weather or safety monitor.
- It does not change the LOGO! program or its settings: you do that with LOGO!Soft Comfort. No LOGO! program is included.
- It does not know where the mount is: there is no mount-parked sensor.
- Windows 10 or 11, 64-bit, with administrator rights to install. No need to install .NET: the installer includes it.
- N.I.N.A. 3.2 or later (finds the driver through Alpaca discovery).
- Siemens LOGO! 8.FS4 with the Modbus TCP server enabled, a free server connection and a fixed IP on the local network.
- A LOGO! program with command M flags and status points (limit switches, confirmation of each output): docs/PROGRAMA_LOGO.md.
- Download: go to Releases and download
Setup-DriverPLC-1.0.0.exeandSHA256SUMS.txt. - Verify: in PowerShell, in the download folder, run
Get-FileHash .\Setup-DriverPLC-1.0.0.exe -Algorithm SHA256and compare theHashwithSHA256SUMS.txt. If it does not match, do not run it. - Install: run it as administrator and follow the wizard (docs/INSTALACION.md).
- Simulate: open
http://localhost:11111/setupand test with N.I.N.A. in simulation mode (docs/SIMULACION.md). - Go live: prepare your LOGO! program, configure the driver and do the first move with the roof in sight (docs/INICIO.md).
⚠️ Note on Windows Defender / SmartScreen: The installer is not signed with a code-signing certificate, so Windows may show "Windows protected your PC" or "Unknown Publisher", and some antivirus programs may warn.
- If you verified the SHA-256, click "More info" and then "Run anyway".
- Found a bug or have an idea? Check docs/PROBLEMAS.md first, then open an Issue with the driver, Windows and N.I.N.A. versions and the log lines from
%ProgramData%\AscomLogo\logs\. Issues in English are welcome. - Before posting, remove what you do not want to make public: IP addresses, device names, paths with your user name and your observatory's location.
- Before taking part, read the Code of Conduct and Contributing (in Spanish).
- Security issues: privately, as described in SECURITY.md. Accessibility: ACCESSIBILITY.md.
The installer is distributed under the MIT license (see LICENSE); the source code is not published. Third-party components and their licenses: TERCEROS.md.
El instalador se distribuye bajo la licencia MIT (ver LICENSE); el código fuente no se publica. Componentes de terceros y sus licencias: TERCEROS.md.
ASCOM, N.I.N.A., Siemens and LOGO! are trademarks of their respective owners. Driver PLC is not affiliated with or endorsed by them; the names are used only to indicate compatibility. ASCOM, N.I.N.A., Siemens y LOGO! son marcas de sus respectivos dueños. Driver PLC no está afiliado a ellos ni cuenta con su respaldo; los nombres se usan solo para indicar compatibilidad.
- Developer: ASTROREMOTO.
- Tech Stack: .NET 8 + ASP.NET Core + ASCOM Alpaca + Modbus TCP + Inno Setup.
- Support: GitHub Issues.