Difference between revisions of "MC-Basic:PRINT HASH"
Line 2: | Line 2: | ||
|SYNTAX= | |SYNTAX= | ||
− | PRINT #<DeviceHandle>, “''<String>” <nowiki>|</nowiki> [Expression] {, <nowiki>|</nowiki> ; “<String>” <nowiki>|</nowiki> [Expression]'' } | + | PRINT #<DeviceHandle>, “''<String>” <nowiki>|</nowiki> [Expression] {, <nowiki>|</nowiki> ; “<String>” <nowiki>|</nowiki> [Expression]'' } |
− | |||
|AVAILABILITY= | |AVAILABILITY= | ||
All versions | All versions | ||
− | |||
− | |||
|DESCRIPTION= | |DESCRIPTION= | ||
Line 13: | Line 10: | ||
|TYPE= | |TYPE= | ||
− | ''< | + | ''<DeviceHandle>: Long |
+ | ''<string>: String | ||
+ | ''<expression>: Long, Double, String, Joint or Location | ||
|RANGE= | |RANGE= | ||
''<DeviceHandle>: 1 to 255 | ''<DeviceHandle>: 1 to 255 | ||
− | |||
|UNITS= | |UNITS= |
Revision as of 10:59, 17 March 2014
Multiple strings and expressions are printed to a 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.
Syntax
PRINT #<DeviceHandle>, “<String>” | [Expression] {, | ; “<String>” | [Expression] }
Availability
All versions
Type
<DeviceHandle>: Long <string>: String <expression>: Long, Double, String, Joint or Location
Range
<DeviceHandle>: 1 to 255
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
Print "Hello,";
Print "world."
Prints the following:
Hello, world.
Common shared Message as string
Try
Print Message
Catch 8036 ‘ Entry Station output buffer overflow.
End Try