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.

Example<br />

Syntax<br />

One of the arguments must be specified, otherwise program execution stops with an<br />

error message.<br />

weekday := GetTime(\WDay);<br />

hour := GetTime(\Hour);<br />

IF weekday < 6 AND hour >6 AND hour < 16 THEN<br />

production;<br />

ELSE<br />

maintenance;<br />

ENDIF<br />

If it is a weekday and the time is between 7:00 and 15:59 the robot performs production.<br />

At all other times, the robot is in the maintenance mode.<br />

GetTime ’(’<br />

[’\’ WDay ]<br />

| [ ’\’ Hour ]<br />

| [ ’\’ Min ]<br />

| [ ’\’ Sec ] ’)’<br />

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

Related Information<br />

Described in:<br />

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

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

9-GetTime-2 <strong>RAPID</strong> Reference Manual

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

Saved successfully!

Ooh no, something went wrong!