Hi!
I’m trying to set output 5 on with Python script. Why this does not work:
import socket
TCP_IP = '192.168.0.200'
TCP_PORT = 5000 #Yes I have changed this port to IPX800
BUFFER_SIZE = 10
MESSAGE = "Set051" + "\r\n"
byt = MESSAGE.encode()
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(3)
s.connect((TCP_IP, TCP_PORT))
s.send(byt)
data = s.recv(BUFFER_SIZE)
s.close()
print (data)