23.11.2012 Views

2 Visual Components Manuals

2 Visual Components Manuals

2 Visual Components Manuals

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Task class 4 is an 'idle time class' from the point of view of the cyclic<br />

Automation Studio program. Idle time would be important here in a project<br />

which contains visualization componenets.<br />

TC#4 is set to 10 ms in our example. Here, the tolerance time is very often set<br />

to 1000 ms or more. If TC#4 executes longer than 10 ms, then it will be<br />

restarted after another 10 ms at the latest.<br />

For example, if TC#4 executes 19 ms (10 ms grid and 1000 ms tolerance), then only 1 ms idle time remains in a<br />

20 ms period.<br />

TC#4 is then immediately restarted in the 20th ms by the set 10 ms grid.<br />

If the cycle time for TC#4 is increased to 30 ms and 19 ms is still the execution time, then 11 ms idle time can be<br />

used for the visualization application.<br />

A further increase to 50 ms gives 31 ms within the 50 ms cycle.<br />

1 ms from 20 ms = 5% for idle time<br />

11 ms from 30 ms = approx. 30 % for idle time<br />

31 ms from 50 ms = approx. 60% for idle time<br />

(Of course, these figures only apply if all other tasks use 0% of the CPU or something similar)<br />

As made evident by the example, idle time can be very much improved by using a careful approach. It is<br />

especially recommended to critically examine all components according to their time requirements when the<br />

CPU load is very high.<br />

In addition to cyclic programming, B&R Automation Studio provides non−cyclic programming. With this special<br />

variant, additional optimized results can be achieved with regard to the runtime behavior of the system.<br />

Non−cyclic taks can be activated with any priority and are not dependent on runtime monitoring.<br />

4.12.9 Tips and Tricks − Touch Pad<br />

It is possible in <strong>Visual</strong> <strong>Components</strong> 2.3 to create separate touch pads.<br />

The following files are necessary to do so:<br />

− a *.tpi file<br />

− a *.bmp file<br />

Note the following when creating .tpi files:<br />

File extension of an original .tpi file (numpad):<br />

<br />

<br />

<br />

<br />

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

Saved successfully!

Ooh no, something went wrong!