I have telescope a it is managed with PLC siemens. This telescope is remote. I have group of the commands which i can send by TCP/IP to execute. This commands are in ASCII format. Here is simple example of script:
import socket TCP_IP = '' TCP_PORT = s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((TCP_IP, TCP_PORT)) s.send('GLLG 0\r\n') s.send('DOSO 0\r\n') data = s.recv(1024) print data s.close() I send two commands. First is for login a second is for opening dome. But I have two half dome. When I send this command for opening dome it is opened only one half of dome.
But takes some time before half-dome opens and I must wait for send next command to open whole dome. My question is?
Is it possible to follow instructions?
When make one command send another automatically?
Wait until execute one command and after this send next command?