Mitsubishi QD51 Programming Manual page 518

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
Format character
","
• If a comma is specified to the left of a decimal point
• A comma reserves an area for one digit.
• A comma is invalid if used together with the
"^^^^"
• ^^^^ reserves an area for the displayed
• The valid digits are displayed left-justified together
• If a + sign or a +/
[Multi-field]
It is possible to specify multiple format strings in one PRINT USING instruction. In addition,
each of the format strings can be separated by characters other than the format characters.
Each of the format strings corresponds to a character string or value to be output, and their
order. If the number of format strings is smaller than the number of input data, the
correspondence returns to the first format string and is repeated.
Example
PRINT USING "No. ##### AD51H & &";12345;" BASIC Instruction Manual"
No. 12345 AD51H BASIC Instruction Manual
OK
11 - 348
Function
in the format string, digits in the integer part is
divided in three-digit units by commas and then
displayed.
exponential format (^^^^).
• If these characters are placed at the end of a string
that specifies a number of digits, a numeric value is
displayed in the exponential format.
characteristic E+XX.
with the characteristic.
sign is not specified at the
beginning or end of the format string, respectively,
a blank space or a – sign is displayed for the
integer part.
If 25 digits or greater are specified, an "Illegal function call" error occurs.
MELSEC-Q
Example
PRINT USING " ###,.##" ;1234.5
1,234.50
OK
PRINT USING " ####.##," ;1234.5
1234.50,
OK
PRINT USING " ##.##^^^^" ;234.56
2.35e+02
OK
PRINT USING " .####&&&&" ;888888
.0889e+07
OK
PRINT USING " +.##&&&&" ;123
+.12E+03
OK
11 - 348

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents