MC-Basic:SAVE/zh-hans

From SoftMC-Wiki
< MC-Basic:SAVE
Revision as of 02:58, 28 April 2017 by Chi (talk | contribs) (Created page with "{{Languages}} == 缩写 == == 格式 == SAVE FILE = <''filename'' ''string''> TYPE = <''variable type''> {ROBOTTYPE= <''robottype''>} {VARIABLENAME= <''variable_name string'...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
语言: [[::MC-Basic:SAVE|English]]  • [[::MC-Basic:SAVE/zh-hans|中文(简体)‎]]

缩写

格式

SAVE FILE = <filename string> TYPE = <variable type> {ROBOTTYPE= <robottype>} {VARIABLENAME= <variable_name string>} {MODE= <APPEND or NEW>}

适用版本

Since Version 3.7.x

描述

创建一个由字符串命名的文件。该名称格式应为:*.prg。它储存的数值为全局变量,该变量以标准MC-BASIC格式定义类型/机器人类型。该被储存的文件属于被自动执行的格式:Program Continue/Terminate Program。将数值封装在任务内。

如果一个文件被命名为一个已有的名称,它将被重命名为*.bak。如果该*.bak文件已经存在,它将被覆盖。

ROBOTTYPE定义了机器人point变量的类型,通过TYPE定义。

它仅与TYPE公共起作用,被指定为机器人位置或者关节变量。

使用APPEND在原文件内容中增加新的一行。

使用NEW覆盖之前的文件。


类型

取值范围

<variable_name string> = any regular expression using "*" and "?" signs for filtering the name list (same as DIR).

< robottype>  :                    XYZR, - Three cartesian axes + roll

XY – two axes XY table

XYZ – three axes XYZ system

XYZYPR - X-Y-Z-Yaw-Pitch-RollUnits         N/A

单位

默认值

使用范围

配置器, 任务区, 终端

限制

例子

SAVE file=”all.prg” type = all? MODE= APPEND

SAVE file=”points.prg” type = Location robottype = XYZR? MODE= NEW

参见