Index: trunk/MagicSoft/Cosy/tcpip/MDriveCom.cc
===================================================================
--- trunk/MagicSoft/Cosy/tcpip/MDriveCom.cc	(revision 7787)
+++ trunk/MagicSoft/Cosy/tcpip/MDriveCom.cc	(revision 7788)
@@ -118,4 +118,57 @@
 }
 
+bool MDriveCom::CommandPREPS(TString &str)
+{
+    str = str.Strip(TString::kBoth);
+    if (str.IsNull())
+    {
+        cout << "ERROR - No identifier for preposition (PREPS) given." << endl;
+        return false;
+    }
+    if (str.First(' ')>=0)
+    {
+        cout << "ERROR - PREPS command syntax error (contains whitespaces)." << endl;
+        return false;
+    }
+
+    str.ToLower();
+
+    cout << "CC-COMMAND " << MTime(-1) << " PREPS '" << str << "'" << endl;
+
+    //cout << "MDriveCom - TRACK... start." << endl;
+    fQueue->PostMsg(WM_PREPS, (void*)str.Data(), str.Length()+1);
+    //cout << "MDriveCom - TRACK... done." << endl;
+    return true;
+}
+
+bool MDriveCom::CommandARM(TString &str)
+{
+    str = str.Strip(TString::kBoth);
+    if (str.IsNull())
+    {
+        cout << "ERROR - No identifier for ARM command." << endl;
+        return false;
+    }
+    if (str.First(' ')>=0)
+    {
+        cout << "ERROR - ARM command syntax error (contains whitespaces)." << endl;
+        return false;
+    }
+
+    str.ToLower();
+    if (str!="lock" && str!="unlock")
+    {
+        cout << "ERROR - ARM command syntax error (neither LOCK nor UNLOCK)." << endl;
+        return false;
+    }
+
+    cout << "CC-COMMAND " << MTime(-1) << " ARM '" << str << "'" << endl;
+
+    bool lock = str=="lock";
+
+    fQueue->PostMsg(WM_ARM, &lock, sizeof(lock));
+    return true;
+}
+
 bool MDriveCom::InterpreteCmd(TString cmd, TString str)
 {
@@ -148,8 +201,5 @@
 
     if (cmd==(TString)"PREPS")
-    {
-        cout << "Prepos: " << str << endl;
-        return true;
-    }
+        return CommandPREPS(str);
 
     if (cmd.IsNull() && str.IsNull())
Index: trunk/MagicSoft/Cosy/tcpip/MDriveCom.h
===================================================================
--- trunk/MagicSoft/Cosy/tcpip/MDriveCom.h	(revision 7787)
+++ trunk/MagicSoft/Cosy/tcpip/MDriveCom.h	(revision 7788)
@@ -25,4 +25,6 @@
     bool CommandGRB(TString &str);
     bool CommandZDAZ(TString &str);
+    bool CommandPREPS(TString &str);
+    bool CommandARM(TString &str);
 
 public:
@@ -46,13 +48,2 @@
 
 #endif
-
-
-
-
-
-
-
-
-
-
-
