Difference between revisions of "MC-Basic:SAVE"

From SoftMC-Wiki
Jump to: navigation, search
m (Text replace - "Versions 3.7.x and higher" to "Since Version 3.7.x")
(fixed " mark)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:SAVE}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 10: Line 11:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
Creates a file with the name given in the string expression. The name should be in the form, *.prg. It stores values of the global variables specified with type/robottype in a standard MC-BASIC format. The stored file is in automatically executable format: Program Continue/Terminate Program. Are enclosing the values assignments.
+
Creates a file with the name given in the string expression. The name should be in the form, *.prg. It stores values of the global variables specified with type/robottype in a standard MC-Basic format. The stored file is in automatically executable format: Program Continue/Terminate Program. Are enclosing the values assignments.
  
 
If a file with such a name already exists, it will be renamed to a *.bak file. If the *.bak file already exists, it will be rewritten.
 
If a file with such a name already exists, it will be renamed to a *.bak file. If the *.bak file already exists, it will be rewritten.
  
ROBOTTYPE definds the type of robot point variables , defined  by  TYPE  .
+
ROBOTTYPE definds the type of robot point variables , defined by TYPE.
  
It's usefull only with TYPE , specified as robot Locations or Joint variables.
+
It's useful only with TYPE, specified as robot Locations or Joint variables.
  
  
Line 51: Line 52:
  
 
|EXAMPLE=
 
|EXAMPLE=
SAVE file=”all.prg” type = all  MODE= APPEND
+
SAVE file="all.prg" type = all  MODE= APPEND
  
SAVE file=”points.prg” type = Location robottype = XYZR  MODE= NEW
+
SAVE file="points.prg" type = Location robottype = XYZR  MODE= NEW
  
 
|SEE ALSO=
 
|SEE ALSO=
 +
* [[MC-Basic:LOAD|LOAD]]
 +
* [[MC-Basic:LOAD$|LOAD$]]
 +
 +
 +
[[Category:MC-Basic:Declarations|SAVE]]
  
[[Category:Axystems:MC-Basic:Declarations|SAVE]]
 
 
}}
 
}}

Latest revision as of 05:31, 14 April 2020

Language: English  • 中文(简体)‎

Creates a file with the name given in the string expression. The name should be in the form, *.prg. It stores values of the global variables specified with type/robottype in a standard MC-Basic format. The stored file is in automatically executable format: Program Continue/Terminate Program. Are enclosing the values assignments.

If a file with such a name already exists, it will be renamed to a *.bak file. If the *.bak file already exists, it will be rewritten.

ROBOTTYPE definds the type of robot point variables , defined by TYPE.

It's useful only with TYPE, specified as robot Locations or Joint variables.


Use APPEND to add new lines at the end of the original contents of the file.

Use NEW to overwrite the previous file.

Syntax

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

Availability

Since Version 3.7.x

Range

<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

Scope

Configuration, Task, Terminal

Examples

SAVE file="all.prg" type = all  MODE= APPEND

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

See Also