15.07.2013 Views

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Format of the Conversion Specifications<br />

8 - 10 en-938846/6<br />

%[flags][numbers][.[numbers]][|]conversion_letter<br />

%: Indicates the start of a conversion specification.<br />

[flags]: The following optional characters:<br />

-: Indicates that the conversion result must be scaled left in the reserved field.<br />

+: Indicates that the result of a signed conversion must begin with a + or a -<br />

sign.<br />

«space»: Indicates that the result of a signed conversion must begin with a space<br />

character. This flag is ignored if the + flag is present.<br />

#: Indicates that the conversion result must be modified as follows:<br />

o: Conversion: The result must begin with a zero.<br />

x or X conversion: The result must begin with 0x or 0X.<br />

0: Indicates that the leading zeros of the result must be displayed.<br />

[numbers]: Optional ASCII decimal characters indicating the minimum size of the field<br />

used to display the conversion result.<br />

[.[numbers]]: Optional ASCII decimal characters indicating the minimum number of digits<br />

to be displayed in the case of a d, o, u, x or X conversion or the maximum<br />

number of characters of the string to be displayed in the case of an s<br />

conversion.<br />

conversion_letter: Compulsory letter indicating the conversion to be performed on the<br />

argument.<br />

d: The argument is displayed as a signed decimal value.<br />

o: The argument is displayed as an octal value.<br />

x: The argument is displayed as a hexadecimal value using letters «abcdef».<br />

X: The argument is displayed as a hexadecimal value using letters<br />

«ABCDEF».<br />

u: The argument is displayed as an unsigned decimal value.<br />

c: The argument is taken as the code of an ASCII character and displayed<br />

without conversion.<br />

s: The argument is a pointer to a string displayed without conversion.<br />

%: %% is used to display the character %.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!