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.

dionum Digital values 0 - 1<br />

Description<br />

Examples<br />

Error handling<br />

<strong>Characteristics</strong><br />

Dionum (digital input output numeric) is used for digital values (0 or 1).<br />

This data type is used in conjunction with instructions and functions that handle digital<br />

input or output signals.<br />

Data of the type dionum represents a digital value 0 or 1.<br />

CONST dionum close := 1;<br />

Definition of a constant close with a value equal to 1.<br />

SetDO grip1, close;<br />

The signal grip1 is set to close, i.e. 1.<br />

If an argument of the type dionum has a value that is neither equal to 0 nor 1, an error<br />

is returned on program execution.<br />

Dionum is an alias data type for num and consequently inherits its characteristics.<br />

Related information<br />

Described in:<br />

Summary input/output instructions <strong>RAPID</strong> Summary -<br />

Input and Output Signals<br />

Configuration of I/O User’s Guide - System Parameters<br />

Alias data types <strong>Basic</strong> <strong>Characteristics</strong>- Data Types<br />

<strong>RAPID</strong> Reference Manual 7-dionum-1

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

Saved successfully!

Ooh no, something went wrong!