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.

Transparent Mode<br />

Operation<br />

Sends a buffer of bytes to the system screen (the buffer can contain graphic commands).<br />

The display stops according to the value of n.<br />

If n == 0: The display stops on the first ZERO byte (ZERO byte not displayed).<br />

If n > 0: The display stops after n bytes.<br />

Return code<br />

If OK<br />

Returns the number of characters transmitted.<br />

Error<br />

-1: Not in transparent mode, the calling task is not a %TF task.<br />

-2: Max. buffer size (512 bytes) exceeded.<br />

Programming error causing a CPU fault<br />

Access to a prohibited address:<br />

- &source parameter error,<br />

- &source+n outside authorised area.<br />

8.2.5 Display a Character String with Formatting printf<br />

Syntax<br />

printf(&format {, argn}6)<br />

&format Format string address.<br />

argn: Possible argument.<br />

Displays a string, converting any arguments (the string must not contain graphic commands).<br />

Function printf() supports ANSI standard C <strong>language</strong> conversion specifications.<br />

Operation<br />

The format string contains displayable characters and possibly specifications for argument conversions.<br />

Function printf() analyses the characters of the format string.<br />

If the character is displayable, printf() copies it into a work buffer.<br />

When printf() detects the character %, it analyses the following characters which indicate the conversion required on<br />

the corresponding argument. The displayable characters resulting from conversion of the argument are stored in the<br />

work buffer.<br />

When printf() detects the end of the format string (ZERO byte), it sends the buffer to the task handling display on the<br />

CNC screen.<br />

en-938846/7 8 - 9<br />

8

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

Saved successfully!

Ooh no, something went wrong!