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.

CDate Reads the current date as a string<br />

Example<br />

CDate (Current Date) is used to read the current system date.<br />

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

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

VAR string date;<br />

date := CDate();<br />

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

Return value Data type: string<br />

Example<br />

Syntax<br />

The current date in a string.<br />

The standard date format is "year-month-day", e.g. "93-05-16".<br />

date := CDate();<br />

TPWrite "The current date is: "+date;<br />

Write logfile, date;<br />

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

CDate ’(’ ’)’<br />

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

Related Information<br />

Described in:<br />

Time instructions <strong>RAPID</strong> Summary - System & Time<br />

Setting the system clock User’s Guide - System Parameters<br />

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

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

Saved successfully!

Ooh no, something went wrong!