09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

CTime Reads the current time as a string<br />

Example<br />

CTime is used to read the current system time.<br />

This function can be used to present the current time to the operator on the teach pendant<br />

display or to paste the current time into a text file that the program writes to.<br />

VAR string time;<br />

time := CTime();<br />

The current time is stored in the variable time.<br />

Return value Data type: string<br />

Example<br />

Syntax<br />

The current time in a string.<br />

The standard time format is "hours:minutes:seconds", e.g. "18:20:46".<br />

time := CTime();<br />

TPWrite “The current time is: “+time;<br />

Write logfile, time;<br />

The current time is written to the teach pendant display and written into a text<br />

file.<br />

CTime ’(’ ’)’<br />

A function with a return value of the type string.<br />

<strong>RAPID</strong> Reference Manual 9-CTime-1

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

Saved successfully!

Ooh no, something went wrong!