Session mit M. Schellhammer. Entfernung der nicht benötigten Keys
This commit is contained in:
+6
-6
@@ -26,9 +26,9 @@ class Kosten():
|
|||||||
"""
|
"""
|
||||||
:param pathNew: cfg-Datei, die den Bauteilen ihre Sivas-Nummern zuweist z.B. "schaltschrankgehaeuse_b2x800_zubehoer = 790821101"
|
:param pathNew: cfg-Datei, die den Bauteilen ihre Sivas-Nummern zuweist z.B. "schaltschrankgehaeuse_b2x800_zubehoer = 790821101"
|
||||||
:param pathOld: cfg-Datei, die in rieter_ekalk verwendet wird und den Bauteilen Preise zuweist z.B. "schaltschrankgehaeuse_b2x800_zubehoer = 4663.45"
|
:param pathOld: cfg-Datei, die in rieter_ekalk verwendet wird und den Bauteilen Preise zuweist z.B. "schaltschrankgehaeuse_b2x800_zubehoer = 4663.45"
|
||||||
:param sivasData: Excel-Datei mit Sivas-Nummern und entsprechenden Preisen, Überschrift: Teilenummer, Herstellkosten
|
:param sivasData: Excel-Datei mit Sivas-Nummern und entsprechenden Preisen, Überschrift: Teilenummer, Laufende Materialkosten
|
||||||
"""
|
"""
|
||||||
df = pd.read_excel(sivasData, header=0, index_col=0, usecols=["Teilenummer", "Herstellkosten" ])
|
df = pd.read_excel(sivasData, header=0, index_col=0, usecols=["Teilenummer", "Laufende Materialkosten" ])
|
||||||
self._kosten = df.to_dict()
|
self._kosten = df.to_dict()
|
||||||
|
|
||||||
self._given = True
|
self._given = True
|
||||||
@@ -79,8 +79,8 @@ class Kosten():
|
|||||||
for summand in split_sivas_ids:
|
for summand in split_sivas_ids:
|
||||||
summand = summand.strip()
|
summand = summand.strip()
|
||||||
# summand: einzelner Summand z.B. '827072204'
|
# summand: einzelner Summand z.B. '827072204'
|
||||||
if summand in self._kosten["Herstellkosten"]:
|
if summand in self._kosten["Laufende Materialkosten"]:
|
||||||
cost = self._kosten["Herstellkosten"][summand]
|
cost = self._kosten["Laufende Materialkosten"][summand]
|
||||||
# cost: Einzelpreis eines Summanden [€]
|
# cost: Einzelpreis eines Summanden [€]
|
||||||
if type(cost) is type(int) or type(float):
|
if type(cost) is type(int) or type(float):
|
||||||
price += cost
|
price += cost
|
||||||
@@ -100,8 +100,8 @@ class Kosten():
|
|||||||
:param newDict: z.B. {'schaltschrankgehaeuse_b2x800_zubehoer':9490.23, ...}
|
:param newDict: z.B. {'schaltschrankgehaeuse_b2x800_zubehoer':9490.23, ...}
|
||||||
:param not_found_keys: Dict von Bauteilen, denen eine Nummer zugeordnet ist, die in Sivas nicht existiert z.B. {'schaltschrankgehaeuse_b1x800_zubehoer': '----'}
|
:param not_found_keys: Dict von Bauteilen, denen eine Nummer zugeordnet ist, die in Sivas nicht existiert z.B. {'schaltschrankgehaeuse_b1x800_zubehoer': '----'}
|
||||||
"""
|
"""
|
||||||
if number in self._kosten["Herstellkosten"]:
|
if number in self._kosten["Laufende Materialkosten"]:
|
||||||
price = self._kosten["Herstellkosten"][number]
|
price = self._kosten["Laufende Materialkosten"][number]
|
||||||
if price is int or float:
|
if price is int or float:
|
||||||
newDict.update({key: price})
|
newDict.update({key: price})
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ sps_simatic_s7_1515_2 = 2173.9 # 790008100
|
|||||||
sps_simatic_s7_1517_3 = 3827.8 # 790008101
|
sps_simatic_s7_1517_3 = 3827.8 # 790008101
|
||||||
sps_simatic_s7_1518_4 = 5892 # 6ES7518-4AP00-0AB0
|
sps_simatic_s7_1518_4 = 5892 # 6ES7518-4AP00-0AB0
|
||||||
sps_et200_1512sp = 705.75 # 709000003
|
sps_et200_1512sp = 705.75 # 709000003
|
||||||
memory_card_256_mb = 0 # 708015093
|
|
||||||
memory_card_2_gb = 515.9 # 708015094
|
memory_card_2_gb = 515.9 # 708015094
|
||||||
et200_sp_ea_ebene = 0 # 790009001
|
et200_sp_ea_ebene = 0 # 790009001
|
||||||
netzwerk_fernwartung = 750 # 790011001
|
netzwerk_fernwartung = 750 # 790011001
|
||||||
@@ -128,7 +127,6 @@ sps_simatic_s7_1515_2 = 0
|
|||||||
sps_simatic_s7_1517_3 = 0
|
sps_simatic_s7_1517_3 = 0
|
||||||
sps_simatic_s7_1518_4 = 0
|
sps_simatic_s7_1518_4 = 0
|
||||||
sps_et200_1512sp = 0
|
sps_et200_1512sp = 0
|
||||||
memory_card_256_mb = 0
|
|
||||||
memory_card_2_gb = 0
|
memory_card_2_gb = 0
|
||||||
et200_sp_ea_ebene =60
|
et200_sp_ea_ebene =60
|
||||||
netzwerk_fernwartung =0
|
netzwerk_fernwartung =0
|
||||||
@@ -169,7 +167,6 @@ sps_simatic_s7_1515_2 = 0
|
|||||||
sps_simatic_s7_1517_3 = 0
|
sps_simatic_s7_1517_3 = 0
|
||||||
sps_simatic_s7_1518_4 = 0
|
sps_simatic_s7_1518_4 = 0
|
||||||
sps_et200_1512sp = 0
|
sps_et200_1512sp = 0
|
||||||
memory_card_256_mb = 0
|
|
||||||
memory_card_2_gb = 0
|
memory_card_2_gb = 0
|
||||||
et200_sp_ea_ebene =120
|
et200_sp_ea_ebene =120
|
||||||
netzwerk_fernwartung =0
|
netzwerk_fernwartung =0
|
||||||
|
|||||||
@@ -16,6 +16,5 @@ speicherkarte_fuer_sps2_mb = 246.0
|
|||||||
sps_simatic_s7_1515_2 = 2162.35
|
sps_simatic_s7_1515_2 = 2162.35
|
||||||
sps_simatic_s7_1517_3 = 4328.65
|
sps_simatic_s7_1517_3 = 4328.65
|
||||||
sps_et200_1512sp = 705.75
|
sps_et200_1512sp = 705.75
|
||||||
memory_card_256_mb = 266.35
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,101 @@
|
|||||||
|
[HW_Einzelpreise]
|
||||||
|
schaltschrankgehaeuse_b1x800_zubehoer = 2877.85
|
||||||
|
schaltschrankgehaeuse_b2x800_zubehoer = 4972.14
|
||||||
|
schaltschrankgehaeuse_b1x1200+1x800_zubehoer = 5994.88
|
||||||
|
sps_simatic_s7_cpu315_2_pn_dp = 2237.25
|
||||||
|
speicherkarte_fuer_sps_512_kb = 172.5
|
||||||
|
sps_simatic_s7_cpu317_2_pn_dp = 3957.0
|
||||||
|
speicherkarte_fuer_sps2_mb = 246.0
|
||||||
|
sps_simatic_s7_1515_2 = 2150.8
|
||||||
|
sps_simatic_s7_1517_3 = 4305.55
|
||||||
|
sps_simatic_s7_1518_4 = 5892.0
|
||||||
|
sps_et200_1512sp = 705.75
|
||||||
|
memory_card_2_gb = 515.9
|
||||||
|
et200_sp_ea_ebene = 417.48
|
||||||
|
netzwerk_fernwartung = 678.15
|
||||||
|
abgang_400v = 213.35
|
||||||
|
abgang_24_v = 99.41
|
||||||
|
anlagenrechner = 1427.05
|
||||||
|
anlagenrechner_ohne_bildschirm = 1269.8367055018189
|
||||||
|
pulteinbau_monitor_srline_rflat_24fhd = 968.0
|
||||||
|
kurzhubtastatur_kbt06_mit_touchpad_uslayout = 326.0
|
||||||
|
netzwerk_display_adapter_lindy = 481.98
|
||||||
|
zusaetzlicher_bildschirm = 170.0
|
||||||
|
unterverteiler_fuer_1neuenhauser_pm = 701.05
|
||||||
|
unterverteiler_fuer_1flyer = 1634.74
|
||||||
|
unterverteiler_fuer_2flyer = 2324.64
|
||||||
|
unterverteiler_fuer_1flyer_f40_mit_integrierter_putzmaschine = 701.05
|
||||||
|
unterverteiler_fuer_2flyer_f40_mit_integrierter_putzmaschine = 701.05
|
||||||
|
unterverteiler_fuer_puffer = 2180.42
|
||||||
|
unterverteiler_fuer_5_rsm_fa = 2601.27
|
||||||
|
unterverteiler_fuer_10_rsm_fa = 2180.42
|
||||||
|
unterverteiler_fuer_3_rsm_fa_mit_umfahrung_steckbar = 3059.28
|
||||||
|
unterverteiler_fuer_4_rsm_direct = 5897.51
|
||||||
|
unterverteiler_fuer_12_rsm_direct = 9125.58
|
||||||
|
unterverteiler_fuer_8_rsm_direct = 7330.96
|
||||||
|
busverteiler_6_rsm_direct = 1746.36
|
||||||
|
busverteiler_8_rsm_direct = 2052.26
|
||||||
|
antrieb_unidirektional_halbleiter = 71.39
|
||||||
|
antrieb_bidirektional_halbleiter = 76.2256573006879
|
||||||
|
antrieb_unidirektional_schuetz = 68.5
|
||||||
|
antrieb_bidirektional_schuetz = 123.18
|
||||||
|
motorschutzschalter = 37.77
|
||||||
|
wendeschuetzschaltung = 27.25
|
||||||
|
bedienstation_1fach_kpl = 38.52
|
||||||
|
bedienst_2fach_wechs_bcd_10f = 94.87
|
||||||
|
bedienstation_2fach_kpl = 67.48290909090909
|
||||||
|
halter_bedientableau_2fach = 34.84
|
||||||
|
bedienstation_3fach_kpl = 88.32432432432432
|
||||||
|
halter_bedientableau_3fach = 23.99
|
||||||
|
bedienstation_4fach_kpl = 102.50559670781892
|
||||||
|
halter_bedientableau_4fach = 30.49
|
||||||
|
bedienstation_6fach_kpl = 91.33
|
||||||
|
halter_bedientableau_6fach = 26.19
|
||||||
|
drucktaster_automatische_umfahrung = 46.57
|
||||||
|
et_200sp_bundle_profinet_im_155_6pn_st_ba_2xrj45 = 198.9
|
||||||
|
et200_sp_eingangskarte_8_de = 31.59
|
||||||
|
et200_sp_eingangskarte_16_de = 57.1
|
||||||
|
et200_sp_eingangskarte_8_do = 43.22
|
||||||
|
et200_sp_eingangskarte_16_do = 66.3
|
||||||
|
et200_sp_base_unit_neue_last_mit_potklemmen = 21.09
|
||||||
|
et200_sp_base_unit_links_gebrueckt_mit_pot_klemmen = 13.39
|
||||||
|
et200_sp_base_unit_neue_last = 16.621860966339366
|
||||||
|
et200_sp_base_unit_links_gebrueckt = 9.815854569787543
|
||||||
|
et_200sp_bundle_profinet_im_155_6pn_st_ba_2xrj45_slio = 164.20142857142858
|
||||||
|
slio_eingangskarte_4_de = 23.915
|
||||||
|
slio_eingangskarte_8_de = 31.68
|
||||||
|
slio_ausgangskarte_4_do = 31.59
|
||||||
|
slio_ausgangskarte_8_do = 31.59
|
||||||
|
slio_power_modul = 21.09
|
||||||
|
slio_4_x_dc_24v_4_x_dc_0v = 13.39
|
||||||
|
slio_8_x_dc_24v = 16.621860966339366
|
||||||
|
slio_8_x_dc_0v = 9.815854569787543
|
||||||
|
sensor_optisch_traverse = 29.41
|
||||||
|
reflexionslichtschranke_rsm_direct = 44.88
|
||||||
|
stoppersensor_induktiv_mit_halter = 38.08
|
||||||
|
sensor_spulenpruefung_voll_leer = 345.6954020423345
|
||||||
|
seilzugschalter = 223.74
|
||||||
|
seil_fuer_seilzugschalter = 0.299
|
||||||
|
blitzleuchte = 64.29
|
||||||
|
sensorkabel_je_20m = 12.9424
|
||||||
|
stopper_weichenkabel_je_5m = 15.406
|
||||||
|
motorkabel_je_30m = 0.7070803391211155
|
||||||
|
kabelpritsche_rsm_100_60 = 5.95
|
||||||
|
kabelpritsche_rsm_50_35 = 6.1
|
||||||
|
klemmkasten_direct_in_rsm = 93.67
|
||||||
|
zuleitung_75_m_unterverteiler_4x4mm2_400vac = 1.99945507358256
|
||||||
|
zuleitung_75_m_unterverteiler_12x4mm2_24_vdc = 5.52915
|
||||||
|
zuleitung_75_m_unterverteiler_12x2_5mm2_24_vdc = 5.52915
|
||||||
|
zuleitung_55_m_klemmkasten_rsm_mitte_14g1_5_mm = 2.256421568627451
|
||||||
|
zuleitung_55_m_klemmkasten_rsm_mitte_14g1_0_mm = 1.60982
|
||||||
|
profinetkabel = 44.4
|
||||||
|
schnittstellen_8x1mm2_30m = 1.1025997913738974
|
||||||
|
|
||||||
|
[Preise durch Sivas nicht ermittelbar]
|
||||||
|
kabelpritschen_leitern_200_60 = ----
|
||||||
|
klemmkasten_rsm = ----
|
||||||
|
erdung = ----
|
||||||
|
kleinteile_rohre_schellen_kabelbinder_ect = ----
|
||||||
|
kabel_fuer_klemmkasten_und_bts_60m = ----
|
||||||
|
kabel_fuer_1fach_bts_zug_wechseln = ----
|
||||||
|
|
||||||
@@ -11,7 +11,6 @@ sps_simatic_s7_1515_2 = 790008100
|
|||||||
sps_simatic_s7_1517_3 = 790008101
|
sps_simatic_s7_1517_3 = 790008101
|
||||||
sps_simatic_s7_1518_4 = 708015006
|
sps_simatic_s7_1518_4 = 708015006
|
||||||
sps_et200_1512sp = 709000003
|
sps_et200_1512sp = 709000003
|
||||||
memory_card_256_mb = 708015093
|
|
||||||
memory_card_2_gb = 708015094
|
memory_card_2_gb = 708015094
|
||||||
et200_sp_ea_ebene = 790009001
|
et200_sp_ea_ebene = 790009001
|
||||||
netzwerk_fernwartung = 790011001
|
netzwerk_fernwartung = 790011001
|
||||||
@@ -71,9 +70,9 @@ drucktaster_automatische_umfahrung = 400102435
|
|||||||
# ET200_SP
|
# ET200_SP
|
||||||
et_200sp_bundle_profinet_im_155_6pn_st_ba_2xrj45 = 709000006
|
et_200sp_bundle_profinet_im_155_6pn_st_ba_2xrj45 = 709000006
|
||||||
et200_sp_eingangskarte_8_de = 709000021
|
et200_sp_eingangskarte_8_de = 709000021
|
||||||
et200_sp_eingangskarte_16_de = 709000022
|
et200_sp_eingangskarte_16_de = 709000022_A
|
||||||
et200_sp_eingangskarte_8_do = 709000031_A
|
et200_sp_eingangskarte_8_do = 709000031_A
|
||||||
et200_sp_eingangskarte_16_do = 709000032
|
et200_sp_eingangskarte_16_do = 709000032_A
|
||||||
et200_sp_base_unit_neue_last_mit_potKlemmen = 709000014
|
et200_sp_base_unit_neue_last_mit_potKlemmen = 709000014
|
||||||
et200_sp_base_unit_links_gebrueckt_mit_pot_klemmen = 709000015
|
et200_sp_base_unit_links_gebrueckt_mit_pot_klemmen = 709000015
|
||||||
et200_sp_base_unit_neue_last = 709000011
|
et200_sp_base_unit_neue_last = 709000011
|
||||||
@@ -103,10 +102,10 @@ blitzleuchte = 790000006
|
|||||||
sensorkabel_je_20m = 722001022
|
sensorkabel_je_20m = 722001022
|
||||||
stopper_weichenkabel_je_5m = 722001040
|
stopper_weichenkabel_je_5m = 722001040
|
||||||
motorkabel_je_30m = 725000015
|
motorkabel_je_30m = 725000015
|
||||||
kabelpritschen_leitern_200_60 = ----
|
kabelpritschen_leitern_200_60 = 715000061
|
||||||
kabelpritsche_rsm_100_60 = 715000020
|
kabelpritsche_rsm_100_60 = 715000020
|
||||||
kabelpritsche_rsm_50_35 = 715003010
|
kabelpritsche_rsm_50_35 = 715003010
|
||||||
klemmkasten_rsm = ----
|
klemmkasten_rsm = 790000700
|
||||||
klemmkasten_direct_in_rsm = 790000703
|
klemmkasten_direct_in_rsm = 790000703
|
||||||
erdung = ----
|
erdung = ----
|
||||||
kleinteile_rohre_schellen_kabelbinder_ect = ----
|
kleinteile_rohre_schellen_kabelbinder_ect = ----
|
||||||
|
|||||||
@@ -1209,7 +1209,6 @@ class HW():
|
|||||||
"sps_simatic_s7_1517_3": 0,
|
"sps_simatic_s7_1517_3": 0,
|
||||||
"sps_simatic_s7_1518_4": 0,
|
"sps_simatic_s7_1518_4": 0,
|
||||||
"sps_et200_1512sp": 0,
|
"sps_et200_1512sp": 0,
|
||||||
#"memory_card_256_mb": 0
|
|
||||||
#"memory_card_2_gb": 0
|
#"memory_card_2_gb": 0
|
||||||
"et200_sp_ea_ebene":1,
|
"et200_sp_ea_ebene":1,
|
||||||
"netzwerk_fernwartung":1,
|
"netzwerk_fernwartung":1,
|
||||||
@@ -1363,7 +1362,6 @@ class HW():
|
|||||||
"sps_simatic_s7_1517_3": 3827.8, # 790008101
|
"sps_simatic_s7_1517_3": 3827.8, # 790008101
|
||||||
"sps_simatic_s7_1518_4": 5892, # 6ES7518-4AP00-0AB0
|
"sps_simatic_s7_1518_4": 5892, # 6ES7518-4AP00-0AB0
|
||||||
"sps_et200_1512sp": 705.75, # 709000003
|
"sps_et200_1512sp": 705.75, # 709000003
|
||||||
"memory_card_256_mb": 0, # 708015093
|
|
||||||
"memory_card_2_gb": 515.9, # 708015094
|
"memory_card_2_gb": 515.9, # 708015094
|
||||||
"et200_sp_ea_ebene": 0, # 790009001
|
"et200_sp_ea_ebene": 0, # 790009001
|
||||||
"netzwerk_fernwartung": 750, # 790011001
|
"netzwerk_fernwartung": 750, # 790011001
|
||||||
@@ -1503,7 +1501,6 @@ class HW():
|
|||||||
"sps_simatic_s7_1517_3": 0,
|
"sps_simatic_s7_1517_3": 0,
|
||||||
"sps_simatic_s7_1518_4": 0,
|
"sps_simatic_s7_1518_4": 0,
|
||||||
"sps_et200_1512sp": 0,
|
"sps_et200_1512sp": 0,
|
||||||
"memory_card_256_mb": 0,
|
|
||||||
"memory_card_2_gb": 0,
|
"memory_card_2_gb": 0,
|
||||||
"et200_sp_ea_ebene":60,
|
"et200_sp_ea_ebene":60,
|
||||||
"netzwerk_fernwartung":0,
|
"netzwerk_fernwartung":0,
|
||||||
@@ -1546,7 +1543,6 @@ class HW():
|
|||||||
"sps_simatic_s7_1517_3": 0,
|
"sps_simatic_s7_1517_3": 0,
|
||||||
"sps_simatic_s7_1518_4": 0,
|
"sps_simatic_s7_1518_4": 0,
|
||||||
"sps_et200_1512sp": 0,
|
"sps_et200_1512sp": 0,
|
||||||
"memory_card_256_mb": 0,
|
|
||||||
"memory_card_2_gb": 0,
|
"memory_card_2_gb": 0,
|
||||||
"et200_sp_ea_ebene":120,
|
"et200_sp_ea_ebene":120,
|
||||||
"netzwerk_fernwartung":0,
|
"netzwerk_fernwartung":0,
|
||||||
@@ -1640,7 +1636,6 @@ class HW():
|
|||||||
"sps_simatic_s7_1517_3",
|
"sps_simatic_s7_1517_3",
|
||||||
"sps_simatic_s7_1518_4",
|
"sps_simatic_s7_1518_4",
|
||||||
"sps_et200_1512sp",
|
"sps_et200_1512sp",
|
||||||
"memory_card_256_mb",
|
|
||||||
"memory_card_2_gb",
|
"memory_card_2_gb",
|
||||||
"et200_sp_ea_ebene",
|
"et200_sp_ea_ebene",
|
||||||
"netzwerk_fernwartung",
|
"netzwerk_fernwartung",
|
||||||
@@ -1668,10 +1663,6 @@ class HW():
|
|||||||
self._anzahl["sps_simatic_s7_1518_4"] = anzahl.get("sps_simatic_s7_1518_4", 0)
|
self._anzahl["sps_simatic_s7_1518_4"] = anzahl.get("sps_simatic_s7_1518_4", 0)
|
||||||
self._anzahl["sps_et200_1512sp"] = anzahl.get("sps_et200_1512sp", 0)
|
self._anzahl["sps_et200_1512sp"] = anzahl.get("sps_et200_1512sp", 0)
|
||||||
|
|
||||||
self._anzahl["memory_card_256_mb"] = self.anzahl("speicherkarte_fuer_sps2_mb") + \
|
|
||||||
self.anzahl("sps_simatic_s7_1515_2") + \
|
|
||||||
self.anzahl("sps_simatic_s7_1517_3") + \
|
|
||||||
self.anzahl("sps_simatic_s7_1518_4")
|
|
||||||
|
|
||||||
self._anzahl["memory_card_2_gb"] = self.anzahl("sps_simatic_s7_1518_4")
|
self._anzahl["memory_card_2_gb"] = self.anzahl("sps_simatic_s7_1518_4")
|
||||||
|
|
||||||
@@ -2185,7 +2176,6 @@ class HW():
|
|||||||
"sps_simatic_s7_1517_3",
|
"sps_simatic_s7_1517_3",
|
||||||
"sps_simatic_s7_1518_4",
|
"sps_simatic_s7_1518_4",
|
||||||
"sps_et200_1512sp",
|
"sps_et200_1512sp",
|
||||||
"memory_card_256_mb",
|
|
||||||
"memory_card_2_gb",
|
"memory_card_2_gb",
|
||||||
"et200_sp_ea_ebene",
|
"et200_sp_ea_ebene",
|
||||||
"netzwerk_fernwartung",
|
"netzwerk_fernwartung",
|
||||||
@@ -2219,7 +2209,6 @@ class HW():
|
|||||||
"sps_simatic_s7_1517_3",
|
"sps_simatic_s7_1517_3",
|
||||||
"sps_simatic_s7_1518_4",
|
"sps_simatic_s7_1518_4",
|
||||||
"sps_et200_1512sp",
|
"sps_et200_1512sp",
|
||||||
"memory_card_256_mb",
|
|
||||||
"memory_card_2_gb",
|
"memory_card_2_gb",
|
||||||
"et200_sp_ea_ebene",
|
"et200_sp_ea_ebene",
|
||||||
"netzwerk_fernwartung",
|
"netzwerk_fernwartung",
|
||||||
|
|||||||
@@ -832,7 +832,6 @@ class TestObjectMethods(unittest.TestCase):
|
|||||||
self.assertEqual(hw.anzahl("sps_simatic_s7_1517_3"), 0)
|
self.assertEqual(hw.anzahl("sps_simatic_s7_1517_3"), 0)
|
||||||
self.assertEqual(hw.anzahl("sps_simatic_s7_1518_4"), 0)
|
self.assertEqual(hw.anzahl("sps_simatic_s7_1518_4"), 0)
|
||||||
self.assertEqual(hw.anzahl("sps_et200_1512sp"), 0)
|
self.assertEqual(hw.anzahl("sps_et200_1512sp"), 0)
|
||||||
self.assertEqual(hw.anzahl("memory_card_256_mb"), 1)
|
|
||||||
self.assertEqual(hw.anzahl("memory_card_2_gb"), 0)
|
self.assertEqual(hw.anzahl("memory_card_2_gb"), 0)
|
||||||
self.assertEqual(hw.anzahl("et200_sp_ea_ebene"), 1)
|
self.assertEqual(hw.anzahl("et200_sp_ea_ebene"), 1)
|
||||||
self.assertEqual(hw.anzahl("netzwerk_fernwartung"), 1)
|
self.assertEqual(hw.anzahl("netzwerk_fernwartung"), 1)
|
||||||
|
|||||||
@@ -1147,7 +1147,6 @@ class HW():
|
|||||||
"sps_simatic_s7_1517_3": 1,
|
"sps_simatic_s7_1517_3": 1,
|
||||||
"sps_simatic_s7_1518_4": 0,
|
"sps_simatic_s7_1518_4": 0,
|
||||||
"sps_et200_1512sp": 0,
|
"sps_et200_1512sp": 0,
|
||||||
#"memory_card_256_mb": 0
|
|
||||||
#"memory_card_2_gb": 0
|
#"memory_card_2_gb": 0
|
||||||
"et200_sp_ea_ebene":2,
|
"et200_sp_ea_ebene":2,
|
||||||
"netzwerk_fernwartung":1,
|
"netzwerk_fernwartung":1,
|
||||||
@@ -1299,7 +1298,6 @@ class HW():
|
|||||||
"sps_simatic_s7_1517_3": 3828, # 790008101
|
"sps_simatic_s7_1517_3": 3828, # 790008101
|
||||||
"sps_simatic_s7_1518_4": 5402, # 6ES7518-4AP00-0AB0
|
"sps_simatic_s7_1518_4": 5402, # 6ES7518-4AP00-0AB0
|
||||||
"sps_et200_1512sp": 623, # 709000003
|
"sps_et200_1512sp": 623, # 709000003
|
||||||
"memory_card_256_mb": 250, # 708015093
|
|
||||||
"memory_card_2_gb": 474, # 708015094
|
"memory_card_2_gb": 474, # 708015094
|
||||||
"et200_sp_ea_ebene": 0, # 790009001
|
"et200_sp_ea_ebene": 0, # 790009001
|
||||||
"netzwerk_fernwartung": 750, # 790011001
|
"netzwerk_fernwartung": 750, # 790011001
|
||||||
@@ -1436,7 +1434,6 @@ class HW():
|
|||||||
"sps_simatic_s7_1517_3": 0,
|
"sps_simatic_s7_1517_3": 0,
|
||||||
"sps_simatic_s7_1518_4": 0,
|
"sps_simatic_s7_1518_4": 0,
|
||||||
"sps_et200_1512sp": 0,
|
"sps_et200_1512sp": 0,
|
||||||
"memory_card_256_mb": 0,
|
|
||||||
"memory_card_2_gb": 0,
|
"memory_card_2_gb": 0,
|
||||||
"et200_sp_ea_ebene":60,
|
"et200_sp_ea_ebene":60,
|
||||||
"netzwerk_fernwartung":0,
|
"netzwerk_fernwartung":0,
|
||||||
@@ -1476,7 +1473,6 @@ class HW():
|
|||||||
"sps_simatic_s7_1517_3": 0,
|
"sps_simatic_s7_1517_3": 0,
|
||||||
"sps_simatic_s7_1518_4": 0,
|
"sps_simatic_s7_1518_4": 0,
|
||||||
"sps_et200_1512sp": 0,
|
"sps_et200_1512sp": 0,
|
||||||
"memory_card_256_mb": 0,
|
|
||||||
"memory_card_2_gb": 0,
|
"memory_card_2_gb": 0,
|
||||||
"et200_sp_ea_ebene":120,
|
"et200_sp_ea_ebene":120,
|
||||||
"netzwerk_fernwartung":0,
|
"netzwerk_fernwartung":0,
|
||||||
@@ -1567,7 +1563,6 @@ class HW():
|
|||||||
"sps_simatic_s7_1517_3",
|
"sps_simatic_s7_1517_3",
|
||||||
"sps_simatic_s7_1518_4",
|
"sps_simatic_s7_1518_4",
|
||||||
"sps_et200_1512sp",
|
"sps_et200_1512sp",
|
||||||
"memory_card_256_mb",
|
|
||||||
"memory_card_2_gb",
|
"memory_card_2_gb",
|
||||||
"et200_sp_ea_ebene",
|
"et200_sp_ea_ebene",
|
||||||
"netzwerk_fernwartung",
|
"netzwerk_fernwartung",
|
||||||
@@ -1594,11 +1589,6 @@ class HW():
|
|||||||
self._anzahl["sps_simatic_s7_1518_4"] = self.mengen.get("sps_simatic_s7_1518_4", 0)
|
self._anzahl["sps_simatic_s7_1518_4"] = self.mengen.get("sps_simatic_s7_1518_4", 0)
|
||||||
self._anzahl["sps_et200_1512sp"] = self.mengen.get("sps_et200_1512sp", 0)
|
self._anzahl["sps_et200_1512sp"] = self.mengen.get("sps_et200_1512sp", 0)
|
||||||
|
|
||||||
self._anzahl["memory_card_256_mb"] = anzahl.get("speicherkarte_fuer_sps2_mb") + \
|
|
||||||
anzahl.get("sps_simatic_s7_1515_2") + \
|
|
||||||
anzahl.get("sps_simatic_s7_1517_3") + \
|
|
||||||
anzahl.get("sps_simatic_s7_1518_4")
|
|
||||||
|
|
||||||
self._anzahl["memory_card_2_gb"] = anzahl.get("sps_simatic_s7_1518_4", 0)
|
self._anzahl["memory_card_2_gb"] = anzahl.get("sps_simatic_s7_1518_4", 0)
|
||||||
|
|
||||||
self._anzahl["et200_sp_ea_ebene"] = self.mengen.get("et200_sp_ea_ebene", 0)
|
self._anzahl["et200_sp_ea_ebene"] = self.mengen.get("et200_sp_ea_ebene", 0)
|
||||||
@@ -2080,7 +2070,6 @@ class HW():
|
|||||||
"sps_simatic_s7_1517_3",
|
"sps_simatic_s7_1517_3",
|
||||||
"sps_simatic_s7_1518_4",
|
"sps_simatic_s7_1518_4",
|
||||||
"sps_et200_1512sp",
|
"sps_et200_1512sp",
|
||||||
"memory_card_256_mb",
|
|
||||||
"memory_card_2_gb",
|
"memory_card_2_gb",
|
||||||
"et200_sp_ea_ebene",
|
"et200_sp_ea_ebene",
|
||||||
"netzwerk_fernwartung",
|
"netzwerk_fernwartung",
|
||||||
@@ -2114,7 +2103,6 @@ class HW():
|
|||||||
"sps_simatic_s7_1517_3",
|
"sps_simatic_s7_1517_3",
|
||||||
"sps_simatic_s7_1518_4",
|
"sps_simatic_s7_1518_4",
|
||||||
"sps_et200_1512sp",
|
"sps_et200_1512sp",
|
||||||
"memory_card_256_mb",
|
|
||||||
"memory_card_2_gb",
|
"memory_card_2_gb",
|
||||||
"et200_sp_ea_ebene",
|
"et200_sp_ea_ebene",
|
||||||
"netzwerk_fernwartung",
|
"netzwerk_fernwartung",
|
||||||
@@ -2976,7 +2964,6 @@ class TestObjectMethods(unittest.TestCase):
|
|||||||
self.assertEqual(hw.anzahl("sps_simatic_s7_1517_3"), 1)
|
self.assertEqual(hw.anzahl("sps_simatic_s7_1517_3"), 1)
|
||||||
self.assertEqual(hw.anzahl("sps_simatic_s7_1518_4"), 0)
|
self.assertEqual(hw.anzahl("sps_simatic_s7_1518_4"), 0)
|
||||||
self.assertEqual(hw.anzahl("sps_et200_1512sp"), 0)
|
self.assertEqual(hw.anzahl("sps_et200_1512sp"), 0)
|
||||||
self.assertEqual(hw.anzahl("memory_card_256_mb"), 1)
|
|
||||||
self.assertEqual(hw.anzahl("memory_card_2_gb"), 0)
|
self.assertEqual(hw.anzahl("memory_card_2_gb"), 0)
|
||||||
self.assertEqual(hw.anzahl("et200_sp_ea_ebene"), 2)
|
self.assertEqual(hw.anzahl("et200_sp_ea_ebene"), 2)
|
||||||
self.assertEqual(hw.anzahl("netzwerk_fernwartung"), 1)
|
self.assertEqual(hw.anzahl("netzwerk_fernwartung"), 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user