<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Bedienung mithilfe Kommandozeile</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/df99eaa3e7/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/df99eaa3e7/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/df99eaa3e7/</id><updated>2020-02-28T14:49:07.855000Z</updated><subtitle>Recent posts to Bedienung mithilfe Kommandozeile</subtitle><entry><title>Bedienung mithilfe Kommandozeile</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/df99eaa3e7/?limit=25#6750" rel="alternate"/><published>2020-02-28T14:49:07.855000Z</published><updated>2020-02-28T14:49:07.855000Z</updated><author><name>Robin Krumm</name><uri>https://forge.codesys.com/u/robin-krumm/</uri></author><id>https://forge.codesys.comf83fb0fec9a218cea2e886a5251fea61ef7ec3f7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ich habe eine Lösung für mein Problem gefunden:&lt;/p&gt;
&lt;p&gt;Meine Start.bat Datei sieht jetzt so aus:&lt;/p&gt;
&lt;p&gt;cd D:\Programme\codesys2.3\CoDeSys" "V2.3\&lt;br/&gt;
D:&lt;br/&gt;
codesys.exe Systemtest_SR.pro /cmd command.cmd&lt;/p&gt;
&lt;p&gt;Jetzt startet es das gewünschte Projekt, lädt es in die SPS und startet es.&lt;/p&gt;
&lt;p&gt;command.cmd:&lt;br/&gt;
query off ok&lt;br/&gt;
online login&lt;br/&gt;
online run&lt;/p&gt;
&lt;p&gt;Wenn allerdings auf der SPS ein anderes Projekt aufgespielt ist kommt die Meldung "Das Programm wurde geändert Soll das neue Programm geladen werden"&lt;br/&gt;
Nachdem ich "OK" bestätigt habe führt er den "online run" Befehl aber nicht mehr aus.&lt;br/&gt;
Ich dachte das "query off ok" Kommando bestätigt für mich automatisch das "OK"&lt;br/&gt;
Muss ich dieses Kommando irgendwie anders anwenden?&lt;/p&gt;
&lt;p&gt;Robin&lt;/p&gt;
&lt;p&gt;PS:&lt;br/&gt;
Wenn ich die Anführungszeichen ändere kommt bei mir immer noch die gleiche Fehlermeldung&lt;br/&gt;
"D:\Programme\codesys2.3\CoDeSys V2.3\codesys.exe" "Systemtest_SR.pro" /cmd command.cmd&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bedienung mithilfe Kommandozeile</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/df99eaa3e7/?limit=25#24f6" rel="alternate"/><published>2020-02-28T14:49:05.027000Z</published><updated>2020-02-28T14:49:05.027000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com27ce7522eb8a47164e67572858d4541d35e485d8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;denke da stimmt was mit den Anführungszeichen in Start.bat nicht&lt;/p&gt;
&lt;p&gt;D:\Programme\codesys2.3\CoDeSys" "V2.3\codesys.exe First Step.pro /cmd command.cmd&lt;/p&gt;
&lt;p&gt;oder ist das ein copy und paste fehler beim antworten?&lt;/p&gt;
&lt;p&gt;Bei mir ist es so im start.bat&lt;br/&gt;
"C:\Program Files\3S Software\CoDeSys V2.3\Codesys.exe" "projekt.pro" /cmd command.cmd&lt;/p&gt;
&lt;p&gt;cu&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bedienung mithilfe Kommandozeile</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/df99eaa3e7/?limit=25#5f79" rel="alternate"/><published>2020-02-28T14:48:57.078000Z</published><updated>2020-02-28T14:48:57.078000Z</updated><author><name>Robin Krumm</name><uri>https://forge.codesys.com/u/robin-krumm/</uri></author><id>https://forge.codesys.com7c7f9a9d117cbd05566a1c6a27b56e4d3960a3d5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Danke für die schnelle Antwort, aber ich bekomme es immer noch nicht hin.&lt;/p&gt;
&lt;p&gt;Ich habe jetzt eine start.bat erstellt mit folgendem Inhalt:&lt;/p&gt;
&lt;p&gt;D:\Programme\codesys2.3\CoDeSys" "V2.3\codesys.exe First Step.pro /cmd command.cmd&lt;/p&gt;
&lt;p&gt;Die command.cmd hat folgenden Inhalt :&lt;/p&gt;
&lt;p&gt;query off ok&lt;br/&gt;
online login&lt;br/&gt;
online run&lt;/p&gt;
&lt;p&gt;Das Projekt "First Step.pro" und die command.cmd habe ich in den gleichen Ordner wie die codesys.exe&lt;/p&gt;
&lt;p&gt;Es öffnet sich Codesys (ohne Projekt)aber mit dem Fehler Projekt-/Bibliothek kann nicht geladen werden. Keine gültige Projekts-/Bibliotheksdatei&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bedienung mithilfe Kommandozeile</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/df99eaa3e7/?limit=25#8af0" rel="alternate"/><published>2020-02-28T14:48:54.038000Z</published><updated>2020-02-28T14:48:54.038000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comaaff93d15f8337b313bdde684820f47c224cb027</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;ich würde es mal so angehen:&lt;/p&gt;
&lt;p&gt;ne Batch datei anlegen also Start.bat Beispielsweise:&lt;/p&gt;
&lt;p&gt;"C:\Program Files\3S Software\CoDeSys V2.3\Codesys.exe" "projekt.pro" /cmd command.cmd&lt;/p&gt;
&lt;p&gt;die Command.cmd  müsste dann so aussehen:&lt;/p&gt;
&lt;p&gt;query off ok&lt;br/&gt;
online login&lt;br/&gt;
online run&lt;/p&gt;
&lt;p&gt;das müsste gehen...&lt;/p&gt;
&lt;p&gt;cu&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bedienung mithilfe Kommandozeile</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/df99eaa3e7/?limit=25#f300" rel="alternate"/><published>2020-02-28T14:48:51.282000Z</published><updated>2020-02-28T14:48:51.282000Z</updated><author><name>Robin Krumm</name><uri>https://forge.codesys.com/u/robin-krumm/</uri></author><id>https://forge.codesys.com9ad006d38742856c2097a1366b336f9962d0d529</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo&lt;/p&gt;
&lt;p&gt;Ich möchte ein Projekt mithilfe einer Kommandozeile in die SPS laden (online Einloggen) und starten (online Start)&lt;/p&gt;
&lt;p&gt;In der Hilfe habe ich die Befehlssätze dafür (/online und /run gefunden). Leider funktioniert es bisher nicht.&lt;/p&gt;
&lt;p&gt;Ich schaffe es ein Projekt zu öffnen ( C:...pfad\projekt.pro)&lt;br/&gt;
wenn ich an den Pfad noch eine Kommando anhänge öffnet sich zwar das Projekt aber das Kommando wird nicht ausgeführt&lt;br/&gt;
(C:...pfad\projekt.pro /online)&lt;/p&gt;
&lt;p&gt;Wenn ich nur Codesys öffne (C....pfad...\codesys.exe) erhalte ich den Fehler "Projekt/Bibliothek kann nicht geöffnet werden (keine gültige Projekt-/Bibliotheksdatei)&lt;/p&gt;
&lt;p&gt;Ich freue mich über jede Unterstützung&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>