Difference between revisions of "MC-Basic:PrintPoint"

From SoftMC-Wiki
Jump to: navigation, search
(in construction)
 
(in construction)
 
Line 4: Line 4:
  
 
|SYNTAX=
 
|SYNTAX=
:PRINTPOINT  
+
: PRINTPOINT  
  
 
|AVAILABILITY=
 
|AVAILABILITY=
Line 11: Line 11:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
 
+
PrintPoint prints only variables that were declared as a cartesian location (...as Location of...). <br>
 +
The rest of the properties of this command are similar to [[MC-Basic:PRINT|PRINT]] command.
  
 
|TYPE=
 
|TYPE=
 +
: Printed Point: String
 
: ''< (DetectOverflow)Expression>'': Long
 
: ''< (DetectOverflow)Expression>'': Long
  
Line 23: Line 25:
  
 
|DEFAULT=
 
|DEFAULT=
 
+
: If a cartasian location variable was defined with no [[Point Redundancy|point redundancy flag]] the default printpoint will be; {X,Y,Z,R;}
  
 
|SCOPE=
 
|SCOPE=
Line 32: Line 34:
  
 
|EXAMPLE=
 
|EXAMPLE=
 
+
: common shared PNT as Location of XYZR
 +
:: PNT = #{0,0,0,0}
 +
: --> PrintPoint PNT
 +
: #{0 , 0 , 0 , 0 ;}
 +
:: PNT = #{0,0,0,0;0}
 +
: --> PrintPoint PNT
 +
: #{0 , 0 , 0 , 0 ; 0}
  
 
|SEE ALSO=
 
|SEE ALSO=

Latest revision as of 08:24, 15 August 2019

PrintPoint prints only variables that were declared as a cartesian location (...as Location of...).
The rest of the properties of this command are similar to PRINT command.

Syntax

PRINTPOINT

Availability

FirmWare 0.4.20.1 and newer

Type

Printed Point: String
< (DetectOverflow)Expression>: Long

Range

< (DetectOverflow)Expression>: 0 or 1

Default

If a cartasian location variable was defined with no point redundancy flag the default printpoint will be; {X,Y,Z,R;}

Scope

Configuration, Task or Terminal

Limitations

Variables defined within a task may be queried from outside the task (for example, from the terminal) only when the task is idle. Within a task, local variables are only available if the task is idled in a section of code wherein the local variable was declared.

Examples

common shared PNT as Location of XYZR
PNT = #{0,0,0,0}
--> PrintPoint PNT
#{0 , 0 , 0 , 0 ;}
PNT = #{0,0,0,0;0}
--> PrintPoint PNT
#{0 , 0 , 0 , 0 ; 0}

See Also