Difference between revisions of "AXY:MC-Basic:group.ATTACHEDTO"
m (1 revision) |
|||
Line 4: | Line 4: | ||
|SYNTAX= | |SYNTAX= | ||
− | + | <nowiki>PrintUsing #1, "<format_string>"; [<expression>];{[<expression>]}* {Send = True | False}</nowiki> | |
|AVAILABILITY= | |AVAILABILITY= | ||
− | + | All versions | |
|DESCRIPTION= | |DESCRIPTION= | ||
− | + | Prints formatted numeric variables to the serial port using the specified format <string> to buffer. The format string contains literal text to be printed and characters for formatting numeric expressions. Only a single formatting string (containing text and formatting characters) followed by the expressions to print is allowed. The value assigned to 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= | ||
− | String | + | <format_string>: String |
+ | <expression>: Long or Double | ||
|RANGE= | |RANGE= | ||
Line 28: | Line 29: | ||
|LIMITATIONS= | |LIMITATIONS= | ||
− | + | Only 15 digits after the decimal point can be displayed. The statement, printu <nowiki>“#.################”;My_Var,</nowiki> | |
|EXAMPLE= | |EXAMPLE= | ||
− | + | <nowiki>PrintUToBuff #1 “B is ##.##”;B</nowiki> | |
|SEE ALSO= | |SEE ALSO= | ||
− | * [[Axystems:MC-Basic: | + | * [[Axystems:MC-Basic:CLOSE|CLOSE]] |
+ | * [[Axystems:MC-Basic:OPEN|OPEN]] | ||
+ | * [[Axystems:MC-Basic:PRINTUSING|PRINTUSING]] | ||
+ | |||
}} | }} |
Revision as of 11:46, 22 December 2010
Prints formatted numeric variables to the serial port using the specified format <string> to buffer. The format string contains literal text to be printed and characters for formatting numeric expressions. Only a single formatting string (containing text and formatting characters) followed by the expressions to print is allowed. The value assigned to 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
PrintUsing #1, "<format_string>"; [<expression>];{[<expression>]}* {Send = True | False}
Availability
All versions
Type
<format_string>: String <expression>: Long or Double
Scope
Configuration, Task, Terminal
Limitations
Only 15 digits after the decimal point can be displayed. The statement, printu “#.################”;My_Var,
Examples
PrintUToBuff #1 “B is ##.##”;B