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.

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

A USINT variable must be connected which can control LED states as follows.<br />

Variable Value LED Status<br />

0 The LED is turned off<br />

1 The LED is turned on<br />

2<br />

3<br />

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

Hz)<br />

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

Hz)<br />

Any other value in the connected variable is invalid.<br />

Depending on the control application workload, the LED status update can take some time. Updating takes<br />

place in the context of the interpreter.<br />

4.10.6.2 Direct Operation from the Control Application<br />

If configuration in the <strong>Visual</strong> <strong>Components</strong> picture editor is not sufficient, then LEDs can be handled completely<br />

by the control application. In this case, all LEDs must be configured as 'LED None' (default). Otherwise, the<br />

outcome is not defined.<br />

LEDs are operated using an array of USINT variables which is connected to <strong>Visual</strong> <strong>Components</strong> and and which<br />

possesses an entry for each LED on the panel. The LED sequence is thus dependent on the panel and is<br />

described in its technical documentation or with the update for the respective customer specific panel. This<br />

sequence cannot be changed.<br />

Tip:<br />

If the appropriate documentation is not available, then the LED sequence can be determined by connecting an<br />

appropriate variable and testing the individual array indices in the Watch window in Automation Studio.<br />

The array is connected on the global properties page of the <strong>Visual</strong> <strong>Components</strong> editor after its corresponding<br />

size has been specified in the control application.<br />

4.10.6.2 Direct Operation from the Control Application 393

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

Saved successfully!

Ooh no, something went wrong!