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.

DOutput Reads the value of a digital output signal<br />

Example<br />

DOutput is used to read the current value of a digital output signal.<br />

IF DOutput(do2) = 1 THEN . . .<br />

If the current value of the signal do2 is equal to 1, then . . .<br />

Return value Data type: dionum<br />

Arguments<br />

The current value of the signal (0 or 1).<br />

DOutput (Signal)<br />

Signal Data type: signaldo<br />

Program execution<br />

Example<br />

Syntax<br />

The name of the signal to be read.<br />

The value read depends on the configuration of the signal. If the signal is inverted in<br />

the system parameters, the value returned by this function is the opposite of the true<br />

value of the physical channel.<br />

IF DOutput(auto_on) active THEN . . .<br />

If the current value of the system signal auto_on is not active, then ..., i.e. if the<br />

robot is in the manual operating mode, then ... Note that the signal must first be<br />

defined as a system output in the system parameters.<br />

DOutput ’(’<br />

[ Signal ’:=’ ] < variable (VAR) of signaldo > ’)’<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!