MC-Basic:SAVE

From SoftMC-Wiki
Revision as of 16:01, 13 December 2010 by Arwiebe (talk | contribs) (Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= SAVE FILE = <''filename'' ''string''> TYPE = <''variable type''> {ROBOTTYPE= <''robottype''>} {VARIABLENAME= <''variable_name string''>} {MODE=…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 usefull 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

Versions 3.7.x and higher

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