09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

10 System & Time<br />

System and time instructions allow the user to measure, inspect and record time.<br />

10.1 Programming principles<br />

Clock instructions allow the user to use clocks that function as stopwatches. In this way<br />

the robot program can be used to time any desired event.<br />

The current time or date can be retrieved in a string. This string can then be displayed<br />

to the operator on the teach pendant display or used to time and date-stamp log files.<br />

It is also possible to retrieve components of the current system time as a numeric value.<br />

This allows the robot program to perform an action at a certain time or on a certain day<br />

of the week.<br />

10.2 Using a clock to time an event<br />

Instruction Used to:<br />

ClkReset Reset a clock used for timing<br />

ClkStart Start a clock used for timing<br />

ClkStop Stop a clock used for timing<br />

Function Used to:<br />

ClkRead Read a clock used for timing<br />

Data Type Used for:<br />

clock Timing – stores a time measurement in seconds<br />

10.3 Reading current time and date<br />

Function Used to:<br />

CDate Read the Current Date as a string<br />

CTime Read the Current Time as a string<br />

GetTime Read the Current Time as a numeric value<br />

<strong>RAPID</strong> Reference Manual 3-27

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

Saved successfully!

Ooh no, something went wrong!