Changes for page Другие команды (фоновые операции)
Last modified by writer on 2023/09/08 19:06
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,233 +1,233 @@ 1 -===== **bool IsGCodeRunning()** ===== 1 +===== **bool IsGCodeRunning ()** ===== 2 2 3 - Позволяетпроверить,находится лиPUMOTIXврежимевыполненияG-кода.3 +Checks if PUMOTIX is in G-code execution mode. 4 4 5 - Возвращаемоезначение:5 +Return value: 6 6 7 -* true –еслиPUMOTIXнаходитсяврежиме выполненияG-кода;7 +* true - if PUMOTIX is in G-code execution mode. 8 8 9 -===== **bool IsMDIRunning()** ===== 9 +===== **bool IsMDIRunning ()** ===== 10 10 11 - Позволяетпроверить,находится лиPUMOTIXврежимевыполнениякомандыручноговвода.11 +Checks if PUMOTIX is in manual command execution mode. 12 12 13 - Возвращаемоезначение:13 +Return value: 14 14 15 -* true –еслиPUMOTIXнаходитсяврежимевыполнениякомандыручноговвода;15 +* true - if PUMOTIX is in the execution mode of the manual input command. 16 16 17 -===== **bool IsRunning()** ===== 17 +===== **bool IsRunning ()** ===== 18 18 19 - Позволяетпроверить,находится лиPUMOTIXврежимевыполненияG-кодаиликомандыручноговвода.19 +Checks if PUMOTIX is in G-code or manual entry mode. 20 20 21 - Возвращаемоезначение:21 +Return value: 22 22 23 -* true –еслиактивенлюбойиздвухрежимовIsGCodeRunning()илиIsMDIRunning();23 +* true - if either of the two IsGCodeRunning () or IsMDIRunning () modes is active. 24 24 25 -===== **bool IsIdle()** ===== 25 +===== **bool IsIdle ()** ===== 26 26 27 - Позволяетпроверить,находитсялиPUMOTIXврежимеожидания(состояниеВклкнопкивключения).27 +Allows you to check whether the PUMOTIX is in standby mode ("on" state of the power button). 28 28 29 - Возвращаемоезначение:29 +Return value: 30 30 31 -* true –еслиPUMOTIXнаходитсяврежимеожидания;31 +* true - if PUMOTIX is in standby mode. 32 32 33 -===== **bool IsEStop()** ===== 33 +===== **bool IsEStop ()** ===== 34 34 35 - Позволяетпроверить,находится лиPUMOTIXврежимеEStop (состояниеВыклкнопкивключения).35 +Checks if PUMOTIX is in EStop mode ("off" state of the power button). 36 36 37 - Возвращаемоезначение:37 +Return value: 38 38 39 -* true –еслиPUMOTIXнаходитсяврежимеEStop.39 +* true - if PUMOTIX is in EStop mode. 40 40 41 -===== **void FloodEnable()** ===== 41 +===== **void FloodEnable ()** ===== 42 42 43 - Включениеподачиохлаждающейжидкостиполивом.43 +Turn on the flood coolant. 44 44 45 -===== **void FloodDisable()** ===== 45 +===== **void FloodDisable ()** ===== 46 46 47 - Выключениеподачиохлаждающейжидкостиполивом.47 +Turn off the flood coolant. 48 48 49 -===== **void MistEnable()** ===== 49 +===== **void MistEnable ()** ===== 50 50 51 - Включениеподачиохлаждающейжидкости распылением.51 +Turn on spray coolant. 52 52 53 -===== **void MistDisable()** ===== 53 +===== **void MistDisable ()** ===== 54 54 55 - Выключениеподачиохлаждающейжидкостираспылением.55 +Switch off the spray coolant. 56 56 57 -===== **void Stop()** ===== 57 +===== **void Stop ()** ===== 58 58 59 - Остановка выполненияG-кода.59 +G-code execution stop. 60 60 61 -===== **void EStop()** ===== 61 +===== **void EStop ()** ===== 62 62 63 - ЭкстреннаяостановкавыполненияG-кодаипереводсистемыврежимВыкл.63 +Emergency stop execution of the G-code and putting the system in Off mode. 64 64 65 -===== **void Sleep(number milliseconds)** ===== 65 +===== **void Sleep (number milliseconds)** ===== 66 66 67 - Ожиданиевтечениеуказанногоколичествамиллисекунд.67 +Waiting for the specified number of milliseconds. 68 68 69 - Параметры:69 +Options: 70 70 71 -* number milliseconds –количествомиллисекунд,втечениекоторыхвыполнениефоновогомакросабудетприостановлено.71 +* number milliseconds - the number of milliseconds during which the execution of the background macro will be suspended. 72 72 73 -===== **void DisplayMessage(string message)** ===== 73 +===== **void DisplayMessage (string message)** ===== 74 74 75 - Отображениевпользовательскоминтерфейсесообщенияотфоновогомакроса. Длякорректногоотображениясимволовнациональных алфавитов файл макроса должен быть сохранён в кодировке UTF-8.75 +Display in the user interface of a message from a background macro. 76 76 77 - Параметры:77 +Options: 78 78 79 -* string message –текстсообщения,котороедолжнобытьпоказанопользователю.79 +* string message - the text of the message that should be shown to the user. 80 80 81 -===== **string Get_Message(number messageId)** ===== 81 +===== **string Get_Message (number messageId)** ===== 82 82 83 - Получениеодногоизпредопределённыхлокализованныхтекстовыхсообщений.83 +Getting one of predefined localized text messages. 84 84 85 - Параметры:85 +Options: 86 86 87 -* number messageId – идентификаторсообщения(вкачестве этогопараметра должна передаватьсяодназконстант,определённыхвспискеMessages).87 +* number messageId – message ID (one of the constants defined in the [[**Messages**>>doc:Руководство пользователя.Описание M-кодов.Описание функций макроязыка.Другие команды.WebHome]] list must be passed as this parameter). 88 88 89 - Возвращаемоезначение:89 +Return value: 90 90 91 -* локализованноетекстовоесообщение.91 +* localized text message. 92 92 93 -===== **bool IsRealDeviceConnected()** ===== 93 +===== **bool IsRealDeviceConnected ()** ===== 94 94 95 - Позволяетпроверить,установленолиподключениек контроллеру.95 +Allows you to check device connection. 96 96 97 - Возвращаемоезначение:97 +Return value: 98 98 99 -* true – есливыбранореальноеустройство(несимулятор)иподключениекнему установлено.99 +* true – if a real device (not a simulator) is selected and connected. 100 100 101 -===== **number GetExecutingMCode()** ===== 101 +===== **number GetExecutingMCode ()** ===== 102 102 103 - Возвращаетномер,выполняющегосямакроса.Еслимакроснезапущенвозвращает-1.103 +Getting an executing macro code. It returns -1 if no one macro is executed. 104 104 105 - Возвращаемоезначение:105 +Return value: 106 106 107 -* номермакроса.107 +* macro code. 108 108 109 -===== **string str(number value)** ===== 109 +===== **string str (number value)** ===== 110 110 111 - Преобразованиевещественногочиславстроку.111 +Convert a real number to a string. 112 112 113 - ЯзыкLuaподдерживаетнеявноепреобразованиечиславстроку,нопоумолчаниюдляоченьмаленькоговещественногочисларезультатпреобразованияможетиметьэкспоненциальныйформат,чтонепозволяетиспользоватьстрокукакчастьстрокиG-кода.Дляудобстваможноиспользоватьфункциюstr,котораягарантирует,чточислобудетиметьдесятичноепредставление.113 +The Lua language supports implicit conversion of a number into a string, but by default for a very small real number the conversion result can have an exponential format, which does not allow using the string as part of a G-code string. For convenience, you can use the str function, which ensures that the number has a decimal representation. 114 114 115 - Параметры:115 +Options: 116 116 117 -* number value –вещественноечисло,котороенеобходимопреобразовать.117 +* number value - a real number to be converted. 118 118 119 - Возвращаемоезначение:119 +Return value: 120 120 121 -* строковоепредставлениезаданногочисла.121 +* string representation of a given number. 122 122 123 -===== **number GetSystemTickCount()** ===== 123 +===== **number GetSystemTickCount ()** ===== 124 124 125 - Получениеколичествамиллисекунд,прошедшегосмоментазапускаоперационнойсистемы.Можетиспользоватьсядлязамераинтерваловвремени.ДляполучениятекущихкалендарныхдатыивременивUnixTimeнеобходимоиспользоватьстандартнуюфункцию Lua (%style="color:#242729"%)**os.time()**.125 +Getting the number of milliseconds since the operating system started. It can be used to measure time intervals. To get the current calendar date and time in UnixTime, you need to use the standard Lua **os.time()** function. 126 126 127 - Возвращаемоезначение:127 +Return value: 128 128 129 -* количествомиллисекунд,прошедшеесмоментазапускаоперационнойсистемы.129 +* the number of milliseconds since the operating system started. 130 130 131 -===== **void SetUserVariable(number index, number value)** ===== 131 +===== **void SetUserVariable (number index, number value)** ===== 132 132 133 - Установказначенияпользовательскойпеременной.Данноезначениеможетбытьпрочитанопривыполнениидругогомакроса,втомчислепослеперезапускаPUMOTIX.133 +Setting the value of a user variable. This value can be read when another macro is executed, including after restarting PUMOTIX. 134 134 135 - Параметры:135 +Options: 136 136 137 -* number index –номерпеременной,целоечислоот0до99;138 -* number value –значениепользовательскойпеременной(вещественноечисло),котороенеобходимоустановить.137 +* number index - variable number, integer from 0 to 99; 138 +* number value - the value of the user variable (real number) that must be set. 139 139 140 -===== **number GetUserVariable(number index)** ===== 140 +===== **number GetUserVariable (number index)** ===== 141 141 142 - Получениезначенияпользовательскойпеременной.142 +Getting the value of a user variable. 143 143 144 - Параметры:144 +Options: 145 145 146 -* number index –номерпеременной,целоечислоот0до99.146 +* number index - the number of the variable, an integer from 0 to 99. 147 147 148 - Возвращаемоезначение:148 +Return value: 149 149 150 -* текущеезначениепользовательскойпеременной(вещественноечисло).150 +* current value of the user variable (real number). 151 151 152 -===== **bool GetLedUserValue(number index)** ===== 152 +===== **bool GetLedUserValue (number index)** ===== 153 153 154 - Выводитзначениепользовательскойпеременной.154 +Getting a value of user led (boolean). 155 155 156 - Параметры:156 +Options: 157 157 158 -* number index – номерпеременной,целоечислоот0до29.158 +* number index – variable number, integer from 0 to 29. 159 159 160 - Возвращаемоезначение:160 +Return value: 161 161 162 -* bool - значениепользовательскойпеременной.162 +* bool - user variable value. 163 163 164 -===== **void SetLedUserValue(number index, bool a_value)** ===== 164 +===== **void SetLedUserValue (number index, bool a_value)** ===== 165 165 166 - Установказначенияпользовательскойпеременной.Данноезначениеможетбытьпрочитанопривыполнениидругого макроса,втомчисле после перезапускаPUMOTIX.166 +Setting a user variable value. This value can be read in another macro, including after PUMOTIX rebooting. 167 167 168 - Параметры:168 +Options: 169 169 170 -* number index – номерпеременной,целоечислоот0до29;171 -* bool a_value – значениепользовательскойпеременной.170 +* number index – variable number, integer from 0 to 29; 171 +* bool a_value – user variable value. 172 172 173 -===== **number GetNumUserValue(number index)** ===== 173 +===== **number GetNumUserValue (number index)** ===== 174 174 175 - Выводитзначенияпользовательскойпеременной.175 +Getting a user number value (real). 176 176 177 - Параметры:177 +Options: 178 178 179 -* number index – номерпеременной,целоечислоот0до29.179 +* number index – variable number, integer from 0 to 29. 180 180 181 - Возвращаемоезначение:181 +Return value: 182 182 183 -* number - значениепользовательскойпеременной.183 +* number - user variable value. 184 184 185 -===== **void SetNumUserValue(number index, number value)** ===== 185 +===== **void SetNumUserValue (number index, number value)** ===== 186 186 187 - Установказначенияпользовательскойпеременной.Данноезначениеможетбытьпрочитанопривыполнениидругого макроса,втомчисле после перезапускаPUMOTIX.187 +Setting a user variable value. This value can be read in another macro, including after PUMOTIX rebooting. 188 188 189 - Параметры:189 +Options: 190 190 191 -* number index – номер переменной,целоечислоот0до29;192 -* number value – значениепользовательскойпеременной(вещественноечисло),котороенеобходимо установить.191 +* number index – variable number, integer from 0 to 29; 192 +* number value – user variable value (real number) to set. 193 193 194 -===== **string GetStrUserValue(number index)** ===== 194 +===== **string GetStrUserValue (number index)** ===== 195 195 196 - Выводитзначенияпользовательскойпеременной.196 +Getting a user string value. 197 197 198 - Параметры:198 +Options: 199 199 200 -* number index – номерпеременной,целоечислоот0до29.200 +* number index – variable number, integer from 0 to 29. 201 201 202 - Возвращаемоезначение:202 +Return value: 203 203 204 -* string -значениепользовательскойпеременной.204 +* string – user variable value. 205 205 206 -===== **void SetStrUserValue(number index, string value)** ===== 206 +===== **void SetStrUserValue (number index, string value)** ===== 207 207 208 - Установказначенияпользовательскойпеременной.Данноезначениеможетбытьпрочитанопривыполнениидругого макроса,втомчисле после перезапускаPUMOTIX.208 +Setting a user variable value. This value can be read in another macro, including after PUMOTIX rebooting. 209 209 210 - Параметры:210 +Options: 211 211 212 -* number index – номерпеременной,целоечислоот0до29;213 -* string value -значениепользовательскойпеременной(строка),котороенеобходимо установить.212 +* number index – variable number, integer from 0 to 29; 213 +* string value – user variable value (string) to set. 214 214 215 -===== **void RunGCode()** ===== 215 +===== **void RunGCode ()** ===== 216 216 217 - ЗапусквыполненияG-кода(аналогичнонажатиюкнопкиСтарт).217 +Start G-code running (similar to pressing the Start button). 218 218 219 -===== **void RunMDI(string command)** ===== 219 +===== **void RunMDI (string command)** ===== 220 220 221 - ВыполнениезаданнойстрокиG-кода.Функциясразужепослевызовавозвращаетуправлениеивыполнениефоновогомакросапродолжается.221 +Execute a given string of G-code. The function returns immediately after the call and execution of the background operation continues. 222 222 223 - Параметры:223 +Options: 224 224 225 -* string command – строкаG-кода,котораядолжнабыть выполнена.225 +* string command – G-code string to execute. 226 226 227 -===== **void WeldOscillatorEnable()** ===== 227 +===== **void WeldOscillatorEnable ()** ===== 228 228 229 - Включениеколебателя.229 +Oscillator on. 230 230 231 -===== **void WeldOscillatorDisable()** ===== 231 +===== **void WeldOscillatorDisable ()** ===== 232 232 233 - Выключениеколебателя.233 +Oscilator off.