Difference between revisions of "MC-Basic:PRINTTOBUFF"
(PrintToBuff command) |
m (Added description of the send parameter.) |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
|RANGE= | |RANGE= | ||
''<DeviceHandle>: 1 to 255<br> | ''<DeviceHandle>: 1 to 255<br> | ||
+ | |SCOPE= | ||
+ | Configuration, Task or Terminal | ||
''<Send>: TRUE or FALSE | ''<Send>: TRUE or FALSE | ||
|UNITS= | |UNITS= | ||
Line 14: | Line 16: | ||
− | |||
− | |||
|LIMITATIONS= | |LIMITATIONS= | ||
Line 21: | Line 21: | ||
|DESCRIPTION= | |DESCRIPTION= | ||
− | Multiple expressions are printed to a buffer, separated by either a comma or semicolon. The semicolon puts the two expressions next to each other, while the comma puts a tab between them. | + | Multiple expressions are printed to a buffer in the serial port, separated by either a comma or semicolon. The semicolon puts the two expressions next to each other, while the comma puts a tab between them. The value assigned to the optional Send parameter determines whether the buffer content will be send to serial port at the end of the command (Send = True) or stored in the buffer (Send = False). If send assignment is abolished, send defaults to False. |
|TYPE= | |TYPE= | ||
Line 36: | Line 36: | ||
* [[MC-Basic:PRINT|PRINT]] | * [[MC-Basic:PRINT|PRINT]] | ||
* [[MC-Basic:PRINT HASH|PRINT HASH]] | * [[MC-Basic:PRINT HASH|PRINT HASH]] | ||
− | |||
− | |||
* [[MC-Basic:OPEN|OPEN]] | * [[MC-Basic:OPEN|OPEN]] | ||
* [[MC-Basic:CLOSE|CLOSE]] | * [[MC-Basic:CLOSE|CLOSE]] | ||
− | |||
− | |||
[[Category:MC-Basic:File Management|PRINTTOBUFF]] | [[Category:MC-Basic:File Management|PRINTTOBUFF]] | ||
}} | }} |
Latest revision as of 12:25, 10 August 2020
Multiple expressions are printed to a buffer in the serial port, separated by either a comma or semicolon. The semicolon puts the two expressions next to each other, while the comma puts a tab between them. The value assigned to the optional Send parameter determines whether the buffer content will be send to serial port at the end of the command (Send = True) or stored in the buffer (Send = False). If send assignment is abolished, send defaults to False.
Syntax
PRINTTOBUFF #<DeviceHandle>, [Expression] {, ;[Expression]} {SEND = TRUE or FALSE}
Availability
All versions
Type
<DeviceHandle>: Long
<expression>: Long, Double, String, Joint or Location
Range
<DeviceHandle>: 1 to 255
Scope
Configuration, Task or Terminal <Send>: TRUE or FALSE
Limitations
Read only
Examples
PrintToBuff #1, Nm$, Dept$, Level, Age
PrintToBuff #1, Nm$, Dept$, Level, Age Send = True