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.

signalxx Digital and analog signals<br />

Description<br />

Limitations<br />

Predefined data<br />

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

Data types within signalxx are used for digital and analog input and output signals.<br />

The names of the signals are defined in the system parameters and are consequently<br />

not to be defined in the program.<br />

Data type Used for<br />

signalai analog input signals<br />

signalao analog output signals<br />

signaldi digital input signals<br />

signaldo digital output signals<br />

signalgi groups of digital input signals<br />

signalgo groups of digital output signals<br />

Variables of the type signalxo only contain a reference to the signal. The value is set<br />

using an instruction, e.g. DOutput.<br />

Variables of the type signalxi contain a reference to a signal as well as a method to<br />

retrieve the value. The value of the input signal is returned when a function is called,<br />

e.g. DInput, or when the variable is used in a value context, e.g. IF signal_y=1 THEN.<br />

Data of the data type signalxx may not be defined in the program. However, if this is<br />

in fact done, an error message will be displayed as soon as an instruction or function<br />

that refers to this signal is executed. The data type can, on the other hand, be used as a<br />

parameter when declaring a routine.<br />

The signals defined in the system parameters can always be accessed from the program<br />

by using the predefined signal variables (installed data). It should however be noted<br />

that if other data with the same name is defined, these signals cannot be used.<br />

Signalxo is a non-value data type. Thus, data of this type does not permit valueoriented<br />

operations.<br />

Signalxi is a semi-value data type.<br />

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

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

Saved successfully!

Ooh no, something went wrong!