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.

Return code<br />

If OK<br />

Returns the character written.<br />

Error<br />

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

8.2.3 Display a String without Formatting puts<br />

Syntax<br />

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

puts(&string)<br />

&string: Address of the ASCII string (ending with a ZERO byte) to be displayed.<br />

Operation<br />

Sends a string to the system screen. The system adds 0x0D9C (\n) at the end of the string.<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 />

- &string parameter error,<br />

- end of string outside authorised area.<br />

8.2.4 Display a Buffer print<br />

Syntax<br />

print(&source, n)<br />

&source: Address of the buffer to be displayed.<br />

n: Number of bytes to be displayed.

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

Saved successfully!

Ooh no, something went wrong!