Difference between revisions of "MC-Basic:SAVE"
m (Miborich moved page Axystems:MC-Basic:SAVE to MC-Basic:SAVE: Global renaming of Axystems: namespace into (Main):) |
(fixed " mark) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages|MC-Basic:SAVE}} | ||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
Line 51: | Line 52: | ||
|EXAMPLE= | |EXAMPLE= | ||
− | SAVE file= | + | SAVE file="all.prg" type = all MODE= APPEND |
− | SAVE file= | + | 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]] | ||
− | |||
}} | }} |
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