23.11.2012 Views

2 Visual Components Manuals

2 Visual Components Manuals

2 Visual Components Manuals

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.

After the 'Transmit LED Matrix' option has been selected, the variable can be connected in the 'Source' field. To<br />

do so, the variable name can be entered directly or selected by clicking the 'Assign...' button.<br />

To control LEDs, the array elements must be defined with the following values:<br />

Element Value Associated LED Status<br />

0 The LED is turned off<br />

1 The LED is turned on<br />

2 The LED blinks slowly (depending on the hardware, approx. 1 Hz)<br />

3 The LED blinks quickly (depending on the hardware, approx. 4 Hz)<br />

4.10.7 Using the Key Matrix<br />

Function keys provide a series of possibilities to influence variables within the control application from the<br />

current visualization project. These variables are defined in the context of the visualization idle time.<br />

Function keys are not suitable for implementing true jog key operations or other similar time−critical functions.<br />

The same constraint also applies to the key matrix parameters configured in the <strong>Visual</strong> <strong>Components</strong> project.<br />

The key matrix can be connected to a variable. This is also only implemented in idle time and is not suitable for<br />

time critical operations.<br />

To solve this problem, a new implementation of the key matrix is available beginning with <strong>Visual</strong> <strong>Components</strong><br />

Version 2.1 in which the user can actively trigger the acquisition of key information using a function.<br />

4.10.7.1 Using the Key Matrix<br />

Key matrix operation is possible using the <strong>Visual</strong> <strong>Components</strong> programming interface (VISAPI Functions<br />

Overview). Using this interface, optimal timing can be actively predefined in the control application.<br />

4.10.7.1.1 1. Integrating the Library<br />

The <strong>Visual</strong> <strong>Components</strong> programming interface is contained in the 'Visapi' library. It must be imported to the<br />

current project using the Library Manager. Details about importing libraries can be found in the general<br />

Automation Studio documentation.<br />

4.10.7.1.2 2. Selecting a Programming Language<br />

The functions in the programming interface can be used in all text−based languages which can use library<br />

functions (this is not possible in the Ladder Diagram).<br />

Examples of implementation in Automation Basic and ANSI C are described in the following.<br />

Introduction to <strong>Visual</strong> <strong>Components</strong> 2.3<br />

394 4.10.7 Using the Key Matrix

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

Saved successfully!

Ooh no, something went wrong!