public JsonResult OPCSendCommand(string Equipment, string Command, string Type)
        {
            Dictionary <string, object> response = new Dictionary <string, object>();
            string port = EquipmentModels.GetPort(Equipment);

            //for forcing values for testing purposes
            //Equipment = "AMPICIMAPPDEV1";
            //port = "6666";

            if (port != "" && port != null)
            {
                if (Type.ToString().ToUpper() == "LASER MARK TEST")
                {
                    Command = "<C>" + Command + "</C>";
                }

                var Duration = Convert.ToInt32(SettingModels.GetOPCTimeout());
                var isTimer  = SettingModels.IsOPCTimeout();

                EquipmentModels.insertTCPNotification(Equipment, Command, "MACHINE_REQUEST");

                var result = HttpHandler.OPCSendCommand(Equipment, port, Command, Duration, isTimer);

                if (result != null)
                {
                    response.Add("Result", result.Result);
                    response.Add("Error", Convert.ToBoolean(result.Error));
                }
            }

            return(Json(response, JsonRequestBehavior.AllowGet));
        }