Rahmeneinträge mit A,B,C, usw. werden vom ioconverter in Zukunft ignoriert. Nur Rahmen mit IO werden verwendet
This commit is contained in:
Vendored
+31
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "Python Debugger: Current File",
|
"name": "Python Debugger: Current File",
|
||||||
"type": "debugpy",
|
"type": "debugpy",
|
||||||
@@ -39,6 +40,36 @@
|
|||||||
"easy_positions.json"
|
"easy_positions.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "getpositions with ST500592_Omniflo.dxf",
|
||||||
|
"type": "debugpy",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "${file}",
|
||||||
|
"console": "integratedTerminal",
|
||||||
|
"args": [
|
||||||
|
"--filename",
|
||||||
|
"ST500592_Omniflo.dxf",
|
||||||
|
"--sensors",
|
||||||
|
"--rack",
|
||||||
|
"--console",
|
||||||
|
"--write",
|
||||||
|
"ST500592_Omniflo_positions.json"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "portalexport with ST500592_Omniflo.dxf",
|
||||||
|
"type": "debugpy",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "${file}",
|
||||||
|
"console": "integratedTerminal",
|
||||||
|
"args": [
|
||||||
|
"--filename",
|
||||||
|
"ST500592_Omniflo_positions.json",
|
||||||
|
"--outname",
|
||||||
|
"ST500592_Omniflo"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
call portalexport.bat --filename %JSON_POS% --outname %FILENAME%
|
||||||
{
|
{
|
||||||
"name": "getpositions with ST-Fortna.dxf",
|
"name": "getpositions with ST-Fortna.dxf",
|
||||||
"type": "debugpy",
|
"type": "debugpy",
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ def prepare_data(rawdata:dict):
|
|||||||
lsensors = list()
|
lsensors = list()
|
||||||
|
|
||||||
for sname, sdata in sensors.items():
|
for sname, sdata in sensors.items():
|
||||||
|
if "IO" not in sdata:
|
||||||
|
continue
|
||||||
csvstr, sps_nr = process_item(sname, sdata)
|
csvstr, sps_nr = process_item(sname, sdata)
|
||||||
if sps_nr:
|
if sps_nr:
|
||||||
if sps_nr not in dsensors:
|
if sps_nr not in dsensors:
|
||||||
@@ -42,6 +44,8 @@ def prepare_data(rawdata:dict):
|
|||||||
lsensors.append(csvstr)
|
lsensors.append(csvstr)
|
||||||
|
|
||||||
for schaltele, sdata in schaltschrank_elemente.items():
|
for schaltele, sdata in schaltschrank_elemente.items():
|
||||||
|
if "IO" not in sdata:
|
||||||
|
continue
|
||||||
csvstr, sps_nr = process_item(schaltele, sdata)
|
csvstr, sps_nr = process_item(schaltele, sdata)
|
||||||
if sps_nr:
|
if sps_nr:
|
||||||
if sps_nr not in dsensors:
|
if sps_nr not in dsensors:
|
||||||
|
|||||||
Reference in New Issue
Block a user