Difference between revisions of "MC-Basic:PRINTTOBUFF"
m (Removed references) |
m (Added description of the send parameter.) |
||
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= |
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