Skip to content
Snippets Groups Projects
Commit e621746d authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

...

parent 644d42d1
No related branches found
No related tags found
No related merge requests found
......@@ -20,8 +20,8 @@ CORVUS_MOVEREL = 'clean{ETX}{VEL} sv{ETX}0 {R1} {R2} r{ETX}'
VALVE = {
'grLW': { 'Port':10001, 'Index':0, 'Velocity':1.2 },
'klLW': { 'Port':10001, 'Index':1, 'Velocity':1.2 },
'grLW': { 'Port':10001, 'Index':0, 'Velocity':1.2 },
'klLW': { 'Port':10001, 'Index':1, 'Velocity':1.2 },
'DVG1': { 'Port':10003, 'Index':0, 'Velocity':1.2 },
'Verdränger': { 'Port':10003, 'Index':1, 'Velocity':0.8 }
}
......
......@@ -8,16 +8,16 @@ LAN_RS232_HOST = 'e75491'
LAN_RS232_PORT = 10001
LAN_RS232_TIMEOUT = 10000 # ms
CORVUS_EOL = '\r'
CORVUS_GETPOS = ' pos' + CORVUS_EOL
CORVUS_ETX = '\r'
CORVUS_GETPOS = ' pos{ETX}'.format(ETX=CORVUS_ETX)
DEVHUB_HOST = 'i75419' # 'localhost'
DEVHUB_PORT = 9009
DEVHUB_URL = 'http://{}:{}/'.format(DEVHUB_HOST, DEVHUB_PORT)
DEVHUB_DATA = {
'Action':'TCP', 'Host':LAN_RS232_HOST, 'Timeout': LAN_RS232_TIMEOUT,
'Port':LAN_RS232_PORT, 'Value': CORVUS_GETPOS
'Action':'TCP', 'Host':LAN_RS232_HOST, 'Port':LAN_RS232_PORT,
'Timeout':LAN_RS232_TIMEOUT, 'Value': CORVUS_GETPOS
}
response = requests.post(DEVHUB_URL, json=DEVHUB_DATA)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment