Skip to content

Commit

Permalink
Update _S7_HW_Config_Example.au3
Browse files Browse the repository at this point in the history
  • Loading branch information
THWillert authored Aug 19, 2020
1 parent e8d1073 commit d90e9c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions _S7_HW_Config_Example.au3
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ _S7_Simatic_AutomaticSave($oS7, False) ; Automatisches Speichern ausschalten - w
If @error Then Exit

; Projekt-Object
$oSt = $oS7.Projects("HW_Config_Test").Stations("SIMATIC 300(1)")
Local $oSt = $oS7.Projects("HW_Config_Test").Stations("SIMATIC 300(1)")

; Rack in Project einfügen
$oRack = _S7_HWConfig_Add_Rack($oSt, "rack1")
Local $oRack = _S7_HWConfig_Add_Rack($oSt, "rack1")

; CPU in Rack einfügen
$oCPU = _S7_HWConfig_Add_CPU($oRack, "CPU 317-2PN/DP", "6ES7 317-2EK14-0AB0")
$oSub = _S7_HWConfig_Add_SubSystem($oCPU, "Kreis 1") ; SubSystem-Verbindung mit CPU
Local $oCPU = _S7_HWConfig_Add_CPU($oRack, "CPU 317-2PN/DP", "6ES7 317-2EK14-0AB0")
Local $oSub = _S7_HWConfig_Add_SubSystem($oCPU, "Kreis 1") ; SubSystem-Verbindung mit CPU

; Konfiguration für CPU-Module - werden in Rack eingfüg
; Konfiguration für CPU-Module - werden in Rack eingefügt
Dim $aSlave[2][5]
$aSlave[0][0] = "AO8x12Bit"
$aSlave[0][1] = "6ES7 332-5HF00-0AB0"
Expand Down

0 comments on commit d90e9c6

Please sign in to comment.